The chain rule is a fundamental concept in calculus that allows you to compute the derivative of a composite function. In other words, if you have a function that is formed by combining two or more functions, the chain rule helps you find the derivative of the resulting function with respect to its input variable(s).
Mathematically, the chain rule states that for two functions, and , the derivative of their composition
is
where is the derivative of with respect to , is the derivative of with respect to , and is the derivative of with respect to .
Find the derivative of the composite function with respect to .
It's possible to check this using the Sympy library in Python:
import sympy
x = sympy.symbols("x")
f_x = x**5
g_x = 2 * x**2 + 3
f_prime = sympy.diff(f_x, x)
g_prime = sympy.diff(g_x, x)
h_prime = f_prime.subs(x, g_x) * g_prime
sympy.simplify(h_prime)
Tags: Mathematics