Calculus Examples

Find the Local Maxima and Minima f(x)=4cos(x)+2sin(x)^2
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
Since is constant with respect to , the derivative of with respect to is .
Step 1.2.2
The derivative of with respect to is .
Step 1.2.3
Multiply by .
Step 1.3
Evaluate .
Tap for more steps...
Step 1.3.1
Since is constant with respect to , the derivative of with respect to is .
Step 1.3.2
Differentiate using the chain rule, which states that is where and .
Tap for more steps...
Step 1.3.2.1
To apply the Chain Rule, set as .
Step 1.3.2.2
Differentiate using the Power Rule which states that is where .
Step 1.3.2.3
Replace all occurrences of with .
Step 1.3.3
The derivative of with respect to is .
Step 1.3.4
Multiply by .
Step 1.4
Reorder terms.
Step 2
Find the second 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
Evaluate .
Tap for more steps...
Step 2.2.1
Since is constant with respect to , the derivative of with respect to is .
Step 2.2.2
Differentiate using the Product Rule which states that is where and .
Step 2.2.3
The derivative of with respect to is .
Step 2.2.4
The derivative of with respect to is .
Step 2.2.5
Raise to the power of .
Step 2.2.6
Raise to the power of .
Step 2.2.7
Use the power rule to combine exponents.
Step 2.2.8
Add and .
Step 2.2.9
Raise to the power of .
Step 2.2.10
Raise to the power of .
Step 2.2.11
Use the power rule to combine exponents.
Step 2.2.12
Add and .
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.4
Simplify.
Tap for more steps...
Step 2.4.1
Apply the distributive property.
Step 2.4.2
Multiply by .
Step 3
To find the local maximum and minimum values of the function, set the derivative equal to and solve.
Step 4
Factor out of .
Tap for more steps...
Step 4.1
Factor out of .
Step 4.2
Factor out of .
Step 4.3
Factor out of .
Step 5
If any individual factor on the left side of the equation is equal to , the entire expression will be 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 sine of both sides of the equation to extract from inside the sine.
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 sine function is positive in the first and second quadrants. To find the second solution, subtract the reference angle from to find the solution in the second quadrant.
Step 6.2.4
Subtract from .
Step 6.2.5
The solution to the equation .
Step 7
Set equal to and solve for .
Tap for more steps...
Step 7.1
Set equal to .
Step 7.2
Solve for .
Tap for more steps...
Step 7.2.1
Add to both sides of the equation.
Step 7.2.2
Take the inverse cosine of both sides of the equation to extract from inside the cosine.
Step 7.2.3
Simplify the right side.
Tap for more steps...
Step 7.2.3.1
The exact value of is .
Step 7.2.4
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 7.2.5
Subtract from .
Step 7.2.6
The solution to the equation .
Step 8
The final solution is all the values that make true.
Step 9
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 10
Evaluate the second derivative.
Tap for more steps...
Step 10.1
Simplify each term.
Tap for more steps...
Step 10.1.1
The exact value of is .
Step 10.1.2
One to any power is one.
Step 10.1.3
Multiply by .
Step 10.1.4
The exact value of is .
Step 10.1.5
Raising to any positive power yields .
Step 10.1.6
Multiply by .
Step 10.1.7
The exact value of is .
Step 10.1.8
Multiply by .
Step 10.2
Simplify by adding and subtracting.
Tap for more steps...
Step 10.2.1
Add and .
Step 10.2.2
Subtract from .
Step 11
Since there is at least one point with or undefined second derivative, apply the first derivative test.
Tap for more steps...
Step 11.1
Split into separate intervals around the values that make the first derivative or undefined.
Step 11.2
Substitute any number, such as , from the interval in the first derivative to check if the result is negative or positive.
Tap for more steps...
Step 11.2.1
Replace the variable with in the expression.
Step 11.2.2
Simplify the result.
Tap for more steps...
Step 11.2.2.1
Simplify each term.
Tap for more steps...
Step 11.2.2.1.1
Evaluate .
Step 11.2.2.1.2
Multiply by .
Step 11.2.2.1.3
Evaluate .
Step 11.2.2.1.4
Multiply by .
Step 11.2.2.1.5
Evaluate .
Step 11.2.2.1.6
Multiply by .
Step 11.2.2.2
Add and .
Step 11.2.2.3
The final answer is .
Step 11.3
Substitute any number, such as , from the interval in the first derivative to check if the result is negative or positive.
Tap for more steps...
Step 11.3.1
Replace the variable with in the expression.
Step 11.3.2
Simplify the result.
Tap for more steps...
Step 11.3.2.1
Simplify each term.
Tap for more steps...
Step 11.3.2.1.1
Evaluate .
Step 11.3.2.1.2
Multiply by .
Step 11.3.2.1.3
Evaluate .
Step 11.3.2.1.4
Multiply by .
Step 11.3.2.1.5
Evaluate .
Step 11.3.2.1.6
Multiply by .
Step 11.3.2.2
Subtract from .
Step 11.3.2.3
The final answer is .
Step 11.4
Substitute any number, such as , from the interval in the first derivative to check if the result is negative or positive.
Tap for more steps...
Step 11.4.1
Replace the variable with in the expression.
Step 11.4.2
Simplify the result.
Tap for more steps...
Step 11.4.2.1
Simplify each term.
Tap for more steps...
Step 11.4.2.1.1
Evaluate .
Step 11.4.2.1.2
Multiply by .
Step 11.4.2.1.3
Evaluate .
Step 11.4.2.1.4
Multiply by .
Step 11.4.2.1.5
Evaluate .
Step 11.4.2.1.6
Multiply by .
Step 11.4.2.2
Add and .
Step 11.4.2.3
The final answer is .
Step 11.5
Substitute any number, such as , from the interval in the first derivative to check if the result is negative or positive.
Tap for more steps...
Step 11.5.1
Replace the variable with in the expression.
Step 11.5.2
Simplify the result.
Tap for more steps...
Step 11.5.2.1
Simplify each term.
Tap for more steps...
Step 11.5.2.1.1
Evaluate .
Step 11.5.2.1.2
Multiply by .
Step 11.5.2.1.3
Evaluate .
Step 11.5.2.1.4
Multiply by .
Step 11.5.2.1.5
Evaluate .
Step 11.5.2.1.6
Multiply by .
Step 11.5.2.2
Subtract from .
Step 11.5.2.3
The final answer is .
Step 11.6
Since the first derivative changed signs from positive to negative around , then is a local maximum.
is a local maximum
Step 11.7
Since the first derivative changed signs from negative to positive around , then is a local minimum.
is a local minimum
Step 11.8
Since the first derivative changed signs from positive to negative around , then is a local maximum.
is a local maximum
Step 11.9
These are the local extrema for .
is a local maximum
is a local minimum
is a local maximum
is a local maximum
is a local minimum
is a local maximum
Step 12