[Math] Multivariable calculus directional derivatives

multivariable-calculus

I have a problem figuring out what happens after cos$\theta$+sin$\theta$

where did the $\sqrt{2}$ come from?

where did cossin+cossin come from?

Thank you!

enter image description here

enter image description here

Best Answer

$\sqrt{2}$ comes from the equation: \begin{align} &\cos(\theta)+\sin(\theta)\\ =&\sqrt{2}[\frac{\sqrt{2}}{2}\cos(\theta)+\frac{\sqrt{2}}{2}\sin(\theta)]\\ =&\sqrt{2}[\cos(\theta)\sin(\frac{\pi}{4})+\sin(\theta)\cos(\frac{\pi}{4})] \end{align}

Related Question