Solution:
Concept: By the chain rule, dxdcos(u)=−sin(u)dxdu. For the second derivative of a product we use the product rule, (uv)′=u′v+uv′.
To keep the working short, we write y1 for dxdy and y2 for dx2d2y. We work where cosx=0, so that tanx is defined.
Step 1 — Find the first derivative.
With u=sinx, the chain rule gives
y1=−sin(sinx)⋅cosx
Step 2 — Find the second derivative.
We differentiate the product −sin(sinx)⋅cosx. The derivative of sin(sinx) is cos(sinx)cosx, and the derivative of cosx is −sinx:
y2=−[cos(sinx)cosx⋅cosx+sin(sinx)⋅(−sinx)]
y2=−cos(sinx)cos2x+sin(sinx)sinx
Step 3 — Work out the other two terms.
Multiplying y1 by tanx=cosxsinx cancels the cosx:
tanx⋅y1=−sin(sinx)sinx
Since y=cos(sinx), the last term is
ycos2x=cos(sinx)cos2x
Step 4 — Add the three terms.
We add the results of Steps 2 and 3 and see that every term cancels with another:
y2+tanx⋅y1+ycos2x=[−cos(sinx)cos2x+sin(sinx)sinx]−sin(sinx)sinx+cos(sinx)cos2x=0
Therefore, dx2d2y+tanxdxdy+ycos2x=0.