Learning Objectives
By the end of this section, you will be able to:
- Understand integration as the reverse process of differentiation
- Apply the Power Rule for Integration to find antiderivatives of polynomial terms
- Use the Constant Multiple, Sum, and Difference Rules to integrate complex expressions
- Recognize and integrate basic exponential, logarithmic, and trigonometric functions
- Build a working table of fundamental integrals for reference
- Connect integration rules to their applications in probability, optimization, and machine learning
The Big Picture: The Toolkit for Finding Antiderivatives
"Just as multiplication has its inverse in division, differentiation has its inverse in integration. The rules of integration are simply the derivative rules read backwards."
In the previous section, we introduced the concept of the antiderivative and the indefinite integral. We saw that finding means finding a function such that .
But how do we actually find antiderivatives? Do we need to guess and check each time? Fortunately, no. Just as differentiation has systematic rules (power rule, product rule, chain rule), integration has corresponding rules that make finding antiderivatives systematic.
The Core Insight
Every differentiation rule can be "reversed" to create an integration rule. If we know that , then we immediately know that .
This section develops the fundamental integration rules that form the building blocks for all antiderivative calculations. These rules are not just mathematical abstractions — they appear throughout:
- Physics: Finding position from velocity, work from force
- Probability: Computing expected values, normalizing densities
- Economics: Total cost from marginal cost, consumer surplus
- Machine Learning: Loss function normalization, computing gradients of integrals
Historical Context: From Art to Science
Before Newton and Leibniz formalized calculus in the 17th century, finding areas under curves was an ad hoc process. Each problem required clever geometric insights specific to that curve. Archimedes (287–212 BC) famously computed the area under a parabola using the "method of exhaustion," but this required immense ingenuity.
The revolutionary insight of Newton and Leibniz was recognizing that finding areas (integration) is the inverse of finding slopes (differentiation). This connection — the Fundamental Theorem of Calculus — transformed integration from an art into a science.
Leibniz's Contribution: Systematic Rules
Gottfried Wilhelm Leibniz developed the notation and systematically catalogued integration rules. His approach was to think of integration as summation of infinitesimals (hence the elongated S symbol for "sum").
Leibniz recognized that if you know how to differentiate a function, you can reverse the process to integrate. His systematic tables of derivatives and antiderivatives formed the basis of what we teach today.
Why +C Matters
Leibniz and Newton understood that antiderivatives are not unique. If , then for any constant . The "+C" represents the entire family of antiderivatives.
Integration as Reverse Differentiation
The key to understanding integration rules is to think of them as derivative rules read backwards. Consider this simple principle:
The Reversal Principle
Let's see how this works with a simple example:
| Derivative Rule | Integration Rule |
|---|---|
| d/dx [x³] = 3x² | ∫ 3x² dx = x³ + C |
| d/dx [sin(x)] = cos(x) | ∫ cos(x) dx = sin(x) + C |
| d/dx [eˣ] = eˣ | ∫ eˣ dx = eˣ + C |
| d/dx [ln(x)] = 1/x | ∫ (1/x) dx = ln|x| + C |
The Integration Mindset
When you see , ask yourself: "What function, when differentiated, gives me ?" This "reverse engineering" approach is the essence of finding antiderivatives.
The Power Rule for Integration
The most fundamental integration rule corresponds to reversing the power rule for derivatives. Recall that:
To reverse this, we need to find a function whose derivative is . We can see that:
The Power Rule for Integration
Why n ≠ -1?
When , the formula gives , which is undefined. The integral of is a special case:
This follows because .
Examples of the Power Rule
| Integral | Power Rule Application | Result |
|---|---|---|
| ∫ x² dx | n = 2 → (n+1) = 3 | x³/3 + C |
| ∫ x⁵ dx | n = 5 → (n+1) = 6 | x⁶/6 + C |
| ∫ 1 dx = ∫ x⁰ dx | n = 0 → (n+1) = 1 | x + C |
| ∫ √x dx = ∫ x^(1/2) dx | n = 1/2 → (n+1) = 3/2 | (2/3)x^(3/2) + C |
| ∫ 1/x² dx = ∫ x⁻² dx | n = -2 → (n+1) = -1 | -1/x + C |
Interactive: Power Rule Explorer
Explore how the power rule works by adjusting the exponent. Watch how the antiderivative changes:
Power Rule Explorer
The Constant Multiple Rule
Just as constants "pass through" derivatives, they also pass through integrals. This is because differentiation and integration are linear operations.
Constant Multiple Rule
Why This Works
If , then by the constant multiple rule for derivatives:
Therefore, is an antiderivative of .
Examples
Example 1:
Factor out the constant:
Example 2:
Sum and Difference Rules
Integration distributes over addition and subtraction, just like differentiation does.
Sum and Difference Rules
Why These Work
If and , then:
So is an antiderivative of .
Example: Integrating a Polynomial
Find:
Solution: Apply the sum/difference rule, then the constant multiple rule and power rule to each term:
One Constant is Enough
When integrating multiple terms, each would technically get its own constant of integration. But since is just another constant, we write a single at the end.
Exponential Integrals
Exponential functions have particularly elegant integration rules because they are closely related to their own derivatives.
The Natural Exponential
Recall that is its own derivative: . Reversing this:
Natural Exponential Integral
This is one of the most beautiful results in calculus: is its own antiderivative!
General Exponential Base
For a general base :
Reversing this (and dividing both sides by ln(a)):
General Exponential Integral
Examples
| Integral | Result | Verification |
|---|---|---|
| ∫ e^x dx | e^x + C | d/dx[e^x] = e^x ✓ |
| ∫ 2^x dx | 2^x/ln(2) + C | d/dx[2^x/ln(2)] = 2^x ✓ |
| ∫ 10^x dx | 10^x/ln(10) + C | d/dx[10^x/ln(10)] = 10^x ✓ |
| ∫ 3e^x dx | 3e^x + C | d/dx[3e^x] = 3e^x ✓ |
Trigonometric Integrals
The basic trigonometric integrals follow directly from reversing the derivative rules for sine, cosine, and their related functions.
Basic Trigonometric Integrals
Understanding the Signs
The negative signs in some of these formulas come from the derivative rules. For example:
- , so
- , so
Watch the Signs
The negative signs in trigonometric integrals are easy to forget. A good strategy is to always verify your answer by differentiating it.
Complete Integration Table
Here is a comprehensive reference table of the basic integration rules covered in this section. This table is your toolkit for finding antiderivatives.
| Function f(x) | Antiderivative ∫ f(x) dx | Notes |
|---|---|---|
| x^n (n ≠ -1) | x^(n+1)/(n+1) + C | Power Rule |
| 1/x = x^(-1) | ln|x| + C | Special case of power rule |
| e^x | e^x + C | e^x is its own antiderivative |
| a^x (a > 0, a ≠ 1) | a^x/ln(a) + C | General exponential |
| sin(x) | -cos(x) + C | Note the negative sign |
| cos(x) | sin(x) + C | |
| sec²(x) | tan(x) + C | |
| csc²(x) | -cot(x) + C | Note the negative sign |
| sec(x)tan(x) | sec(x) + C | |
| csc(x)cot(x) | -csc(x) + C | Note the negative sign |
| 1/(1+x²) | arctan(x) + C | Inverse trig |
| 1/√(1-x²) | arcsin(x) + C | Inverse trig |
The +C is Essential
Every indefinite integral must include "+C" because antiderivatives are only unique up to a constant. Forgetting the +C is one of the most common errors in calculus.
Worked Examples
Example 1: Combined Rules
Find:
Solution:
Apply the sum rule to integrate each term separately:
Apply the constant multiple rule to each term:
Apply the basic integration rules:
Simplify:
Example 2: Rewriting Before Integrating
Find:
Solution:
First, divide each term by :
Rewrite using negative exponents:
Integrate each term:
Example 3: Fractional Exponents
Find:
Solution:
Rewrite using fractional exponents:
Apply the power rule to each term:
Simplify (multiply by reciprocals):
Machine Learning Connections
The basic integration rules appear throughout machine learning, often in ways that might not be immediately obvious. Understanding these connections helps you see why calculus is essential for ML.
Probability Density Normalization
For a probability density function (PDF) to be valid, it must integrate to 1 over its domain:
The famous Gaussian normalization constant comes from solving:
While this particular integral requires advanced techniques (polar coordinates), the concept relies on the exponential integration rules.
Loss Functions and Regularization
Many ML loss functions involve integrals over probability distributions:
- Cross-Entropy:
- KL Divergence:
- Expected Loss:
The integration rules help us understand and sometimes analytically compute these quantities.
L2 Regularization
L2 regularization adds a penalty term . In the continuous limit (for function learning), this becomes:
The power rule for integration () underlies the theory connecting weight decay to smoothness regularization.
Softmax and the Log-Sum-Exp
The softmax function normalizes exponentials:
In continuous settings, the denominator becomes an integral , requiring exponential integration. This appears in energy-based models and continuous normalizing flows.
Python Implementation
Demonstrating Integration Rules
Let's use Python to verify and explore the basic integration rules:
Integration in Machine Learning
Here's how integration rules appear in ML contexts:
Common Mistakes to Avoid
Mistake 1: Forgetting +C
Wrong:
Correct:
The constant of integration is essential for indefinite integrals. It represents the infinite family of antiderivatives.
Mistake 2: Incorrect Power Rule Application
Wrong: (forgetting to add 1 to exponent)
Correct:
Remember: add 1 to the exponent, then divide by the new exponent.
Mistake 3: Using Power Rule When n = -1
Wrong: (undefined!)
Correct:
The case is special and requires the logarithm function.
Mistake 4: Wrong Signs in Trig Integrals
Wrong:
Correct:
Always verify by differentiating: ✓
Mistake 5: Treating Integration Like Differentiation for Products
Wrong: Trying to use a "product rule" for integration
Reality: There is no simple product rule for integration. Products require special techniques like integration by parts (coming in a later section).
Test Your Understanding
Quiz: Basic Integration Rules
What is ∫ x⁴ dx?
Summary
The basic integration rules are the foundation for finding antiderivatives. They emerge directly from reversing differentiation rules, giving us a systematic approach to integration.
Key Formulas
| Rule | Formula | Key Point |
|---|---|---|
| Power Rule | ∫ x^n dx = x^(n+1)/(n+1) + C | n ≠ -1 |
| Constant Multiple | ∫ kf(x) dx = k∫ f(x) dx | Factor out constants |
| Sum Rule | ∫ (f + g) dx = ∫ f dx + ∫ g dx | Integrate term by term |
| 1/x | ∫ (1/x) dx = ln|x| + C | Special case, not power rule |
| Exponential | ∫ e^x dx = e^x + C | e^x is its own antiderivative |
| Sine | ∫ sin(x) dx = -cos(x) + C | Note the negative |
| Cosine | ∫ cos(x) dx = sin(x) + C | No sign change |
Key Takeaways
- Integration is reverse differentiation: Every derivative rule can be reversed to create an integration rule.
- The power rule is fundamental: works for all .
- Integration is linear: Constants factor out, and sums integrate term by term.
- Always include +C: Indefinite integrals represent families of functions differing by a constant.
- Verify by differentiating: You can always check your antiderivative by taking its derivative.
- ML connections are everywhere: These rules underlie probability normalization, loss functions, and regularization.
Coming Next: In Integration by Substitution (u-substitution), we'll learn how to integrate more complex functions by reversing the chain rule — the most powerful technique for transforming integrals into simpler forms.