Max/Min of f(x) = cos 2x + 2sinx for 0 ≤ x ≤ 3π/4

In summary: The second derivative tells you nothing about absolute maxima or minima. All it tells you is concavity. It is the first derivative that tells you about local maxima and minima, and the original function that tells you about absolute maxima and minima. In summary, the function f(x) = cos 2x + 2sinx has a maximum value of 2 at x = π/6 and a minimum value of 1 at x = 0 and x = π/2. These values were found by finding the turning points using the first derivative and then checking the values at the endpoints of the given interval using the original function. It is important to check all potential
  • #1
fghtffyrdmns
145
0

Homework Statement


Find the maximum value and minimum value of the function [tex] f(x) = cos 2x + 2sinx[/tex]

[tex] 0 \leq x \leq \frac{3\pi}{4}[/tex]


Homework Equations



[tex] f(x) = cos 2x + 2sinx[/tex]

The Attempt at a Solution



[tex] f(x) = cos 2x + 2sinx[/tex]

[tex] f'(x) = -2sin2x + 2cosx[/tex]

[tex] 0=-2sin2x + 2 cosx[/tex]

[tex] 2sin2x=2cosx[/tex]

[tex] sin2x = cosx[/tex]

[tex] 2sinxcosx = cosx[/tex]

[tex] 2sinx = 1 [/tex]

[tex] sin x = \frac{1}{2}[/tex]

[tex] x = \frac{\pi}{6}[/tex]

[tex] f''(x) = -4cos2x - 2sinx [/tex]
If I check, it is a max. But everything(in the domain) I check is max. What's up with this? Is my derivative wrong?
 
Physics news on Phys.org
  • #2
You have several values you did not check. You must check the endpoints of the interval, x=0 and [itex]x=\frac{3\pi}{4}[/itex]. they may or may not be turning points, but their values may yet be higher or lower than any turning point in the interior of the interval.
You also divided by cos(x) in one step, which means you must go back and see what happens to f'(x) when cos(x) = 0, as your solution from that point onwards assumes that cos(x) is not 0. First, check to see whether cos(x) is ever 0 in the interval given. If so, you must check that point(s) as well. This, in fact, gives you an additional critical point where sin(2x) = 0.
Your derivatives are correct. Why are you checking every point in the domain? Remember, the second derivative only gives you concavity/curvature. It does not, by itself, tell you whether a point is a maximum or minimum unless that point is also a critical point.
 
  • #3
fghtffyrdmns said:

Homework Statement


Find the maximum value and minimum value of the function [tex] f(x) = cos 2x + 2sinx[/tex]

[tex] 0 \leq x \leq \frac{3\pi}{4}[/tex]


Homework Equations



[tex] f(x) = cos 2x + 2sinx[/tex]

The Attempt at a Solution



[tex] f(x) = cos 2x + 2sinx[/tex]

[tex] f'(x) = -2sin2x + 2cosx[/tex]

[tex] 0=-2sin2x + 2 cosx[/tex]

[tex] 2sin2x=2cosx[/tex]

[tex] sin2x = cosx[/tex]

[tex] 2sinxcosx = cosx[/tex]
In the line below, you have divided both sides by cosx, effectively discarding cos x = 0 as a solution to your original equation.

You should have changed the equation above to this:
2sinxcosx - cos x = 0
==> cosx(2sinx - 1) = 0
==> cos x = 0 or sinx = 1/2
fghtffyrdmns said:
[tex] 2sinx = 1 [/tex]

[tex] sin x = \frac{1}{2}[/tex]

[tex] x = \frac{\pi}{6}[/tex]

[tex] f''(x) = -4cos2x - 2sinx [/tex]
If I check, it is a max. But everything(in the domain) I check is max. What's up with this? Is my derivative wrong?
I don't understand what you're saying when everything in the domain is a max. On the restricted domain there are a local minimum and a local maximum. Since the domain is restricted, you should be able to find an absolute min and absolute max.
 
  • #4
slider142 said:
You have several values you did not check. You must check the endpoints of the interval, x=0 and [itex]x=\frac{3\pi}{4}[/itex]. they may or may not be turning points, but their values may yet be higher or lower than any turning point in the interior of the interval.
You also divided by cos(x) in one step, which means you must go back and see what happens to f'(x) when cos(x) = 0, as your solution from that point onwards assumes that cos(x) is not 0. First, check to see whether cos(x) is ever 0 in the interval given. If so, you must check that point(s) as well. This, in fact, gives you an additional critical point where sin(2x) = 0.
Your derivatives are correct. Why are you checking every point in the domain? Remember, the second derivative only gives you concavity/curvature. It does not, by itself, tell you whether a point is a maximum or minimum unless that point is also a critical point.

Ah, I should've worded it better. I checked [tex]x=\frac{\pi}{6}[/tex] with the second derivative. I got -3 which makes it a local max.
 
  • #5
fghtffyrdmns said:
Ah, I should've worded it better. I checked [tex]x=\frac{\pi}{6}[/tex] with the second derivative. I got -3 which makes it a local max.

That's correct. However, there are 3 other potential maximums or minimums in the interval to check as well. :)
 
  • #6
slider142 said:
That's correct. However, there are 3 other potential maximums or minimums in the interval to check as well. :)

:eek: what! I checked 0, 3pi/4 and pi/2 also. 0 and 3pi/4 I got local maximums for that. But a local minimum at pi/2 :/
 
  • #7
Mark44 said:
In the line below, you have divided both sides by cosx, effectively discarding cos x = 0 as a solution to your original equation.

You should have changed the equation above to this:
2sinxcosx - cos x = 0
==> cosx(2sinx - 1) = 0
==> cos x = 0 or sinx = 1/2

Yes! I knew I did that part right. But my teacher just said it was right. By dividing both sides by cos, I would lose a x value - which is a huge mistake. This is how I got pi/2 the first time.
 
  • #8
fghtffyrdmns said:
:eek: what! I checked 0, 3pi/4 and pi/2 also. 0 and 3pi/4 I got local maximums for that. But a local minimum at pi/2 :/

Right. Now the only thing left to do is compare the values of f at those points to find the absolute maximum and the absolute minimum (since your original post has the singular forms of these words, I assume they mean absolute).
 
  • #9
Whew, you scared me there. I thought you meant that there's more! Yes, these are absolute values (as it is in a restricted domain). The absolute max is at x= pi/6 and absolute min is at x = pi/2.

However, f(0) = 1 and f(pi/2) = 1. But I checked with 2nd derivative and f(pi/2) is the only min. Is this enough proof?
 
  • #10
fghtffyrdmns said:
Whew, you scared me there. I thought you meant that there's more! Yes, these are absolute values (as it is in a restricted domain). The absolute max is at x= pi/6 and absolute min is at x = pi/2.

However, f(0) = 1 and f(pi/2) = 1. But I checked with 2nd derivative and f(pi/2) is the only min. Is this enough proof?

No. Both 0 and pi/2 are absolute minima, with minimum value 1.
Again, the second derivative only tells you the concavity of a region; it does not tell you whether a value is an absolute minimum or not. It gives only enough information to tell whether a critical point is a local minimum or a local maximum, or possibly neither. It is even possible for the 2nd derivative to fail to give you this information, ie., consider the function f(x) = x4 for x = 0. It is obviously a local (and global) minimum, but the second derivative test is inconclusive.
 
  • #11
slider142 said:
No. Both 0 and pi/2 are absolute minima, with minimum value 1.
Hmm. I must've done the 2nd derivative(the calculator part :p) wrong since I got it as a -4 :/
 
  • #12
slider142 said:
No. Both 0 and pi/2 are absolute minima, with minimum value 1.
Again, the second derivative only tells you the concavity of a region; it does not tell you whether a value is an absolute minimum or not. It gives only enough information to tell whether a critical point is a local minimum or a local maximum, or possibly neither. It is even possible for the 2nd derivative to fail to give you this information, ie., consider the function f(x) = x4 for x = 0. It is obviously a local (and global) minimum, but the second derivative test is inconclusive.

Damn it. No one told me this :(/ How would I go proving that there is 2 minimas? I know that there is only 1 max.
 
  • #13
fghtffyrdmns said:
Hmm. I must've done the 2nd derivative(the calculator part :p) wrong since I got it as a -4 :/

The second derivative at x=0 is -4, meaning the graph has negative concavity there (it opens downwards). This does not tell you much about the relation of this point to the values of points in the closed interval under consideration, since this point is not a turning point. Draw a picture.
 
  • #14
slider142 said:
The second derivative at x=0 is -4, meaning the graph has negative concavity there (it opens downwards). This does not tell you much about the relation of this point to the values of points in the closed interval under consideration, since this point is not a turning point. Draw a picture.

You are correct. f(o) = f(pi/2) = 1 but since I know that f"(pi/2) = 2 > 0 it's a min. Logically, f(o) is a min too.
 

Related to Max/Min of f(x) = cos 2x + 2sinx for 0 ≤ x ≤ 3π/4

1. What is the maximum value of the function?

The maximum value of the given function is 2.

2. What is the minimum value of the function?

The minimum value of the given function is -1.

3. Where does the maximum occur?

The maximum occurs at x = 0 and x = 3π/4.

4. Where does the minimum occur?

The minimum occurs at x = π/4 and x = 5π/4.

5. How do you find the critical points of this function?

To find the critical points, we take the derivative of the function and set it equal to 0. Solving for x, we get x = π/4 and x = 5π/4. These are the points where the function changes from increasing to decreasing or vice versa.

Similar threads

  • Calculus and Beyond Homework Help
Replies
12
Views
32K
  • Calculus and Beyond Homework Help
Replies
3
Views
3K
  • Calculus and Beyond Homework Help
Replies
30
Views
2K
  • Calculus and Beyond Homework Help
Replies
5
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
983
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
2
Replies
36
Views
4K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
3K
  • Calculus and Beyond Homework Help
Replies
5
Views
33K
Back
Top