Understanding the Product Rule 🧮
In calculus, the product rule is a formula used to find the derivative of the product of two or more functions. It states that the derivative of a product of two functions is the derivative of the first function times the second function, plus the first function times the derivative of the second function.
The Formula 📝
If we have two functions, $u(x)$ and $v(x)$, the product rule is given by:
$$\frac{d}{dx}[u(x)v(x)] = u'(x)v(x) + u(x)v'(x)$$
Where:
* $u'(x)$ is the derivative of $u(x)$
* $v'(x)$ is the derivative of $v(x)$
Steps to Apply the Product Rule 👣
- Identify the two functions $u(x)$ and $v(x)$ in the product.
- Find the derivatives $u'(x)$ and $v'(x)$.
- Apply the formula: $u'(x)v(x) + u(x)v'(x)$.
- Simplify the result.
Examples 💡
Example 1:
Find the derivative of $f(x) = x^2 \sin(x)$.
* Let $u(x) = x^2$ and $v(x) = \sin(x)$.
* Then $u'(x) = 2x$ and $v'(x) = \cos(x)$.
* Applying the product rule:
$$\frac{d}{dx}[x^2 \sin(x)] = (2x)(\sin(x)) + (x^2)(\cos(x)) = 2x\sin(x) + x^2\cos(x)$$
import sympy
x = sympy.Symbol('x')
f = x**2 * sympy.sin(x)
df = sympy.diff(f, x)
print(df)
# Output: x**2*cos(x) + 2*x*sin(x)
Example 2:
Find the derivative of $g(x) = (x^3 + 2x)(e^x)$.
* Let $u(x) = x^3 + 2x$ and $v(x) = e^x$.
* Then $u'(x) = 3x^2 + 2$ and $v'(x) = e^x$.
* Applying the product rule:
$$\frac{d}{dx}[(x^3 + 2x)(e^x)] = (3x^2 + 2)(e^x) + (x^3 + 2x)(e^x) = (x^3 + 3x^2 + 2x + 2)e^x$$
import sympy
x = sympy.Symbol('x')
g = (x**3 + 2*x) * sympy.exp(x)
dg = sympy.diff(g, x)
print(dg)
# Output: (x**3 + 3*x**2 + 2*x + 2)*exp(x)
When to Use the Product Rule 🤔
The product rule is essential when differentiating a function that is expressed as the product of two or more functions. Recognizing when to apply it is crucial for solving calculus problems accurately.
Practice Makes Perfect 🏆
To master the product rule, practice with various examples. Start with simple functions and gradually move to more complex ones. Understanding the underlying concept and applying it correctly will enhance your calculus skills. Good luck! 🚀