Find the local maximum and local minimum, if any, of the following function: 2x - x, -π/2 x π/2
Question 153 marksMedium
Find the local maximum and local minimum, if any, of the following function:
sin2x−x,−2π≤x≤2π
Solution:
Key idea: Local maxima and minima inside the interval occur where f′(x)=0; the sign of f′′(x) there tells us which. We keep only the solutions that lie in −2π≤x≤2π.
Step 1 — Find where the derivative is zero.
Let f(x)=sin2x−x. By the chain rule, the derivative of sin2x is 2cos2x.
f′(x)=2cos2x−1
Putting f′(x)=0 gives an equation for cos2x.
cos2x=21
Step 2 — Keep only the solutions in the interval.
Since −2π≤x≤2π, we have −π≤2x≤π. In this range, cos2x equals 21 only when 2x=±3π.
x=±6π
Step 3 — Find the second derivative.
We differentiate f′(x) again, using the chain rule.
f′′(x)=−4sin2x
Step 4 — Test the point x=6π.
Here 2x=3π and sin3π=23.
f′′(6π)=−4×23
f′′(6π)=−23
This is negative, so f has a local maximum at x=6π. We find its value.
f(6π)=sin3π−6π
f(6π)=23−6π
f(6π)=633−π
Step 5 — Test the point x=−6π.
Here 2x=−3π and sin(−3π)=−23.
f′′(−6π)=−4×(−23)
f′′(−6π)=23
This is positive, so f has a local minimum at x=−6π. We find its value.
f(−6π)=−23+6π
f(−6π)=6π−33
Therefore, the local maximum value is 633−π at x=6π and the local minimum value is 6π−33 at x=−6π.