Solution:
Concept: The product rule says that if u and v are functions of x and y=uv, then
dxdy=udxdv+vdxdu
In words: the first function times the derivative of the second, plus the second function times the derivative of the first.
Step 1 — Name u and v. The function is a product, so we write y=uv with
uv=x2=cos5x
Step 2 — Differentiate u and v. The power rule gives dxdu, and the result dxdcos(ax+b)=−asin(ax+b), with a=5, gives dxdv:
dxdudxdv=2x=−5sin5x
Step 3 — Apply the product rule. We substitute into udxdv+vdxdu:
dxdy=x2(−5sin5x)+cos5x⋅2x=−5x2sin5x+2xcos5x
Watch out: The derivative of cos5x is −5sin5x: both the minus sign and the factor 5 are needed.
Therefore, dxd(x2cos5x)=−5x2sin5x+2xcos5x.