7

Find the greatest possible value of $5\cos x + 6\sin x$.

I attempted to solve this using graphing, however, the answer appears to be an ugly irrational. Is there a better method of solving this problem?

Thank you.

math-sd
  • 691

5 Answers5

14

A simple vector-based approach: you recognize in the expression the dot product $$(5, 6) \cdot (\cos x, \sin x).$$ This product is maximized when the two vectors are parallel and it is then the product of the moduli $$\sqrt{5^2+6^2} \cdot 1.$$

7

Hint: Let $\theta$ be an angle whose sine is $\frac{5}{\sqrt{61}}$ and whose cosine is $\frac{6}{\sqrt{61}}$. Then our expression is equal to $$\sqrt{61}\sin(x+\theta).$$

André Nicolas
  • 507,029
5

There is an ad-hoc solution as shown in other answers.

Anyway, the standard approach is to find the roots of the derivative, $-5\sin x+6\cos x=0$, i.e. $\tan x=\frac{6}{5}$, so that $x=\arctan\frac{6}{5}$ or $\pi+\arctan\frac{6}{5}$.

Plug these values in the objective function.

  • 1
    I'm sorry, my solution is not "ad hoc" - I put it as I did to indicate how to do this more generally. One doesn't need calculus to sort out basic trigonometric identities. Sometimes you want to go for $\sin (x-a)$ or $\cos (x \pm a)$. I think you overstate the case for "the standard approach" in elementary work. – Mark Bennet May 03 '14 at 20:54
  • @Mark: don't take "ad-hoc" as pejorative. –  May 03 '14 at 21:01
  • No, I don't really. But Inwas trying to indicate a systematic approach (!) – Mark Bennet May 03 '14 at 21:03
  • Would your approach apply to $5 \log \sin x+ 6x^3$ ? –  May 03 '14 at 21:05
  • No, but trigonometric problems like this occur often in physics and more generally (I did these trigonometric identities at school). I like your solution a lot. – Mark Bennet May 03 '14 at 21:09
  • I should rephrase "There are pure trigonometric solutions as shown in other answers". –  May 03 '14 at 21:11
  • 2
    Have a look at the vector-based approach. Pretty compact... :) –  May 03 '14 at 21:12
5

Here's another way, by Cauchy-Schwarz inequality $$(\cos^2x+\sin^2x)(5^2+6^2)\ge (5\cos x + 6\sin x)^2$$

Macavity
  • 46,381
4

Let $r^2=5^2+6^2=25+36=61$ and $\alpha = \arctan \frac 56$

You will find that $$5\cos x+6\sin x=r(\sin\alpha\cos x+\cos\alpha \sin x)=r \sin (x+\alpha)$$

Mark Bennet
  • 100,194