Chapter 9
18 min read
Section 81 of 353

Basic Integration Rules

The Indefinite Integral and Antiderivatives

Learning Objectives

By the end of this section, you will be able to:

  1. Understand integration as the reverse process of differentiation
  2. Apply the Power Rule for Integration to find antiderivatives of polynomial terms
  3. Use the Constant Multiple, Sum, and Difference Rules to integrate complex expressions
  4. Recognize and integrate basic exponential, logarithmic, and trigonometric functions
  5. Build a working table of fundamental integrals for reference
  6. 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 f(x)dx\int f(x) \, dx means finding a function F(x)F(x) such that F(x)=f(x)F'(x) = f(x).

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 ddx[F(x)]=f(x)\frac{d}{dx}[F(x)] = f(x), then we immediately know that f(x)dx=F(x)+C\int f(x) \, dx = F(x) + C.

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 f(x)dx\int f(x) \, dx and systematically catalogued integration rules. His approach was to think of integration as summation of infinitesimals (hence the elongated S symbol \int 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 F(x)=f(x)F'(x) = f(x), then (F(x)+C)=f(x)(F(x) + C)' = f(x) for any constant CC. 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

Differentiation: ddx[F(x)]=f(x)\frac{d}{dx}[F(x)] = f(x)
Integration: f(x)dx=F(x)+C\int f(x) \, dx = F(x) + C

Let's see how this works with a simple example:

Derivative RuleIntegration 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 f(x)dx\int f(x) \, dx, ask yourself: "What function, when differentiated, gives me f(x)f(x)?" 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:

ddx[xn+1]=(n+1)xn\frac{d}{dx}[x^{n+1}] = (n+1)x^n

To reverse this, we need to find a function whose derivative is xnx^n. We can see that:

ddx[xn+1n+1]=1n+1(n+1)xn=xn\frac{d}{dx}\left[\frac{x^{n+1}}{n+1}\right] = \frac{1}{n+1} \cdot (n+1)x^n = x^n

The Power Rule for Integration

xndx=xn+1n+1+C(n1)\int x^n \, dx = \frac{x^{n+1}}{n+1} + C \quad (n \neq -1)
Add 1 to the exponent, then divide by the new exponent.

Why n ≠ -1?

When n=1n = -1, the formula gives x00\frac{x^0}{0}, which is undefined. The integral of x1=1xx^{-1} = \frac{1}{x} is a special case:

1xdx=lnx+C\int \frac{1}{x} \, dx = \ln|x| + C

This follows because ddx[lnx]=1x\frac{d}{dx}[\ln|x|] = \frac{1}{x}.

Examples of the Power Rule

IntegralPower Rule ApplicationResult
∫ x² dxn = 2 → (n+1) = 3x³/3 + C
∫ x⁵ dxn = 5 → (n+1) = 6x⁶/6 + C
∫ 1 dx = ∫ x⁰ dxn = 0 → (n+1) = 1x + C
∫ √x dx = ∫ x^(1/2) dxn = 1/2 → (n+1) = 3/2(2/3)x^(3/2) + C
∫ 1/x² dx = ∫ x⁻² dxn = -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

Integrand
f(x) = x^{2}
Antiderivative
F(x) = x^{3}/3 + C
xyf(x) = x^{2}F(x) = ∫f(x)dx = x^{3}/3-2-10123-202468
Power Rule: To integrate x^2, add 1 to the exponent to get x^3, then divide by the new exponent (3).

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

kf(x)dx=kf(x)dx\int k \cdot f(x) \, dx = k \cdot \int f(x) \, dx
Constants can be factored out of the integral.

Why This Works

If F(x)=f(x)F'(x) = f(x), then by the constant multiple rule for derivatives:

ddx[kF(x)]=kF(x)=kf(x)\frac{d}{dx}[k \cdot F(x)] = k \cdot F'(x) = k \cdot f(x)

Therefore, kF(x)k \cdot F(x) is an antiderivative of kf(x)k \cdot f(x).

Examples

Example 1: 5x3dx\int 5x^3 \, dx

Factor out the constant: =5x3dx=5x44+C=5x44+C= 5 \int x^3 \, dx = 5 \cdot \frac{x^4}{4} + C = \frac{5x^4}{4} + C

Example 2: 7x2dx=7x2dx\int \frac{7}{x^2} \, dx = \int 7x^{-2} \, dx

=7x2dx=7x11+C=7x+C= 7 \int x^{-2} \, dx = 7 \cdot \frac{x^{-1}}{-1} + C = -\frac{7}{x} + C


Sum and Difference Rules

Integration distributes over addition and subtraction, just like differentiation does.

Sum and Difference Rules

[f(x)+g(x)]dx=f(x)dx+g(x)dx\int [f(x) + g(x)] \, dx = \int f(x) \, dx + \int g(x) \, dx
[f(x)g(x)]dx=f(x)dxg(x)dx\int [f(x) - g(x)] \, dx = \int f(x) \, dx - \int g(x) \, dx
Integrate term by term, then combine.

Why These Work

If F(x)=f(x)F'(x) = f(x) and G(x)=g(x)G'(x) = g(x), then:

ddx[F(x)+G(x)]=F(x)+G(x)=f(x)+g(x)\frac{d}{dx}[F(x) + G(x)] = F'(x) + G'(x) = f(x) + g(x)

So F(x)+G(x)F(x) + G(x) is an antiderivative of f(x)+g(x)f(x) + g(x).

Example: Integrating a Polynomial

Find: (3x42x2+5x7)dx\int (3x^4 - 2x^2 + 5x - 7) \, dx

Solution: Apply the sum/difference rule, then the constant multiple rule and power rule to each term:

=3x4dx2x2dx+5xdx71dx= 3\int x^4 \, dx - 2\int x^2 \, dx + 5\int x \, dx - 7\int 1 \, dx

=3x552x33+5x227x+C= 3 \cdot \frac{x^5}{5} - 2 \cdot \frac{x^3}{3} + 5 \cdot \frac{x^2}{2} - 7x + C

=3x552x33+5x227x+C= \frac{3x^5}{5} - \frac{2x^3}{3} + \frac{5x^2}{2} - 7x + C

One Constant is Enough

When integrating multiple terms, each would technically get its own constant of integration. But since C1+C2+C3+C_1 + C_2 + C_3 + \ldots is just another constant, we write a single +C+ C 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 exe^x is its own derivative: ddx[ex]=ex\frac{d}{dx}[e^x] = e^x. Reversing this:

Natural Exponential Integral

exdx=ex+C\int e^x \, dx = e^x + C

This is one of the most beautiful results in calculus: exe^x is its own antiderivative!

General Exponential Base

For a general base a>0,a1a > 0, a \neq 1:

ddx[ax]=axln(a)\frac{d}{dx}[a^x] = a^x \ln(a)

Reversing this (and dividing both sides by ln(a)):

General Exponential Integral

axdx=axln(a)+C(a>0,a1)\int a^x \, dx = \frac{a^x}{\ln(a)} + C \quad (a > 0, a \neq 1)

Examples

IntegralResultVerification
∫ e^x dxe^x + Cd/dx[e^x] = e^x ✓
∫ 2^x dx2^x/ln(2) + Cd/dx[2^x/ln(2)] = 2^x ✓
∫ 10^x dx10^x/ln(10) + Cd/dx[10^x/ln(10)] = 10^x ✓
∫ 3e^x dx3e^x + Cd/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

sin(x)dx=cos(x)+C\int \sin(x) \, dx = -\cos(x) + C
cos(x)dx=sin(x)+C\int \cos(x) \, dx = \sin(x) + C
sec2(x)dx=tan(x)+C\int \sec^2(x) \, dx = \tan(x) + C
csc2(x)dx=cot(x)+C\int \csc^2(x) \, dx = -\cot(x) + C
sec(x)tan(x)dx=sec(x)+C\int \sec(x)\tan(x) \, dx = \sec(x) + C
csc(x)cot(x)dx=csc(x)+C\int \csc(x)\cot(x) \, dx = -\csc(x) + C

Understanding the Signs

The negative signs in some of these formulas come from the derivative rules. For example:

  • ddx[cos(x)]=sin(x)\frac{d}{dx}[\cos(x)] = -\sin(x), so ddx[cos(x)]=sin(x)\frac{d}{dx}[-\cos(x)] = \sin(x)
  • ddx[cot(x)]=csc2(x)\frac{d}{dx}[\cot(x)] = -\csc^2(x), so ddx[cot(x)]=csc2(x)\frac{d}{dx}[-\cot(x)] = \csc^2(x)

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) dxNotes
x^n (n ≠ -1)x^(n+1)/(n+1) + CPower Rule
1/x = x^(-1)ln|x| + CSpecial case of power rule
e^xe^x + Ce^x is its own antiderivative
a^x (a > 0, a ≠ 1)a^x/ln(a) + CGeneral exponential
sin(x)-cos(x) + CNote the negative sign
cos(x)sin(x) + C
sec²(x)tan(x) + C
csc²(x)-cot(x) + CNote the negative sign
sec(x)tan(x)sec(x) + C
csc(x)cot(x)-csc(x) + CNote the negative sign
1/(1+x²)arctan(x) + CInverse trig
1/√(1-x²)arcsin(x) + CInverse 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: (4x32x+3exsin(x))dx\int \left(4x^3 - \frac{2}{x} + 3e^x - \sin(x)\right) \, dx

Solution:

Apply the sum rule to integrate each term separately:

=4x3dx2xdx+3exdxsin(x)dx= \int 4x^3 \, dx - \int \frac{2}{x} \, dx + \int 3e^x \, dx - \int \sin(x) \, dx

Apply the constant multiple rule to each term:

=4x3dx21xdx+3exdxsin(x)dx= 4\int x^3 \, dx - 2\int \frac{1}{x} \, dx + 3\int e^x \, dx - \int \sin(x) \, dx

Apply the basic integration rules:

=4x442lnx+3ex(cos(x))+C= 4 \cdot \frac{x^4}{4} - 2\ln|x| + 3e^x - (-\cos(x)) + C

Simplify:

=x42lnx+3ex+cos(x)+C= x^4 - 2\ln|x| + 3e^x + \cos(x) + C

Example 2: Rewriting Before Integrating

Find: x3+2x5x2dx\int \frac{x^3 + 2x - 5}{x^2} \, dx

Solution:

First, divide each term by x2x^2:

=(x+2x5x2)dx= \int \left(x + \frac{2}{x} - \frac{5}{x^2}\right) \, dx

Rewrite using negative exponents:

=(x+2x15x2)dx= \int \left(x + 2x^{-1} - 5x^{-2}\right) \, dx

Integrate each term:

=x22+2lnx+5x+C= \frac{x^2}{2} + 2\ln|x| + \frac{5}{x} + C

Example 3: Fractional Exponents

Find: (3x4x3)dx\int (3\sqrt{x} - \frac{4}{\sqrt[3]{x}}) \, dx

Solution:

Rewrite using fractional exponents:

=(3x1/24x1/3)dx= \int (3x^{1/2} - 4x^{-1/3}) \, dx

Apply the power rule to each term:

=3x3/23/24x2/32/3+C= 3 \cdot \frac{x^{3/2}}{3/2} - 4 \cdot \frac{x^{2/3}}{2/3} + C

Simplify (multiply by reciprocals):

=2x3/26x2/3+C=2xx6x23+C= 2x^{3/2} - 6x^{2/3} + C = 2x\sqrt{x} - 6\sqrt[3]{x^2} + C

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:

f(x)dx=1\int_{-\infty}^{\infty} f(x) \, dx = 1

The famous Gaussian normalization constant 12πσ\frac{1}{\sqrt{2\pi}\sigma} comes from solving:

ex2/(2σ2)dx=2πσ\int_{-\infty}^{\infty} e^{-x^2/(2\sigma^2)} \, dx = \sqrt{2\pi}\sigma

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: H(p,q)=p(x)logq(x)dxH(p, q) = -\int p(x) \log q(x) \, dx
  • KL Divergence: DKL(pq)=p(x)logp(x)q(x)dxD_{KL}(p || q) = \int p(x) \log\frac{p(x)}{q(x)} \, dx
  • Expected Loss: E[L]=L(y,y^)p(y)dy\mathbb{E}[L] = \int L(y, \hat{y}) p(y) \, dy

The integration rules help us understand and sometimes analytically compute these quantities.

L2 Regularization

L2 regularization adds a penalty term λwi2\lambda \sum w_i^2. In the continuous limit (for function learning), this becomes:

λf(x)2dx\lambda \int |f'(x)|^2 \, dx

The power rule for integration (x2dx\int x^2 dx) underlies the theory connecting weight decay to smoothness regularization.

Softmax and the Log-Sum-Exp

The softmax function normalizes exponentials:

softmaxi=ezijezj\text{softmax}_i = \frac{e^{z_i}}{\sum_j e^{z_j}}

In continuous settings, the denominator becomes an integral ef(x)dx\int e^{f(x)} dx, 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:

Basic Integration Rules in Python
🐍integration_rules_demo.py
10Symbolic Math

We use SymPy for symbolic computation, allowing us to find exact antiderivatives rather than numerical approximations.

13Power Rule Application

The power rule ∫ x^n dx = x^(n+1)/(n+1) + C works for any real n ≠ -1. This is the most fundamental integration rule.

20Constant Multiple Rule

Constants can be pulled outside the integral: ∫ k·f(x) dx = k·∫ f(x) dx. This simplifies many calculations.

27Sum/Difference Rule

Integration distributes over addition and subtraction: ∫(f + g) dx = ∫f dx + ∫g dx. This lets us break complex integrands apart.

33Exponential Integrals

∫ e^x dx = e^x + C is special because e^x is its own antiderivative. For general bases: ∫ a^x dx = a^x/ln(a) + C.

38Trigonometric Integrals

These follow from reversing the derivative rules: ∫ sin(x) dx = -cos(x) + C because d/dx[-cos(x)] = sin(x).

41 lines without explanation
1import numpy as np
2from scipy import integrate
3import sympy as sp
4
5def demonstrate_integration_rules():
6    """
7    Demonstrate basic integration rules using symbolic and numerical methods.
8    These rules are the foundation of antidifferentiation.
9    """
10    x = sp.Symbol('x')
11
12    # Power Rule: ∫ x^n dx = x^(n+1)/(n+1) + C
13    print("=== Power Rule ===")
14    n_values = [0, 1, 2, 3, -2, 0.5]
15    for n in n_values:
16        integrand = x**n
17        antiderivative = sp.integrate(integrand, x)
18        print(f"∫ x^{n} dx = {antiderivative} + C")
19
20    # Constant Multiple Rule: ∫ k·f(x) dx = k·∫ f(x) dx
21    print("\n=== Constant Multiple Rule ===")
22    k = 5
23    f = x**2
24    integral_kf = sp.integrate(k * f, x)
25    k_times_integral_f = k * sp.integrate(f, x)
26    print(f"∫ {k}·x² dx = {integral_kf} + C")
27    print(f"Verification: {k}·∫ x² dx = {k_times_integral_f} + C")
28
29    # Sum/Difference Rule: ∫ [f(x) ± g(x)] dx = ∫ f(x) dx ± ∫ g(x) dx
30    print("\n=== Sum Rule ===")
31    f, g = x**3, sp.sin(x)
32    integral_sum = sp.integrate(f + g, x)
33    sum_of_integrals = sp.integrate(f, x) + sp.integrate(g, x)
34    print(f"∫ (x³ + sin(x)) dx = {integral_sum} + C")
35
36    # Exponential Integrals
37    print("\n=== Exponential Integrals ===")
38    print(f"∫ e^x dx = {sp.integrate(sp.exp(x), x)} + C")
39    print(f"∫ 2^x dx = {sp.integrate(2**x, x)} + C")
40
41    # Trigonometric Integrals
42    print("\n=== Trigonometric Integrals ===")
43    trig_functions = [sp.sin(x), sp.cos(x), sp.sec(x)**2, sp.csc(x)**2]
44    for func in trig_functions:
45        print(f"∫ {func} dx = {sp.integrate(func, x)} + C")
46
47demonstrate_integration_rules()

Integration in Machine Learning

Here's how integration rules appear in ML contexts:

Integration Rules in ML Applications
🐍integration_in_ml.py
11PDF Normalization

Every probability density must integrate to 1. Finding the normalization constant requires integration, often using power and exponential rules.

18Gaussian Normalization

The Gaussian integral ∫ e^(-x²/2) dx = √(2π) is one of the most important results, derived using a clever polar coordinates substitution.

25Expected Value Integral

E[X] = ∫ x·f(x) dx computes the weighted average. This uses the constant multiple rule and power rule when evaluating specific distributions.

38Cross-Entropy Loss

Cross-entropy H(p,q) = -∫ p(x)log(q(x)) dx uses the logarithm integration rule. In ML, we minimize this to train classifiers.

52Regularization as Integration

L2 regularization λ||w||² is a discrete approximation to an integral. The power rule ∫ x² dx = x³/3 underlies the continuous theory.

62Softmax Normalization

Softmax divides by Σ exp(x_j), a discrete sum. In continuous settings, this becomes ∫ exp(f(t)) dt - requiring exponential integration.

75 lines without explanation
1import numpy as np
2from scipy import integrate
3from scipy.optimize import minimize
4import matplotlib.pyplot as plt
5
6def integration_in_ml():
7    """
8    Integration rules appear throughout machine learning,
9    from loss function normalization to probability densities.
10    """
11
12    # 1. Normalizing Probability Densities
13    # For a valid PDF, ∫ f(x) dx = 1
14    print("=== Probability Density Normalization ===")
15
16    def unnormalized_gaussian(x, mu=0, sigma=1):
17        """Unnormalized Gaussian: exp(-x²/(2σ²))"""
18        return np.exp(-((x - mu)**2) / (2 * sigma**2))
19
20    # Using power rule and properties: ∫ exp(-x²/2) dx = √(2π)
21    sigma = 1.0
22    normalization_constant = np.sqrt(2 * np.pi) * sigma
23    print(f"Normalization constant Z = √(2π)σ = {normalization_constant:.4f}")
24
25    # 2. Expected Value Computation
26    # E[X] = ∫ x·f(x) dx - uses power rule and constant multiple
27    print("\n=== Expected Value (uses integration rules) ===")
28
29    def pdf(x, mu=2, sigma=1):
30        return (1 / (np.sqrt(2*np.pi) * sigma)) * \
31               np.exp(-((x - mu)**2) / (2 * sigma**2))
32
33    # E[X] = ∫ x·f(x) dx
34    expected_value, _ = integrate.quad(
35        lambda x: x * pdf(x, mu=2, sigma=1), -10, 10
36    )
37    print(f"E[X] for N(2, 1) = {expected_value:.4f} (should be 2)")
38
39    # 3. Loss Function - Cross-Entropy
40    # Cross-entropy uses logarithm integral rule
41    print("\n=== Cross-Entropy Loss (uses log integral) ===")
42
43    def cross_entropy_continuous(p, q):
44        """H(p, q) = -∫ p(x) log(q(x)) dx"""
45        def integrand(x):
46            p_val = pdf(x, mu=0, sigma=1)
47            q_val = pdf(x, mu=0.5, sigma=1.2)
48            if q_val > 1e-10:
49                return -p_val * np.log(q_val)
50            return 0
51        result, _ = integrate.quad(integrand, -10, 10)
52        return result
53
54    ce = cross_entropy_continuous(None, None)
55    print(f"Cross-entropy between two Gaussians: {ce:.4f}")
56
57    # 4. Regularization Terms (from integration)
58    print("\n=== L2 Regularization (power rule) ===")
59
60    # L2 penalty: λ·∫ ||w||² dP ≈ λ·Σw²
61    # The sum is a Riemann sum approximation to an integral
62    weights = np.array([0.5, -0.3, 0.8, -0.2, 0.1])
63    lambda_reg = 0.01
64
65    # L2 regularization uses x² integration: ∫ x² dx = x³/3
66    l2_penalty = lambda_reg * np.sum(weights**2)
67    print(f"L2 penalty for weights: {l2_penalty:.4f}")
68
69    # 5. Softmax Normalization
70    print("\n=== Softmax (exponential integral) ===")
71
72    logits = np.array([2.0, 1.0, 0.1])
73    # Softmax: exp(x_i) / Σexp(x_j)
74    # Continuous version: exp(f(x)) / ∫ exp(f(t)) dt
75    exp_logits = np.exp(logits)
76    Z = np.sum(exp_logits)  # Partition function (discrete integral)
77    softmax_probs = exp_logits / Z
78    print(f"Softmax probabilities: {softmax_probs}")
79    print(f"Sum (should be 1): {np.sum(softmax_probs):.4f}")
80
81integration_in_ml()

Common Mistakes to Avoid

Mistake 1: Forgetting +C

Wrong: x2dx=x33\int x^2 \, dx = \frac{x^3}{3}

Correct: x2dx=x33+C\int x^2 \, dx = \frac{x^3}{3} + C

The constant of integration is essential for indefinite integrals. It represents the infinite family of antiderivatives.

Mistake 2: Incorrect Power Rule Application

Wrong: x3dx=x33+C\int x^3 \, dx = \frac{x^3}{3} + C (forgetting to add 1 to exponent)

Correct: x3dx=x44+C\int x^3 \, dx = \frac{x^4}{4} + C

Remember: add 1 to the exponent, then divide by the new exponent.

Mistake 3: Using Power Rule When n = -1

Wrong: 1xdx=x00+C\int \frac{1}{x} \, dx = \frac{x^0}{0} + C (undefined!)

Correct: 1xdx=lnx+C\int \frac{1}{x} \, dx = \ln|x| + C

The case n=1n = -1 is special and requires the logarithm function.

Mistake 4: Wrong Signs in Trig Integrals

Wrong: sin(x)dx=cos(x)+C\int \sin(x) \, dx = \cos(x) + C

Correct: sin(x)dx=cos(x)+C\int \sin(x) \, dx = -\cos(x) + C

Always verify by differentiating: ddx[cos(x)]=sin(x)\frac{d}{dx}[-\cos(x)] = \sin(x)

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).

f(x)g(x)dxf(x)dxg(x)dx\int f(x) \cdot g(x) \, dx \neq \int f(x) \, dx \cdot \int g(x) \, dx


Test Your Understanding

Quiz: Basic Integration Rules

Question 1 of 8Score: 0/0

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

RuleFormulaKey Point
Power Rule∫ x^n dx = x^(n+1)/(n+1) + Cn ≠ -1
Constant Multiple∫ kf(x) dx = k∫ f(x) dxFactor out constants
Sum Rule∫ (f + g) dx = ∫ f dx + ∫ g dxIntegrate term by term
1/x∫ (1/x) dx = ln|x| + CSpecial case, not power rule
Exponential∫ e^x dx = e^x + Ce^x is its own antiderivative
Sine∫ sin(x) dx = -cos(x) + CNote the negative
Cosine∫ cos(x) dx = sin(x) + CNo sign change

Key Takeaways

  1. Integration is reverse differentiation: Every derivative rule can be reversed to create an integration rule.
  2. The power rule is fundamental: xndx=xn+1n+1+C\int x^n dx = \frac{x^{n+1}}{n+1} + C works for all n1n \neq -1.
  3. Integration is linear: Constants factor out, and sums integrate term by term.
  4. Always include +C: Indefinite integrals represent families of functions differing by a constant.
  5. Verify by differentiating: You can always check your antiderivative by taking its derivative.
  6. ML connections are everywhere: These rules underlie probability normalization, loss functions, and regularization.
The Core Insight:
"Integration rules are differentiation rules read backwards — to find an antiderivative, ask what function would give this derivative."
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.
Loading comments...