Finding maximum of the function:

In summary: Yes, you are right. I correct it already. I missed the "(".Yes, you are right. I correct it already. I missed the "(".In summary, the conversation discusses finding the maximum value of ##\theta## for a given constant ##a## in the function ##f(\theta)=\frac{\cos(a\cos\theta)-\cos a}{\sin\theta}##. The conversation includes attempts at finding the derivative and using the quotient rule, but there is confusion about the correct application of the rule. The conversation ends with a request for help in finding the value of ##\theta## that satisfies the derivative being equal to zero.
  • #1
yungman
5,755
293
I need to find the maximum ##\theta## value with given constant "a" of this function.

[tex]f(\theta)=\frac{\cos(a\cos\theta)-\cos a}{\sin\theta}[/tex]

So I take the derivative of the function:

[tex]\frac{d f(\theta)}{d\theta}=\frac d {d\theta}\left(\frac{\cos(a\cos\theta)}{\sin\theta}\right)-\frac d {d\theta}\left(\frac{\cos a}{\sin\theta}\right)[/tex]


[tex]\Rightarrow\;\frac{d f(\theta)}{d\theta}=\frac{a\sin^2\theta \sin(a\cos \theta)-\cos\theta\cos(a\cos\theta)}{\sin^2\theta}+\frac{\cos a(\cos\theta)}{\sin^2 \theta}[/tex]
To find max:
[tex]\frac{d f(\theta)}{d\theta}= a\sin(a\cos\theta)-\frac{\cos\theta}{\sin^2\theta}[\cos(a\cos\theta)-\cos a]=0[/tex]
Which is not simpler or more obvious than the original equation.

Obviously ##\theta=\frac {\pi}{2}## will give
[tex]\frac{d f(\theta)}{d\theta}= a\sin(a\cos\theta)-\frac{\cos\theta}{\sin^2\theta}[\cos(a\cos\theta)-\cos a]=0[/tex]
as ##cos\frac {\pi}{2}=0## and both zero

The other possibility is
[tex]a\sin(a\cos\theta)=\frac{\cos\theta}{\sin^2\theta}[\cos(a\cos\theta)-\cos a][/tex]
Which is still hard to find the value of the ##\theta##. Please help.

Thanks
 
Last edited:
Physics news on Phys.org
  • #2
Hello.

You decomposed into two expressions and attempted to apply quotient rule, but the derivative is not right. Try working out the derivative of the first fractional expression step by step. What do you know about the derivative of the function in the denominator and the one in the numerator?

And also, you can't apply quotient rule for the second expression. Treat [itex]\cos(a)[/itex] as the constant and rewrite the whole expression in terms of [itex]\csc[/itex]. Then, work out the derivative.
 
Last edited:
  • #3
NasuSama said:
Hello.

You decomposed into two expressions and attempted to apply quotient rule, but the derivative is not right. Try working out the derivative of the first fractional expression step by step. What do you know about the derivative of the function in the denominator and the one in the numerator?

And also, you can't apply quotient rule for the second expression. Treat [itex]\cos(a)[/itex] as the constant and rewrite the whole expression in terms of [itex]csc[/itex]. Then, work out the derivative.

I believe it is likely that he meant to write [itex]\dfrac{\cos(a)\cos(\theta)}{\sin^2(\theta)}[/itex] instead of [itex]\dfrac{\cos(a\cos(\theta))}{\sin^2(\theta)}[/itex]. I would prefer one application of the quotient rule to two applications of the quotient rule; however, the derivative he posted is correct and, barring his typo, the method by which he arrived at is valid.

At the time, I do not have any suggestions for making progress on the problem. It is not obvious how to solve [itex]\dfrac{df}{d\theta} = 0[/itex] for [itex]\theta[/itex].
 
  • #4
QED Andrew said:
I believe it is likely that he meant to write [itex]\dfrac{\cos(a)\cos(\theta)}{\sin^2(\theta)}[/itex] instead of [itex]\dfrac{\cos(a\cos(\theta))}{\sin^2(\theta)}[/itex]. I would prefer one application of the quotient rule to two applications of the quotient rule; however, the derivative he posted is correct and, barring his typo, the method by which he arrived at is valid.

At the time, I do not have any suggestions for making progress on the problem. It is not obvious how to solve [itex]\dfrac{df}{d\theta} = 0[/itex] for [itex]\theta[/itex].

No, my original post is correct.
 
  • #5
NasuSama said:
Hello.

You decomposed into two expressions and attempted to apply quotient rule, but the derivative is not right. Try working out the derivative of the first fractional expression step by step. What do you know about the derivative of the function in the denominator and the one in the numerator?

And also, you can't apply quotient rule for the second expression. Treat [itex]\cos(a)[/itex] as the constant and rewrite the whole expression in terms of [itex]csc[/itex]. Then, work out the derivative.

I triple checked, I use ##d(\frac u v) =\frac {vdu-udv}{v^2}##. It is straight forward.

[tex]u=\cos(a\cos\theta),\;\hbox { and }\;v=\sin\theta[/tex]

[tex]\frac d {d\theta}\left(\frac{\cos(a\cos\theta)}{\sin\theta}\right)=\frac {\sin\theta[-\sin(a\cos\theta)](-a\sin\theta)-\cos \theta\cos(a\cos\theta)}{\sin^2\theta}[/tex]


[tex]\Rightarrow\;\frac{d f(\theta)}{d\theta}=\frac{a\sin^2\theta \sin(a\cos \theta)-\cos\theta\cos(a\cos\theta)}{\sin^2\theta}+\frac{\cos(a\cos\theta)}{\sin^2 \theta}[/tex]

I don't see anything wrong with my work.
 
  • #6
yungman said:
No, my original post is correct.

In that case, your original post is not correct, namely the second term in the penultimate step of your work. The quotient rule can be applied to [itex]\dfrac{\cos(a)}{\sin(\theta)}[/itex] like so

[tex]\dfrac{d}{d\theta}[\dfrac{\cos(a)}{\sin(\theta)}] = \dfrac{\dfrac{d}{d\theta}[\cos(a)]\sin(\theta) - \cos(a)\dfrac{d}{d\theta}[\sin(\theta)]}{\sin^2(\theta)} = \dfrac{0 \cdot \sin(\theta) - \cos(a)\cos(\theta)}{\sin^2(\theta)} = -\dfrac{\cos(a)\cos(\theta)}{\sin^2(\theta)}[/tex]

However, your final derivative manages to be correct, which I suppose is what matters.
 
Last edited:
  • #7
QED Andrew said:
In that case, your original post is not correct, namely the second term in the penultimate step of your work. The quotient rule can be applied to [itex]\dfrac{\cos(a)}{\sin(\theta)}[/itex] like so

[tex]\dfrac{d}{d\theta}[\dfrac{\cos(a)}{\sin(\theta)}] = \dfrac{\dfrac{d}{d\theta}[\cos(a)]\sin(\theta) - \cos(a)\dfrac{d}{d\theta}[\sin(\theta)]}{\sin^2(\theta)} = \dfrac{0 \cdot \sin(\theta) - \cos(a)(-\cos(\theta))}{\sin^2(\theta)} = \dfrac{\cos(a)\cos(\theta)}{\sin^2(\theta)}[/tex]

However, your final derivative manages to be correct, which I suppose is what matters.

You are right, I look at the more difficult part and miss the "(". I correct it already. I was typing from my notes and just a typo.
 
  • #8
yungman said:
You are right, I look at the more difficult part and miss the "(". I correct it already. I was typing from my notes and just a typo.

This is incorrect:
[tex] \frac{d}{d \theta} \frac{\cos(a)}{\sin(\theta)} = \cos(a) \frac{d}{d \theta} \frac{1}{\sin(\theta)} = \cos(a) \frac{-1}{\sin^2(\theta)} \frac{d \sin(\theta)}{d \theta}
= -\frac{\cos(a) \cos(\theta)}{\sin^2(\theta)}. [/tex]
Remember: ##d \sin(\theta)/d \theta = +\cos(\theta).##
 
  • #9
Ray Vickson said:
This is incorrect:
[tex] \frac{d}{d \theta} \frac{\cos(a)}{\sin(\theta)} = \cos(a) \frac{d}{d \theta} \frac{1}{\sin(\theta)} = \cos(a) \frac{-1}{\sin^2(\theta)} \frac{d \sin(\theta)}{d \theta}
= -\frac{\cos(a) \cos(\theta)}{\sin^2(\theta)}. [/tex]
Remember: ##d \sin(\theta)/d \theta = +\cos(\theta).##

The original equation in post #1 has a minus sign. That's the reason it's +ve. Yes, the term itself is -ve. We are just talking about a typo only.
 
  • #10
yungman said:
The original equation in post #1 has a minus sign. That's the reason it's +ve. Yes, the term itself is -ve. We are just talking about a typo only.

No. What you WROTE is incorrect; it did not have the claimed minus sign. It is important to be accurate in what you write.
 
  • #11
Remember that [itex]\cos(a)[/itex] is the constant. Then, you can't use quotient rule. The first fractional expression is right. You should rewrite that fractional expression using cosecant. You should get [itex]\cos(a)\csc(\theta)[/itex]

Now, differentiate [itex]\csc(\theta)[/itex] and you are done.
 
  • #12
Ray Vickson said:
This is incorrect:
[tex] \frac{d}{d \theta} \frac{\cos(a)}{\sin(\theta)} = \cos(a) \frac{d}{d \theta} \frac{1}{\sin(\theta)} = \cos(a) \frac{-1}{\sin^2(\theta)} \frac{d \sin(\theta)}{d \theta}
= -\frac{\cos(a) \cos(\theta)}{\sin^2(\theta)}. [/tex]
Remember: ##d \sin(\theta)/d \theta = +\cos(\theta).##

I corrected the erroneous sign. Thank you for bringing it to our attention.

NasuSama said:
Remember that [itex]\cos(a)[/itex] is the constant. Then, you can't use quotient rule. The first fractional expression is right. You should rewrite that fractional expression using cosecant. You should get [itex]\cos(a)\csc(\theta)[/itex]

Now, differentiate [itex]\csc(\theta)[/itex] and you are done.

On the contrary, the quotient rule is applicable. [itex]\cos(a)[/itex] is a constant function whose derivative is [itex]0[/itex]. See my previous post for the details. The final derivative in yungman's original post is correct. Although I would agree with you on the inefficiency of decomposing the initial fraction and then twice applying the quotient rule as opposed to an immediate application of the quotient rule, I don't see the point in concerning ourselves with alternative approaches to his intermediate work if his approach is valid and the final result he obtains is correct.
 
  • #13
I updated the original post in why I cannot find the maximum value.
 
Last edited:
  • #14
QED Andrew said:
On the contrary, the quotient rule is applicable. [itex]\cos(a)[/itex] is a constant function whose derivative is [itex]0[/itex]. See my previous post for the details. The final derivative in yungman's original post is correct. Although I would agree with you on the inefficiency of decomposing the initial fraction and then twice applying the quotient rule as opposed to an immediate application of the quotient rule, I don't see the point in concerning ourselves with alternative approaches to his intermediate work if his approach is valid and the final result he obtains is correct.

The quotient rule work even the numerator is a constant, no doubt about it. Whether I decompose or not, the result is the same. This is really not the point. My point is this approach is going nowhere in finding the maximum as the equation after differentiation is even harder to equate to zero. There must be other approach that I don't know of.Thanks
 
Last edited:
  • #15
yungman said:
The quotient rule work even the numerator is a constant, no doubt about it. Whether I decompose or not, the result is the same. This is really not the point. My point is this approach is going nowhere in finding the maximum as the equation after differentiation is even harder to equate to zero. There must be other approach that I don't know of.


Thanks

If you substitute a few numerical values for 'a' and then plot your function in each case, it will soon become obvious what the solution must be; then it becomes easy to give an actual proof.
 
  • #16
Ray Vickson said:
If you substitute a few numerical values for 'a' and then plot your function in each case, it will soon become obvious what the solution must be; then it becomes easy to give an actual proof.

I guess that's the reason the book did not derive the general equation of ##\theta## for maximum value. This is part of the equation of antenna where a is related to the length of the antenna. We always given the length of the antenna to get the specific value of a.

So plotting the graph is the only way here?

Thanks
 
  • #17
yungman said:
I guess that's the reason the book did not derive the general equation of ##\theta## for maximum value. This is part of the equation of antenna where a is related to the length of the antenna. We always given the length of the antenna to get the specific value of a.

So plotting the graph is the only way here?

Thanks

No, that is NOT what I said. I said that plotting a few values would soon make the solution obvious, and at that point it would be easy to prove. In other words, after you see what is happening you can throw away the plots because you will not need them anymore.

Why waste time asking? Just doing it would be more profitable.
 

FAQ: Finding maximum of the function:

How do I find the maximum value of a function?

To find the maximum value of a function, you need to take the derivative of the function and set it equal to 0. Then, solve for the variable to find the critical points. The critical point with the highest value is the maximum value of the function.

Can I use a graph to find the maximum of a function?

Yes, you can use a graph to find the maximum of a function. The maximum value of the function will be at the highest point on the graph.

What is the difference between a local maximum and a global maximum?

A local maximum is the highest point on a specific interval of the function, while a global maximum is the highest point on the entire domain of the function.

Is the maximum value of a function always a critical point?

No, the maximum value of a function is not always a critical point. A critical point is a point where the derivative of the function is equal to 0, but a local maximum can also occur at a point where the derivative is undefined.

Can a function have more than one maximum value?

Yes, a function can have multiple maximum values. This can occur when the function has multiple local maximums or when the global maximum occurs at the same point as a local maximum.

Back
Top