Calculus Examples

Find the Absolute Max and Min over the Interval f(x)=3cos(x)^2 on [0,pi]
f(x)=3cos2(x)f(x)=3cos2(x) on [0,π][0,π]
Step 1
Find the critical points.
Tap for more steps...
Step 1.1
Find the first derivative.
Tap for more steps...
Step 1.1.1
Find the first derivative.
Tap for more steps...
Step 1.1.1.1
Since 33 is constant with respect to xx, the derivative of 3cos2(x)3cos2(x) with respect to xx is 3ddx[cos2(x)]3ddx[cos2(x)].
3ddx[cos2(x)]3ddx[cos2(x)]
Step 1.1.1.2
Differentiate using the chain rule, which states that ddx[f(g(x))]ddx[f(g(x))] is f(g(x))g(x) where f(x)=x2 and g(x)=cos(x).
Tap for more steps...
Step 1.1.1.2.1
To apply the Chain Rule, set u as cos(x).
3(ddu[u2]ddx[cos(x)])
Step 1.1.1.2.2
Differentiate using the Power Rule which states that ddu[un] is nun-1 where n=2.
3(2uddx[cos(x)])
Step 1.1.1.2.3
Replace all occurrences of u with cos(x).
3(2cos(x)ddx[cos(x)])
3(2cos(x)ddx[cos(x)])
Step 1.1.1.3
Multiply 2 by 3.
6(cos(x)ddx[cos(x)])
Step 1.1.1.4
The derivative of cos(x) with respect to x is -sin(x).
6cos(x)(-sin(x))
Step 1.1.1.5
Multiply -1 by 6.
f(x)=-6cos(x)sin(x)
f(x)=-6cos(x)sin(x)
Step 1.1.2
The first derivative of f(x) with respect to x is -6cos(x)sin(x).
-6cos(x)sin(x)
-6cos(x)sin(x)
Step 1.2
Set the first derivative equal to 0 then solve the equation -6cos(x)sin(x)=0.
Tap for more steps...
Step 1.2.1
Set the first derivative equal to 0.
-6cos(x)sin(x)=0
Step 1.2.2
If any individual factor on the left side of the equation is equal to 0, the entire expression will be equal to 0.
cos(x)=0
sin(x)=0
Step 1.2.3
Set cos(x) equal to 0 and solve for x.
Tap for more steps...
Step 1.2.3.1
Set cos(x) equal to 0.
cos(x)=0
Step 1.2.3.2
Solve cos(x)=0 for x.
Tap for more steps...
Step 1.2.3.2.1
Take the inverse cosine of both sides of the equation to extract x from inside the cosine.
x=arccos(0)
Step 1.2.3.2.2
Simplify the right side.
Tap for more steps...
Step 1.2.3.2.2.1
The exact value of arccos(0) is π2.
x=π2
x=π2
Step 1.2.3.2.3
The cosine function is positive in the first and fourth quadrants. To find the second solution, subtract the reference angle from 2π to find the solution in the fourth quadrant.
x=2π-π2
Step 1.2.3.2.4
Simplify 2π-π2.
Tap for more steps...
Step 1.2.3.2.4.1
To write 2π as a fraction with a common denominator, multiply by 22.
x=2π22-π2
Step 1.2.3.2.4.2
Combine fractions.
Tap for more steps...
Step 1.2.3.2.4.2.1
Combine 2π and 22.
x=2π22-π2
Step 1.2.3.2.4.2.2
Combine the numerators over the common denominator.
x=2π2-π2
x=2π2-π2
Step 1.2.3.2.4.3
Simplify the numerator.
Tap for more steps...
Step 1.2.3.2.4.3.1
Multiply 2 by 2.
x=4π-π2
Step 1.2.3.2.4.3.2
Subtract π from 4π.
x=3π2
x=3π2
x=3π2
Step 1.2.3.2.5
Find the period of cos(x).
Tap for more steps...
Step 1.2.3.2.5.1
The period of the function can be calculated using 2π|b|.
2π|b|
Step 1.2.3.2.5.2
Replace b with 1 in the formula for period.
2π|1|
Step 1.2.3.2.5.3
The absolute value is the distance between a number and zero. The distance between 0 and 1 is 1.
2π1
Step 1.2.3.2.5.4
Divide 2π by 1.
2π
2π
Step 1.2.3.2.6
The period of the cos(x) function is 2π so values will repeat every 2π radians in both directions.
x=π2+2πn,3π2+2πn, for any integer n
x=π2+2πn,3π2+2πn, for any integer n
x=π2+2πn,3π2+2πn, for any integer n
Step 1.2.4
Set sin(x) equal to 0 and solve for x.
Tap for more steps...
Step 1.2.4.1
Set sin(x) equal to 0.
sin(x)=0
Step 1.2.4.2
Solve sin(x)=0 for x.
Tap for more steps...
Step 1.2.4.2.1
Take the inverse sine of both sides of the equation to extract x from inside the sine.
x=arcsin(0)
Step 1.2.4.2.2
Simplify the right side.
Tap for more steps...
Step 1.2.4.2.2.1
The exact value of arcsin(0) is 0.
x=0
x=0
Step 1.2.4.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.
x=π-0
Step 1.2.4.2.4
Subtract 0 from π.
x=π
Step 1.2.4.2.5
Find the period of sin(x).
Tap for more steps...
Step 1.2.4.2.5.1
The period of the function can be calculated using 2π|b|.
2π|b|
Step 1.2.4.2.5.2
Replace b with 1 in the formula for period.
2π|1|
Step 1.2.4.2.5.3
The absolute value is the distance between a number and zero. The distance between 0 and 1 is 1.
2π1
Step 1.2.4.2.5.4
Divide 2π by 1.
2π
2π
Step 1.2.4.2.6
The period of the sin(x) function is 2π so values will repeat every 2π radians in both directions.
x=2πn,π+2πn, for any integer n
x=2πn,π+2πn, for any integer n
x=2πn,π+2πn, for any integer n
Step 1.2.5
The final solution is all the values that make -6cos(x)sin(x)=0 true.
x=π2+2πn,3π2+2πn,2πn,π+2πn, for any integer n
Step 1.2.6
Consolidate the answers.
x=πn2, for any integer n
x=πn2, for any integer n
Step 1.3
Find the values where the derivative is undefined.
Tap for more steps...
Step 1.3.1
The domain of the expression is all real numbers except where the expression is undefined. In this case, there is no real number that makes the expression undefined.
Step 1.4
Evaluate 3cos2(x) at each x value where the derivative is 0 or undefined.
Tap for more steps...
Step 1.4.1
Evaluate at x=0.
Tap for more steps...
Step 1.4.1.1
Substitute 0 for x.
3cos2(0)
Step 1.4.1.2
Simplify.
Tap for more steps...
Step 1.4.1.2.1
The exact value of cos(0) is 1.
312
Step 1.4.1.2.2
One to any power is one.
31
Step 1.4.1.2.3
Multiply 3 by 1.
3
3
3
Step 1.4.2
Evaluate at x=π2.
Tap for more steps...
Step 1.4.2.1
Substitute π2 for x.
3cos2(π2)
Step 1.4.2.2
Simplify.
Tap for more steps...
Step 1.4.2.2.1
The exact value of cos(π2) is 0.
302
Step 1.4.2.2.2
Raising 0 to any positive power yields 0.
30
Step 1.4.2.2.3
Multiply 3 by 0.
0
0
0
Step 1.4.3
List all of the points.
(0+πn,3),(π2+πn,0), for any integer n
(0+πn,3),(π2+πn,0), for any integer n
(0+πn,3),(π2+πn,0), for any integer n
Step 2
Exclude the points that are not on the interval.
(π2,0)
Step 3
Use the first derivative test to determine which points can be maxima or minima.
Tap for more steps...
Step 3.1
Split (-,) into separate intervals around the x values that make the first derivative 0 or undefined.
(-,0)(0,π2)(π2,π)(π,)
Step 3.2
Substitute any number, such as -2, from the interval (-,0) in the first derivative -6cos(x)sin(x) to check if the result is negative or positive.
Tap for more steps...
Step 3.2.1
Replace the variable x with -2 in the expression.
f(-2)=-6cos(-2)sin(-2)
Step 3.2.2
Simplify the result.
Tap for more steps...
Step 3.2.2.1
Evaluate cos(-2).
f(-2)=-6(-0.41614683sin(-2))
Step 3.2.2.2
Multiply -6 by -0.41614683.
f(-2)=2.49688101sin(-2)
Step 3.2.2.3
Evaluate sin(-2).
f(-2)=2.49688101-0.90929742
Step 3.2.2.4
Multiply 2.49688101 by -0.90929742.
f(-2)=-2.27040748
Step 3.2.2.5
The final answer is -2.27040748.
-2.27040748
-2.27040748
-2.27040748
Step 3.3
Substitute any number, such as 1, from the interval (0,π2) in the first derivative -6cos(x)sin(x) to check if the result is negative or positive.
Tap for more steps...
Step 3.3.1
Replace the variable x with 1 in the expression.
f(1)=-6cos(1)sin(1)
Step 3.3.2
Simplify the result.
Tap for more steps...
Step 3.3.2.1
Evaluate cos(1).
f(1)=-6(0.5403023sin(1))
Step 3.3.2.2
Multiply -6 by 0.5403023.
f(1)=-3.24181383sin(1)
Step 3.3.2.3
Evaluate sin(1).
f(1)=-3.241813830.84147098
Step 3.3.2.4
Multiply -3.24181383 by 0.84147098.
f(1)=-2.72789228
Step 3.3.2.5
The final answer is -2.72789228.
-2.72789228
-2.72789228
-2.72789228
Step 3.4
Substitute any number, such as 2, from the interval (π2,π) in the first derivative -6cos(x)sin(x) to check if the result is negative or positive.
Tap for more steps...
Step 3.4.1
Replace the variable x with 2 in the expression.
f(2)=-6cos(2)sin(2)
Step 3.4.2
Simplify the result.
Tap for more steps...
Step 3.4.2.1
Evaluate cos(2).
f(2)=-6(-0.41614683sin(2))
Step 3.4.2.2
Multiply -6 by -0.41614683.
f(2)=2.49688101sin(2)
Step 3.4.2.3
Evaluate sin(2).
f(2)=2.496881010.90929742
Step 3.4.2.4
Multiply 2.49688101 by 0.90929742.
f(2)=2.27040748
Step 3.4.2.5
The final answer is 2.27040748.
2.27040748
2.27040748
2.27040748
Step 3.5
Substitute any number, such as 6, from the interval (π,) in the first derivative -6cos(x)sin(x) to check if the result is negative or positive.
Tap for more steps...
Step 3.5.1
Replace the variable x with 6 in the expression.
f(6)=-6cos(6)sin(6)
Step 3.5.2
Simplify the result.
Tap for more steps...
Step 3.5.2.1
Evaluate cos(6).
f(6)=-6(0.96017028sin(6))
Step 3.5.2.2
Multiply -6 by 0.96017028.
f(6)=-5.76102171sin(6)
Step 3.5.2.3
Evaluate sin(6).
f(6)=-5.76102171-0.27941549
Step 3.5.2.4
Multiply -5.76102171 by -0.27941549.
f(6)=1.60971875
Step 3.5.2.5
The final answer is 1.60971875.
1.60971875
1.60971875
1.60971875
Step 3.6
Since the first derivative did not change signs around x=0, this is not a local maximum or minimum.
Not a local maximum or minimum
Step 3.7
Since the first derivative changed signs from negative to positive around x=π2, then x=π2 is a local minimum.
x=π2 is a local minimum
Step 3.8
Since the first derivative did not change signs around x=π, this is not a local maximum or minimum.
Not a local maximum or minimum
Step 3.9
These are the local extrema for f(x)=3cos2(x).
x=π2 is a local minimum
x=π2 is a local minimum
Step 4
Compare the f(x) values found for each value of x in order to determine the absolute maximum and minimum over the given interval. The maximum will occur at the highest f(x) value and the minimum will occur at the lowest f(x) value.
No absolute maximum
Absolute Minimum: (π2,0)
Step 5
 [x2  12  π  xdx ]