We differentiate a composite like sin(x2−4)? The answer is, with the chain rule, which says that the derivative of the composite of two differentiable functions is the product rule is probably the most widely used differentiation rule in mathematics.
Let u=x2−4
Then y=sinu
We know the differentiation of u w.r.t. x and differentation of y w.r.t. u.
dudx=2x and dydu=cosu
and we can write dydx=dydu⋅dudx. Hence,
dydx=(cosu)⋅(2x)=2x⋅cos(x2−4).