Differentiation
Disclaimer: These are my personal notes compiled for my own reference and learning. They may contain errors, incomplete information, or personal interpretations. While I strive for accuracy, these notes are not peer-reviewed and should not be considered authoritative sources. Please consult official textbooks, research papers, or other reliable sources for academic or professional purposes.
1. Definition of Derivative
The derivative of a function $f(x)$ at a point $x = a$ is:
This represents the instantaneous rate of change of $f$ at $x = a$.
2. Basic Differentiation Rules
- Power Rule: $\frac{d}{dx}[x^n] = nx^{n-1}$
- Constant Rule: $\frac{d}{dx}[c] = 0$
- Constant Multiple: $\frac{d}{dx}[cf(x)] = cf'(x)$
- Sum Rule: $\frac{d}{dx}[f(x) + g(x)] = f'(x) + g'(x)$
- Product Rule: $\frac{d}{dx}[f(x)g(x)] = f'(x)g(x) + f(x)g'(x)$
- Quotient Rule: $\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)g(x) - f(x)g'(x)}{[g(x)]^2}$
3. Chain Rule
For composite functions $f(g(x))$:
This is one of the most important rules in calculus.
4. Derivatives of Common Functions
- Exponential: $\frac{d}{dx}[e^x] = e^x$
- Natural Log: $\frac{d}{dx}[\ln(x)] = \frac{1}{x}$
- Trigonometric:
- $\frac{d}{dx}[\sin(x)] = \cos(x)$
- $\frac{d}{dx}[\cos(x)] = -\sin(x)$
- $\frac{d}{dx}[\tan(x)] = \sec^2(x)$
- Inverse Trig:
- $\frac{d}{dx}[\arcsin(x)] = \frac{1}{\sqrt{1-x^2}}$
- $\frac{d}{dx}[\arccos(x)] = -\frac{1}{\sqrt{1-x^2}}$
- $\frac{d}{dx}[\arctan(x)] = \frac{1}{1+x^2}$
5. Implicit Differentiation
When $y$ is defined implicitly by an equation $F(x,y) = 0$:
Example: For $x^2 + y^2 = 1$, we get $\frac{dy}{dx} = -\frac{x}{y}$.
6. Higher Order Derivatives
The $n$-th derivative is denoted $f^{(n)}(x)$ or $\frac{d^n f}{dx^n}$:
7. Applications
7.1 Optimization
Critical points occur where $f'(x) = 0$ or $f'(x)$ is undefined.
- First Derivative Test: Check sign changes of $f'(x)$
- Second Derivative Test: Use $f''(x)$ at critical points
7.2 Related Rates
When two variables are related, their rates of change are also related:
8. L'Hôpital's Rule
For indeterminate forms $\frac{0}{0}$ or $\frac{\infty}{\infty}$:
9. Taylor Series
The Taylor series expansion of $f(x)$ around $x = a$ is:
10. Code Example
# Python code for symbolic differentiation
import sympy as sp
# Define variable and function
x = sp.Symbol('x')
f = x**3 + 2*x**2 - 5*x + 1
# First derivative
f_prime = sp.diff(f, x)
print(f"f'(x) = {f_prime}")
# Second derivative
f_double_prime = sp.diff(f, x, 2)
print(f"f''(x) = {f_double_prime}")
# Evaluate at specific point
f_prime_at_2 = f_prime.subs(x, 2)
print(f"f'(2) = {f_prime_at_2}")
11. References
- Stewart, J. (2015). Calculus: Early Transcendentals.
- Apostol, T. M. (1967). Calculus, Volume 1.
- Spivak, M. (2008). Calculus.