The chain rule is a fundamental technique in calculus used for differentiating compositions of functions. If you have a function y=f(g(x)), where f and g are both differentiable functions, then the chain rule states:
dxdy=f′(g(x))⋅g′(x)
or
dxd(f∘g(x))=f′(g(x))×g′(x)
or in Leibniz's notation:
dxdy=dudy⋅dxdu
In simpler terms, you differentiate the outer function f with respect to its inner argument g(x), then multiply by the derivative of the inner function g(x):
dxdy=f′(g(x))⋅g′(x)
It also states that if you have a function y that depends on u, which in turn depends on x, then the derivative of y with respect to x is:
dxdy=dudy⋅dxdu
Let the composite function be y=(f∘g)(x), then the derivative of y with respect to x is given by:
dxd(f∘g(x))=f′(g(x))×g′(x)
Let's look at a simple example: differentiate h(x)=sin(3x2+2).
Identify the outer and inner functions:
Differentiate the outer function f with respect to u:
Differentiate the inner function g(x)=3x2+2:
Apply the chain rule:
So, the derivative h′(x)=6xcos(3x2+2).