Integrals & Fundamental Theorem
π’ Integrals & The Fundamental Theorem of Calculus
Integration is the process of finding the accumulation of a quantity, such as the area under a curve or the total distance traveled.
π’ 1. Antiderivatives and Indefinite Integrals
An antiderivative of a function is a function such that .
The indefinite integral represents the family of all antiderivatives: where is the constant of integration.
Common Integrals
- Power Rule: (for ).
- Exponential: .
- Trigonometric: .
- Logarithmic: .
π‘ 2. Definite Integrals & Riemann Sums
The definite integral represents the area under the curve between and .
Riemann Sums
A Riemann sum is an approximation of the area under a curve by dividing it into rectangles.
- Left/Right Endpoints: Using the left or right side of each subinterval for the height.
- Midpoint Rule: Using the middle of each subinterval for more accuracy.
- Trapezoidal Rule: Using trapezoids instead of rectangles.
π΄ 3. The Fundamental Theorem of Calculus (FTC)
The FTC links differentiation and integration, showing that they are essentially inverse operations.
Part 1: Derivative of an Integral
If , then .
Part 2: Evaluation of a Definite Integral
If is an antiderivative of on , then:
π― 4. Integration Techniques
1. Integration by Substitution (U-Substitution)
Reverses the Chain Rule:
2. Integration by Parts
Reverses the Product Rule:
π‘ Practical Example: Numerical Integration (Simpsonβs Rule)
When we canβt find an antiderivative analytically, we use numerical methods.
import numpy as np
def f(x):
return x**2
def simpsons_rule(f, a, b, n):
if n % 2: n += 1 # n must be even
h = (b - a) / n
x = np.linspace(a, b, n + 1)
y = f(x)
S = h/3 * np.sum(y[0:-1:2] + 4*y[1::2] + y[2::2])
return S
# Example: Integral of x^2 from 0 to 1 (should be 1/3)
area = simpsons_rule(f, 0, 1, 100)
print(f"Approximated area: {area}")π Key Takeaways
- Integration sums up small parts to find a total.
- The FTC connects derivatives and integrals.
- U-substitution and Integration by Parts are the primary techniques for solving integrals.