← MathScape

Computing Indefinite Integrals

MATH161
Reference: Stewart 4.4  •  Chapter: 4  •  Section: 4

Navigation: Wiki Home > Skills > Computing Indefinite Integrals

Computing Indefinite Integrals

Your Antiderivative Toolkit

Now that you understand the notation, it's time to build fluency. Computing indefinite integrals means recognizing patterns and applying formulas from your "table of integrals."

The good news: you already know these formulas—they're just your derivative formulas read backwards!

The key skill: combining basic formulas using linearity (sum rule and constant multiple rule) to handle more complex integrands.


Prerequisite Skills

graph LR
    subgraph "Prerequisites"
        A["Indefinite Integral<br/>Notation"]
        B["Power Rule<br/>Antiderivatives"]
        C["Trig<br/>Antiderivatives"]
    end

    subgraph "This Skill"
        D["Computing<br/>Indefinite Integrals"]
    end

    subgraph "Unlocks"
        E["Net Change<br/>Theorem"]
        F["u-Substitution"]
        G["Evaluating<br/>Definite Integrals"]
    end

    A --> D
    B --> D
    C --> D
    D --> E
    D --> F
    D --> G

    click A "indefinite-integral-notation.html"
    click D "computing-indefinite-integrals.html"
    click E "net-change-theorem.html"

    click B "../ch2-sec3/power-rule.html"
    click F "../ch4-sec5/u-substitution-definite.html"
    click G "../ch4-sec2/definite-integral-evaluation.html"

Before You Start

Prerequisite Check — Can you answer these?

From Indefinite Integral Notation:

  1. What does $\int f(x)\, dx = F(x) + C$ mean in terms of derivatives?

From Power Rule Antiderivatives:

  1. Evaluate $\int x^4\, dx$ (include $+C$).
  1. Evaluate $\int \frac{1}{x^3}\, dx$ by first rewriting as a power.

From Trig Antiderivatives:

  1. What is $\int \cos x\, dx$?
  1. What is $\int \sec^2 x\, dx$?
Check Your Answers
  1. It means $F'(x) = f(x)$ — the derivative of $F$ is $f$.
  1. $\int x^4\, dx = \frac{x^5}{5} + C$
  1. $\int x^{-3}\, dx = \frac{x^{-2}}{-2} + C = -\frac{1}{2x^2} + C$
  1. $\int \cos x\, dx = \sin x + C$
  1. $\int \sec^2 x\, dx = \tan x + C$

If these feel unfamiliar, review the prerequisite pages before continuing.


Quick Reference

Property Value
Concept Indefinite Integrals & Net Change
Chapter Chapter 4, Section 4
Difficulty Intermediate
Time ~20 minutes

Key Concepts

The Table of Indefinite Integrals

Power Functions

$$\int x^n\, dx = \frac{x^{n+1}}{n+1} + C \quad (n \neq -1)$$

$$\int k\, dx = kx + C \quad \text{(constant)}$$

Trigonometric Functions

Integral Result
$\int \sin x\, dx$ $-\cos x + C$
$\int \cos x\, dx$ $\sin x + C$
$\int \sec^2 x\, dx$ $\tan x + C$
$\int \csc^2 x\, dx$ $-\cot x + C$
$\int \sec x \tan x\, dx$ $\sec x + C$
$\int \csc x \cot x\, dx$ $-\csc x + C$

Linearity Rules (The Power Tools)

These let you break complex integrals into simpler pieces:

Constant Multiple Rule: $$\int c \cdot f(x)\, dx = c \int f(x)\, dx$$

Sum/Difference Rule: $$\int [f(x) \pm g(x)]\, dx = \int f(x)\, dx \pm \int g(x)\, dx$$

Strategy: Always simplify the integrand FIRST, then apply linearity to separate terms, then integrate term by term.

The "Simplify First" Principle

Many integrands look complicated but become easy after algebraic simplification:

Example: $\int \frac{x^3 + 2x}{x}\, dx$

Don't try to integrate this directly! Simplify first: $$= \int \left(x^2 + 2\right)\, dx = \frac{x^3}{3} + 2x + C$$

Common Patterns to Recognize

Pattern Strategy
$\frac{a + b}{c}$ Split into $\frac{a}{c} + \frac{b}{c}$
$x^a \cdot x^b$ Combine to $x^{a+b}$
$\sqrt{x} = x^{1/2}$ Rewrite as power
$\frac{1}{x^n} = x^{-n}$ Rewrite as power
$\sqrt[n]{x^m} = x^{m/n}$ Rewrite as power

Practice Problems

Level 1 Basic Power Rule

Find the general indefinite integral:

$$\int (3x^2 + 4x + 1)\, dx$$

Thought Process
  1. Use linearity: Split into three separate integrals
  2. Pull out constants: $3\int x^2\, dx + 4\int x\, dx + \int 1\, dx$
  3. Apply power rule: $\int x^n\, dx = \frac{x^{n+1}}{n+1}$
  4. Add $+C$ at the end (only one $C$ for the whole answer)
Show Answer

Apply linearity: $$\int (3x^2 + 4x + 1)\, dx = 3\int x^2\, dx + 4\int x\, dx + \int 1\, dx$$

Integrate each term: $$= 3 \cdot \frac{x^3}{3} + 4 \cdot \frac{x^2}{2} + 1 \cdot x + C$$

Simplify: $$= \boxed{x^3 + 2x^2 + x + C}$$

Level 2 Trigonometric Integration

Find the general indefinite integral:

$$\int (4\sec^2 x - 2\sin x)\, dx$$

Thought Process
  1. Use linearity: Split and pull out constants
  2. Recall trig antiderivatives:
  3. Combine results with single $+C$
Show Answer

Apply linearity: $$\int (4\sec^2 x - 2\sin x)\, dx = 4\int \sec^2 x\, dx - 2\int \sin x\, dx$$

Use trig formulas: $$= 4\tan x - 2(-\cos x) + C$$

Simplify: $$= \boxed{4\tan x + 2\cos x + C}$$

Level 3 Simplify Before Integrating

Find the general indefinite integral:

$$\int \frac{2t^3 + t^2\sqrt{t}}{t^2}\, dt$$

Thought Process
  1. Simplify first: Divide each term in numerator by $t^2$
  2. Integrate the simplified expression
  3. Use power rule with fractional exponents
Show Answer

Simplify the integrand: $$\frac{2t^3 + t^2\sqrt{t}}{t^2} = \frac{2t^3}{t^2} + \frac{t^2 \cdot t^{1/2}}{t^2} = 2t + t^{1/2}$$

Integrate: $$\int (2t + t^{1/2})\, dt = 2 \cdot \frac{t^2}{2} + \frac{t^{3/2}}{3/2} + C$$

Simplify: $$= t^2 + \frac{2}{3}t^{3/2} + C$$

$$= \boxed{t^2 + \frac{2t\sqrt{t}}{3} + C}$$

Level 4 Trig Identity Required

Find the general indefinite integral:

$$\int \frac{\cos\theta}{\sin^2\theta}\, d\theta$$

Hint: Rewrite using trig identities.

Thought Process
  1. Rewrite using trig:
  1. Recognize the pattern: $\int \csc\theta\cot\theta\, d\theta = -\csc\theta + C$

Alternative: This is also equal to $\cot\theta \cdot \csc\theta$, which is a standard form.

Show Answer

Rewrite using trig identities: $$\frac{\cos\theta}{\sin^2\theta} = \frac{1}{\sin\theta} \cdot \frac{\cos\theta}{\sin\theta} = \csc\theta \cot\theta$$

Apply the formula: $$\int \csc\theta \cot\theta\, d\theta = -\csc\theta + C$$

Rewrite in original terms (optional): $$= \boxed{-\csc\theta + C} = \boxed{-\frac{1}{\sin\theta} + C}$$

Level 5 Why Does the Power Rule Fail?

The power rule states $\int x^n\, dx = \frac{x^{n+1}}{n+1} + C$ for $n \neq -1$.

(a) What happens algebraically if you try to apply this formula when $n = -1$?

(b) We know $\frac{d}{dx}[\ln\vert x\vert ] = \frac{1}{x}$. Use this to explain what $\int x^{-1}\, dx$ actually equals.

(c) Deeper question: The function $f(x) = \frac{x^{n+1}}{n+1}$ is continuous for all $n > -1$ and all $n < -1$. What happens to this function as $n \to -1$? Does it "approach" $\ln\vert x\vert $ in any sense?

Thought Process

(a) Substitute $n = -1$ into the formula and see what breaks.

(b) Use the verification principle: if we claim $\int f(x)\, dx = F(x) + C$, then $F'(x)$ should equal $f(x)$.

(c) This requires thinking about limits of functions. Consider what $\frac{x^{n+1}}{n+1}$ looks like for values of $n$ close to $-1$ (like $n = -0.9$ or $n = -1.1$).

Show Answer

(a) Algebraic breakdown:

If $n = -1$, the formula gives: $$\frac{x^{-1+1}}{-1+1} = \frac{x^0}{0} = \frac{1}{0}$$

This is undefined! Division by zero means the power rule formula simply doesn't apply when $n = -1$.

(b) The correct antiderivative:

Since $\frac{d}{dx}[\ln\vert x\vert ] = \frac{1}{x} = x^{-1}$, by definition of indefinite integral:

$$\boxed{\int x^{-1}\, dx = \int \frac{1}{x}\, dx = \ln\vert x\vert + C}$$

This is a completely different type of function (logarithmic, not a power function).

(c) The deeper connection (optional insight):

Consider $F_n(x) = \frac{x^{n+1}}{n+1}$ for $n$ near $-1$:

For a specific value like $x = e$:

  • When $n = -0.5$: $F_{-0.5}(e) = \frac{e^{0.5}}{0.5} \approx 3.30$
  • When $n = -0.9$: $F_{-0.9}(e) = \frac{e^{0.1}}{0.1} \approx 10.52$
  • When $n = -0.99$: $F_{-0.99}(e) = \frac{e^{0.01}}{0.01} \approx 100.50$

As $n \to -1^+$, these values blow up to $+\infty$.

However, using L'Hôpital's Rule on the limit: $$\lim_{n \to -1} \frac{x^{n+1} - 1}{n+1} = \lim_{n \to -1} \frac{x^{n+1} \ln x}{1} = x^0 \ln x = \ln x$$

So while $\frac{x^{n+1}}{n+1}$ itself blows up, the shape of the antiderivative family smoothly transitions to $\ln\vert x\vert $ when we account for the constant of integration properly. This is a beautiful example of how calculus "fills in gaps" smoothly! $\square$


Mastery Checklist


Mental Model

Integration as "Reverse Engineering"

Imagine each integral formula as a puzzle piece. The question is: "What function, when differentiated, gives me this?"

Your table of integrals is your collection of solved puzzles. For complex problems:

  1. Simplify — reduce to basic puzzle pieces
  2. Separate — use linearity to work on one piece at a time
  3. Match — find each piece in your table
  4. Assemble — combine answers with a single $+C$

Common Errors to Avoid

Error Correction
$\int 3x^2\, dx = 3x^3 + C$ Should be $x^3 + C$ (the 3 divides out)
$\int x^{-1}\, dx = \frac{x^0}{0}$ Power rule doesn't work for $n = -1$! Use $\ln\vert x\vert + C$
Multiple $+C$'s Only ONE $+C$ per integral
Forgetting to simplify $\int \frac{x^2 + 1}{x}\, dx \neq$ hard! Simplify first.

Connections

Looking back:

Looking ahead:

Real-world connections:


Previous Up Next
Indefinite Integral Notation Skills Index Net Change Theorem

Last updated: 2026-01-22