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

  • Thread starter Thread starter fghtffyrdmns
  • Start date Start date
  • Tags Tags
    Derivatives Trig
Click For Summary

Homework Help Overview

The discussion revolves around finding the maximum and minimum values of the function f(x) = cos 2x + 2sinx within the interval 0 ≤ x ≤ 3π/4. Participants are analyzing critical points and the behavior of the function based on its derivatives.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the calculation of the first derivative and the identification of critical points. There is a focus on checking endpoints and the implications of dividing by cos(x) during the process. Questions arise about the validity of the critical points found and the necessity of evaluating the endpoints.

Discussion Status

Some participants have provided guidance on checking additional critical points and endpoints, while others express confusion about the results obtained from the second derivative test. There is an ongoing exploration of the implications of the second derivative and how it relates to identifying local and absolute extrema.

Contextual Notes

Participants note that both f(0) and f(π/2) yield the same function value, raising questions about the nature of minima in the context of the restricted domain. There is also mention of potential errors in derivative calculations and the need for careful evaluation of critical points.

fghtffyrdmns
Messages
145
Reaction score
0

Homework Statement


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

0 \leq x \leq \frac{3\pi}{4}


Homework Equations



f(x) = cos 2x + 2sinx

The Attempt at a Solution



f(x) = cos 2x + 2sinx

f'(x) = -2sin2x + 2cosx

0=-2sin2x + 2 cosx

2sin2x=2cosx

sin2x = cosx

2sinxcosx = cosx

2sinx = 1

sin x = \frac{1}{2}

x = \frac{\pi}{6}

f''(x) = -4cos2x - 2sinx
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
You have several values you did not check. You must check the endpoints of the interval, x=0 and x=\frac{3\pi}{4}. 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.
 
fghtffyrdmns said:

Homework Statement


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

0 \leq x \leq \frac{3\pi}{4}


Homework Equations



f(x) = cos 2x + 2sinx

The Attempt at a Solution



f(x) = cos 2x + 2sinx

f'(x) = -2sin2x + 2cosx

0=-2sin2x + 2 cosx

2sin2x=2cosx

sin2x = cosx

2sinxcosx = cosx
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:
2sinx = 1

sin x = \frac{1}{2}

x = \frac{\pi}{6}

f''(x) = -4cos2x - 2sinx
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.
 
slider142 said:
You have several values you did not check. You must check the endpoints of the interval, x=0 and x=\frac{3\pi}{4}. 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 x=\frac{\pi}{6} with the second derivative. I got -3 which makes it a local max.
 
fghtffyrdmns said:
Ah, I should've worded it better. I checked x=\frac{\pi}{6} 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. :)
 
slider142 said:
That's correct. However, there are 3 other potential maximums or minimums in the interval to check as well. :)

:o 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 :/
 
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.
 
fghtffyrdmns said:
:o 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).
 
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.
 

Similar threads

Replies
3
Views
3K
  • · Replies 12 ·
Replies
12
Views
33K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
35K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
3K
Replies
2
Views
2K
  • · Replies 15 ·
Replies
15
Views
13K
Replies
2
Views
2K