Solution:
Key idea: Differentiate twice with the chain rule, then use the first derivative to replace the leftover sin(sinx) term by an expression in dxdy.
Step 1 — Find dxdy.
For y=cos(sinx) the chain rule gives −sin(sinx) times the derivative of sinx.
dxdy=−sin(sinx)cosx...(1)
Step 2 — Find dx2d2y by the product rule.
The derivative of −sin(sinx) is −cos(sinx)cosx, and the derivative of cosx is −sinx.
dx2d2y=−cos(sinx)cosx⋅cosx+(−sin(sinx))(−sinx)
dx2d2y=−cos(sinx)cos2x+sin(sinx)sinx
Since cos(sinx) is y, the first term is −ycos2x.
dx2d2y=−ycos2x+sin(sinx)sinx
Step 3 — Replace sin(sinx) using (1).
Dividing (1) by −cosx expresses sin(sinx) in terms of dxdy; multiplying by sinx then brings in tanx.
sin(sinx)=−cosx1dxdy
sin(sinx)sinx=−tanxdxdy
Step 4 — Substitute and rearrange.
We put this into the result of Step 2.
dx2d2y=−ycos2x−tanxdxdy
Moving every term to the left side:
dx2d2y+tanxdxdy+ycos2x=0
Hence, dx2d2y+tanxdxdy+ycos2x=0 is proved.