Calculus Examples

Find the Local Maxima and Minima f(x)=xsin(x)+cos(x)
Step 1
Find the first derivative of the function.
Tap for more steps...
Step 1.1
By the Sum Rule, the derivative of with respect to is .
Step 1.2
Evaluate .
Tap for more steps...
Step 1.2.1
Differentiate using the Product Rule which states that is where and .
Step 1.2.2
The derivative of with respect to is .
Step 1.2.3
Differentiate using the Power Rule which states that is where .
Step 1.2.4
Multiply by .
Step 1.3
The derivative of with respect to is .
Step 1.4
Combine terms.
Tap for more steps...
Step 1.4.1
Subtract from .
Step 1.4.2
Add and .
Step 2
Find the second derivative of the function.
Tap for more steps...
Step 2.1
Differentiate using the Product Rule which states that is where and .
Step 2.2
The derivative of with respect to is .
Step 2.3
Differentiate using the Power Rule.
Tap for more steps...
Step 2.3.1
Differentiate using the Power Rule which states that is where .
Step 2.3.2
Simplify the expression.
Tap for more steps...
Step 2.3.2.1
Multiply by .
Step 2.3.2.2
Reorder terms.
Step 3
To find the local maximum and minimum values of the function, set the derivative equal to and solve.
Step 4
If any individual factor on the left side of the equation is equal to , the entire expression will be equal to .
Step 5
Set equal to .
Step 6
Set equal to and solve for .
Tap for more steps...
Step 6.1
Set equal to .
Step 6.2
Solve for .
Tap for more steps...
Step 6.2.1
Take the inverse cosine of both sides of the equation to extract from inside the cosine.
Step 6.2.2
Simplify the right side.
Tap for more steps...
Step 6.2.2.1
The exact value of is .
Step 6.2.3
The cosine function is positive in the first and fourth quadrants. To find the second solution, subtract the reference angle from to find the solution in the fourth quadrant.
Step 6.2.4
Simplify .
Tap for more steps...
Step 6.2.4.1
To write as a fraction with a common denominator, multiply by .
Step 6.2.4.2
Combine fractions.
Tap for more steps...
Step 6.2.4.2.1
Combine and .
Step 6.2.4.2.2
Combine the numerators over the common denominator.
Step 6.2.4.3
Simplify the numerator.
Tap for more steps...
Step 6.2.4.3.1
Multiply by .
Step 6.2.4.3.2
Subtract from .
Step 6.2.5
The solution to the equation .
Step 7
The final solution is all the values that make true.
Step 8
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 9
Evaluate the second derivative.
Tap for more steps...
Step 9.1
Simplify each term.
Tap for more steps...
Step 9.1.1
The exact value of is .
Step 9.1.2
Multiply by .
Step 9.1.3
The exact value of is .
Step 9.2
Add and .
Step 10
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 11
Find the y-value when .
Tap for more steps...
Step 11.1
Replace the variable with in the expression.
Step 11.2
Simplify the result.
Tap for more steps...
Step 11.2.1
Simplify each term.
Tap for more steps...
Step 11.2.1.1
The exact value of is .
Step 11.2.1.2
Multiply by .
Step 11.2.1.3
The exact value of is .
Step 11.2.2
Add and .
Step 11.2.3
The final answer is .
Step 12
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 13
Evaluate the second derivative.
Tap for more steps...
Step 13.1
Simplify each term.
Tap for more steps...
Step 13.1.1
The exact value of is .
Step 13.1.2
Multiply by .
Step 13.1.3
The exact value of is .
Step 13.2
Add and .
Step 14
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 15
Find the y-value when .
Tap for more steps...
Step 15.1
Replace the variable with in the expression.
Step 15.2
Simplify the result.
Tap for more steps...
Step 15.2.1
Simplify each term.
Tap for more steps...
Step 15.2.1.1
The exact value of is .
Step 15.2.1.2
Multiply by .
Step 15.2.1.3
The exact value of is .
Step 15.2.2
Add and .
Step 15.2.3
The final answer is .
Step 16
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 17
Evaluate the second derivative.
Tap for more steps...
Step 17.1
Simplify each term.
Tap for more steps...
Step 17.1.1
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 17.1.2
The exact value of is .
Step 17.1.3
Multiply by .
Step 17.1.4
Multiply .
Tap for more steps...
Step 17.1.4.1
Multiply by .
Step 17.1.4.2
Multiply by .
Step 17.1.5
Apply the reference angle by finding the angle with equivalent trig values in the first quadrant.
Step 17.1.6
The exact value of is .
Step 17.2
Add and .
Step 18
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 19
Find the y-value when .
Tap for more steps...
Step 19.1
Replace the variable with in the expression.
Step 19.2
Simplify the result.
Tap for more steps...
Step 19.2.1
Simplify each term.
Tap for more steps...
Step 19.2.1.1
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.2.1.2
The exact value of is .
Step 19.2.1.3
Multiply by .
Step 19.2.1.4
Multiply .
Tap for more steps...
Step 19.2.1.4.1
Combine and .
Step 19.2.1.4.2
Multiply by .
Step 19.2.1.5
Move the negative in front of the fraction.
Step 19.2.1.6
Apply the reference angle by finding the angle with equivalent trig values in the first quadrant.
Step 19.2.1.7
The exact value of is .
Step 19.2.2
Add and .
Step 19.2.3
The final answer is .
Step 20
These are the local extrema for .
is a local minima
is a local maxima
is a local minima
Step 21