Show solutionHide solution
Let
\[y=\cos x\,\cos 2x\,\cos 3x.\]We differentiate using the product rule. Write \(y=u\,v\,w\) with
\[u=\cos x,\qquad v=\cos 2x,\qquad w=\cos 3x.\]Then
\[y'=u'vw+uv'w+uvw'.\]Now
\[u'=-\sin x,\qquad v'=-2\sin 2x,\qquad w'=-3\sin 3x.\]Substituting,
\[y'=(-\sin x)\cos 2x\cos 3x+\cos x(-2\sin 2x)\cos 3x+\cos x\cos 2x(-3\sin 3x).\]Hence
\[\boxed{\frac{dy}{dx}=-\sin x\cos 2x\cos 3x-2\cos x\sin 2x\cos 3x-3\cos x\cos 2x\sin 3x.}\]Equivalently, factoring out the common product \(\cos x\cos 2x\cos 3x\),
\[\frac{dy}{dx}=-\cos x\cos 2x\cos 3x\left(\tan x+2\tan 2x+3\tan 3x\right),\]valid wherever all three cosines are nonzero. The first boxed form is valid for all real \(x\).