Calculus Examples

Find the Local Maxima and Minima sin(x)-cos(x)
Step 1
Write as a function.
Step 2
Find the first derivative of the function.
Tap for more steps...
Step 2.1
By the Sum Rule, the derivative of with respect to is .
Step 2.2
The derivative of with respect to is .
Step 2.3
Evaluate .
Tap for more steps...
Step 2.3.1
Since is constant with respect to , the derivative of with respect to is .
Step 2.3.2
The derivative of with respect to is .
Step 2.3.3
Multiply by .
Step 2.3.4
Multiply by .
Step 3
Find the second derivative of the function.
Tap for more steps...
Step 3.1
By the Sum Rule, the derivative of with respect to is .
Step 3.2
The derivative of with respect to is .
Step 3.3
The derivative of with respect to is .
Step 4
To find the local maximum and minimum values of the function, set the derivative equal to and solve.
Step 5
Divide each term in the equation by .
Step 6
Cancel the common factor of .
Tap for more steps...
Step 6.1
Cancel the common factor.
Step 6.2
Rewrite the expression.
Step 7
Convert from to .
Step 8
Separate fractions.
Step 9
Convert from to .
Step 10
Divide by .
Step 11
Multiply by .
Step 12
Subtract from both sides of the equation.
Step 13
Take the inverse tangent of both sides of the equation to extract from inside the tangent.
Step 14
Simplify the right side.
Tap for more steps...
Step 14.1
The exact value of is .
Step 15
The tangent function is negative in the second and fourth quadrants. To find the second solution, subtract the reference angle from to find the solution in the third quadrant.
Step 16
Simplify the expression to find the second solution.
Tap for more steps...
Step 16.1
Add to .
Step 16.2
The resulting angle of is positive and coterminal with .
Step 17
The solution to the equation .
Step 18
Evaluate the second derivative at . If the second derivative is positive, then this is a local minimum. If it is negative, then this is a local maximum.
Step 19
Evaluate the second derivative.
Tap for more steps...
Step 19.1
Simplify each term.
Tap for more steps...
Step 19.1.1
Add full rotations of until the angle is greater than or equal to and less than .
Step 19.1.2
Apply the reference angle by finding the angle with equivalent trig values in the first quadrant. Make the expression negative because sine is negative in the fourth quadrant.
Step 19.1.3
The exact value of is .
Step 19.1.4
Multiply .
Tap for more steps...
Step 19.1.4.1
Multiply by .
Step 19.1.4.2
Multiply by .
Step 19.1.5
Add full rotations of until the angle is greater than or equal to and less than .
Step 19.1.6
Apply the reference angle by finding the angle with equivalent trig values in the first quadrant.
Step 19.1.7
The exact value of is .
Step 19.2
Simplify terms.
Tap for more steps...
Step 19.2.1
Combine the numerators over the common denominator.
Step 19.2.2
Add and .
Step 19.2.3
Cancel the common factor of .
Tap for more steps...
Step 19.2.3.1
Cancel the common factor.
Step 19.2.3.2
Divide by .
Step 20
is a local minimum because the value of the second derivative is positive. This is referred to as the second derivative test.
is a local minimum
Step 21
Find the y-value when .
Tap for more steps...
Step 21.1
Replace the variable with in the expression.
Step 21.2
Simplify the result.
Tap for more steps...
Step 21.2.1
Simplify each term.
Tap for more steps...
Step 21.2.1.1
Add full rotations of until the angle is greater than or equal to and less than .
Step 21.2.1.2
Apply the reference angle by finding the angle with equivalent trig values in the first quadrant. Make the expression negative because sine is negative in the fourth quadrant.
Step 21.2.1.3
The exact value of is .
Step 21.2.1.4
Add full rotations of until the angle is greater than or equal to and less than .
Step 21.2.1.5
Apply the reference angle by finding the angle with equivalent trig values in the first quadrant.
Step 21.2.1.6
The exact value of is .
Step 21.2.2
Simplify terms.
Tap for more steps...
Step 21.2.2.1
Combine the numerators over the common denominator.
Step 21.2.2.2
Subtract from .
Step 21.2.2.3
Cancel the common factor of and .
Tap for more steps...
Step 21.2.2.3.1
Factor out of .
Step 21.2.2.3.2
Cancel the common factors.
Tap for more steps...
Step 21.2.2.3.2.1
Factor out of .
Step 21.2.2.3.2.2
Cancel the common factor.
Step 21.2.2.3.2.3
Rewrite the expression.
Step 21.2.2.3.2.4
Divide by .
Step 21.2.3
The final answer is .
Step 22
Evaluate the second derivative at . If the second derivative is positive, then this is a local minimum. If it is negative, then this is a local maximum.
Step 23
Evaluate the second derivative.
Tap for more steps...
Step 23.1
Simplify each term.
Tap for more steps...
Step 23.1.1
Apply the reference angle by finding the angle with equivalent trig values in the first quadrant.
Step 23.1.2
The exact value of is .
Step 23.1.3
Apply the reference angle by finding the angle with equivalent trig values in the first quadrant. Make the expression negative because cosine is negative in the second quadrant.
Step 23.1.4
The exact value of is .
Step 23.2
Simplify terms.
Tap for more steps...
Step 23.2.1
Combine the numerators over the common denominator.
Step 23.2.2
Subtract from .
Step 23.2.3
Cancel the common factor of and .
Tap for more steps...
Step 23.2.3.1
Factor out of .
Step 23.2.3.2
Cancel the common factors.
Tap for more steps...
Step 23.2.3.2.1
Factor out of .
Step 23.2.3.2.2
Cancel the common factor.
Step 23.2.3.2.3
Rewrite the expression.
Step 23.2.3.2.4
Divide by .
Step 24
is a local maximum because the value of the second derivative is negative. This is referred to as the second derivative test.
is a local maximum
Step 25
Find the y-value when .
Tap for more steps...
Step 25.1
Replace the variable with in the expression.
Step 25.2
Simplify the result.
Tap for more steps...
Step 25.2.1
Simplify each term.
Tap for more steps...
Step 25.2.1.1
Apply the reference angle by finding the angle with equivalent trig values in the first quadrant.
Step 25.2.1.2
The exact value of is .
Step 25.2.1.3
Apply the reference angle by finding the angle with equivalent trig values in the first quadrant. Make the expression negative because cosine is negative in the second quadrant.
Step 25.2.1.4
The exact value of is .
Step 25.2.1.5
Multiply .
Tap for more steps...
Step 25.2.1.5.1
Multiply by .
Step 25.2.1.5.2
Multiply by .
Step 25.2.2
Simplify terms.
Tap for more steps...
Step 25.2.2.1
Combine the numerators over the common denominator.
Step 25.2.2.2
Add and .
Step 25.2.2.3
Cancel the common factor of .
Tap for more steps...
Step 25.2.2.3.1
Cancel the common factor.
Step 25.2.2.3.2
Divide by .
Step 25.2.3
The final answer is .
Step 26
These are the local extrema for .
is a local minima
is a local maxima
Step 27