16

Day 16

Antiderivatives And Basic Integration


Basic Antiderivative Rules

An antiderivative of ff is any function FF with F=fF' = f. Before Riemann sums, the FTC, or u-substitution, you need the reverse of every derivative rule at your fingertips — this is the vocabulary the whole integration unit is built on.

Core Theorem
Every antiderivative differs by a constant, so f(x)dx=F(x)+C\displaystyle\int f(x)\,dx = F(x) + C.
Power rule:
xndx=xn+1n+1+C\int x^n\,dx = \dfrac{x^{n+1}}{n+1} + C for n1n \neq -1; 1xdx=lnx+C\int \dfrac{1}{x}\,dx = \ln|x| + C.
Exponential:
exdx=ex+C\int e^x\,dx = e^x + C; ekxdx=1kekx+C\int e^{kx}\,dx = \dfrac{1}{k}e^{kx} + C; axdx=axlna+C\int a^x\,dx = \dfrac{a^x}{\ln a} + C.
Trig:
sinxdx=cosx+C\int \sin x\,dx = -\cos x + C; cosxdx=sinx+C\int \cos x\,dx = \sin x + C; sec2xdx=tanx+C\int \sec^2 x\,dx = \tan x + C; csc2xdx=cotx+C\int \csc^2 x\,dx = -\cot x + C; secxtanxdx=secx+C\int \sec x\tan x\,dx = \sec x + C; cscxcotxdx=cscx+C\int \csc x\cot x\,dx = -\csc x + C.
Integration is linear:
[cf±g]=cf±g\int [c\,f \pm g] = c\int f \pm \int g.

Worked Examples

Read these first — the full solution is shown, with the reasoning behind each move.

Worked Example 01Easy
Find (6x24x+5)dx\displaystyle\int \left(6x^2 - 4x + 5\right) dx.
How to think about it
Antidifferentiation is the power rule backwards: raise the exponent by one, divide by the new exponent. Do it term by term (integration is linear), treat the constant 55 as 5x05x5x^0 \to 5x, and never drop the +C+C.

Key idea: Apply the power rule term by term. The antiderivative of a constant 55 is 5x5x.

Full solution

1. Step 1: Antidifferentiate Each Term

6x334x22+5x=2x32x2+5x\dfrac{6x^3}{3} - \dfrac{4x^2}{2} + 5x = 2x^3 - 2x^2 + 5x.

2. Step 2: Add the Constant

(6x24x+5)dx=2x32x2+5x+C\displaystyle\int (6x^2 - 4x + 5)\,dx = 2x^3 - 2x^2 + 5x + C.
Worked Example 02Medium
Find (x+3x22x)dx\displaystyle\int \left(\sqrt{x} + \dfrac{3}{x^2} - \dfrac{2}{x}\right) dx.
How to think about it
You can't use the power rule until each term is written as xpowerx^{\text{power}}, so first turn roots and fractions into exponents. The one exception is 2x=2x1\dfrac{2}{x} = 2x^{-1}: the power rule would divide by zero, so its antiderivative is 2lnx2\ln|x|.

Key idea: Rewrite every term as a power of xx first: x1/2x^{1/2}, 3x23x^{-2}, and 2x\frac{2}{x} (which is the n=1n = -1 case).

Full solution

1. Step 1: Rewrite as Powers

(x1/2+3x22x)dx\displaystyle\int \left(x^{1/2} + 3x^{-2} - \dfrac{2}{x}\right) dx.

2. Step 2: Antidifferentiate

x3/23/2+3x112lnx=23x3/23x2lnx+C\dfrac{x^{3/2}}{3/2} + \dfrac{3x^{-1}}{-1} - 2\ln|x| = \dfrac{2}{3}x^{3/2} - \dfrac{3}{x} - 2\ln|x| + C.
Step-by-Step SOP
  1. 1

    Rewrite Before Integrating

    Turn roots, fractions, and quotients into sums of powers of xx (with negative or fractional exponents).
  2. 2

    Reverse the Matching Derivative Rule

    Power rule up by one; 1xlnx\frac{1}{x} \to \ln|x|; each trig and exponential reversal from the table.
  3. 3

    Always Write + C

    An indefinite integral without the constant of integration loses a point.
  4. 4

    Check by Differentiating

    The derivative of your answer must return the original integrand.

Practice — Your Turn

Try each one before opening the hint or the solution.

Practice 01Medium
Find (4e2x+sec2xsinx)dx\displaystyle\int \left(4e^{2x} + \sec^2 x - \sin x\right) dx.
Need a hint?
ekxdx=1kekx\int e^{kx}\,dx = \frac{1}{k}e^{kx}. The other two are direct trig reversals.
Show solution

1. Step 1: Antidifferentiate Each Term

412e2x+tanx(cosx)=2e2x+tanx+cosx4 \cdot \dfrac{1}{2}e^{2x} + \tan x - (-\cos x) = 2e^{2x} + \tan x + \cos x.

2. Step 2: Add C

2e2x+tanx+cosx+C2e^{2x} + \tan x + \cos x + C.
Practice 02Medium
Find x32x+1xdx\displaystyle\int \dfrac{x^3 - 2x + 1}{x}\,dx.
Need a hint?
Divide each term of the numerator by xx first — do not try to integrate a quotient directly.
Show solution

1. Step 1: Split the Fraction

x3x2xx+1x=x22+1x\dfrac{x^3}{x} - \dfrac{2x}{x} + \dfrac{1}{x} = x^2 - 2 + \dfrac{1}{x}.

2. Step 2: Antidifferentiate

x332x+lnx+C\dfrac{x^3}{3} - 2x + \ln|x| + C.
Common Pitfalls
  • Using the Power Rule on 1/xx1dx\int x^{-1}\,dx is the one exception — it is lnx+C\ln|x| + C, not x00\frac{x^0}{0}.
  • Forgetting the 1/k on e^{kx}e3xdx=13e3x+C\int e^{3x}\,dx = \frac{1}{3}e^{3x} + C. Dropping the 13\frac{1}{3} is the most common exponential slip.

Antiderivatives Giving Arctangent and Arcsine

Two derivative rules run in reverse to give inverse-trig antiderivatives: ddxtan1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1+x^2} and ddxsin1x=11x2\frac{d}{dx}\sin^{-1}x = \frac{1}{\sqrt{1-x^2}}. Recognizing an integrand as one of these forms — sometimes after completing the square — is a tested AB skill.

Core Theorem
dxx2+a2=1atan1 ⁣(xa)+C\displaystyle\int \dfrac{dx}{x^2 + a^2} = \dfrac{1}{a}\tan^{-1}\!\left(\dfrac{x}{a}\right) + C
dxa2x2=sin1 ⁣(xa)+C\displaystyle\int \dfrac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}\!\left(\dfrac{x}{a}\right) + C
The special cases
a=1a = 1 give dx1+x2=tan1x+C\int \frac{dx}{1+x^2} = \tan^{-1}x + C and dx1x2=sin1x+C\int \frac{dx}{\sqrt{1-x^2}} = \sin^{-1}x + C. If the denominator is a general quadratic, complete the square to force it into x2+a2x^2 + a^2 or a2x2a^2 - x^2 form.

Worked Examples

Read these first — the full solution is shown, with the reasoning behind each move.

Worked Example 01Easy
Find dxx2+9\displaystyle\int \dfrac{dx}{x^2 + 9}.
How to think about it

Key idea: This is the arctangent form with a2=9a^2 = 9, so a=3a = 3.

Full solution

1. Step 1: Identify a

x2+9=x2+32x^2 + 9 = x^2 + 3^2, so a=3a = 3.

2. Step 2: Apply the Formula

13tan1 ⁣(x3)+C\dfrac{1}{3}\tan^{-1}\!\left(\dfrac{x}{3}\right) + C.
Worked Example 02Easy
Find dx4x2\displaystyle\int \dfrac{dx}{\sqrt{4 - x^2}}.
How to think about it

Key idea: Arcsine form with a2=4a^2 = 4.

Full solution

1. Step 1: Identify a

4x2=22x24 - x^2 = 2^2 - x^2, so a=2a = 2.

2. Step 2: Apply the Formula

sin1 ⁣(x2)+C\sin^{-1}\!\left(\dfrac{x}{2}\right) + C.
Step-by-Step SOP
  1. 1

    Match the Shape

    1quadratic\frac{1}{\text{quadratic}} \Rightarrow arctangent; 1quadratic\frac{1}{\sqrt{\text{quadratic}}} \Rightarrow arcsine.
  2. 2

    Read Off a

    Write the constant as a2a^2; then aa appears both inside the inverse trig and (for arctangent) as a 1a\frac{1}{a} out front.
  3. 3

    Complete the Square If Needed

    A denominator like x2+bx+cx^2 + bx + c becomes (x+b/2)2+(constant)(x + b/2)^2 + (\text{constant}) — then it is a shifted standard form.

Practice — Your Turn

Try each one before opening the hint or the solution.

Practice 01Medium
Evaluate 01dx1+x2\displaystyle\int_0^1 \dfrac{dx}{1 + x^2}.
Need a hint?
The antiderivative is tan1x\tan^{-1}x; evaluate from 0 to 1.
Show solution

1. Step 1: Antiderivative

01dx1+x2=[tan1x]01\displaystyle\int_0^1 \dfrac{dx}{1+x^2} = \Big[\tan^{-1}x\Big]_0^1.

2. Step 2: Evaluate

tan1(1)tan1(0)=π40=π4\tan^{-1}(1) - \tan^{-1}(0) = \dfrac{\pi}{4} - 0 = \dfrac{\pi}{4}.
Practice 02Hard
Find dxx26x+13\displaystyle\int \dfrac{dx}{x^2 - 6x + 13}.
Need a hint?
The denominator does not factor over the reals. Complete the square: x26x+13=(x3)2+4x^2 - 6x + 13 = (x-3)^2 + 4.
Show solution

1. Step 1: Complete the Square

x26x+13=(x26x+9)+4=(x3)2+4x^2 - 6x + 13 = (x^2 - 6x + 9) + 4 = (x - 3)^2 + 4.

2. Step 2: Recognize the Arctangent Form

dx(x3)2+22\displaystyle\int \dfrac{dx}{(x-3)^2 + 2^2} — the shifted arctangent form with a=2a = 2.

3. Step 3: Apply the Formula

12tan1 ⁣(x32)+C\dfrac{1}{2}\tan^{-1}\!\left(\dfrac{x - 3}{2}\right) + C.
Common Pitfalls
  • Dropping the 1/a on the Arctangentdxx2+a2\int \frac{dx}{x^2 + a^2} has a 1a\frac{1}{a} factor. The arcsine form does not — do not add one there.
  • Trying to Factor a Sum of Squaresx2+9x^2 + 9 does not factor over the reals. If a quadratic denominator has no real roots, it is an inverse-trig integral, not a partial-fractions one.

Indefinite Integrals and Initial-Value Problems

The +C+C in an antiderivative is not a formality — it is a free parameter. One extra piece of information (a point on the curve, a starting position) pins it down and turns a family of curves into a single function. This is exactly how you recover position from acceleration.

Core Theorem
If dydx=f(x)\dfrac{dy}{dx} = f(x) and y=y0y = y_0 when x=x0x = x_0, then y=f(x)dx=F(x)+Cy = \displaystyle\int f(x)\,dx = F(x) + C, and CC is found by substituting the point: y0=F(x0)+Cy_0 = F(x_0) + C.
For motion:
v(t)=a(t)dtv(t) = \int a(t)\,dt (with CC from a known velocity), then s(t)=v(t)dts(t) = \int v(t)\,dt (with CC from a known position).

Worked Examples

Read these first — the full solution is shown, with the reasoning behind each move.

Worked Example 01Easy
Find f(x)f(x) if f(x)=6x24f'(x) = 6x^2 - 4 and f(1)=5f(1) = 5.
How to think about it

Key idea: Antidifferentiate to get f(x)+Cf(x) + C, then use f(1)=5f(1) = 5 to solve for CC.

Full solution

1. Step 1: Antidifferentiate

f(x)=2x34x+Cf(x) = 2x^3 - 4x + C.

2. Step 2: Apply the Initial Condition

f(1)=24+C=5    C=7f(1) = 2 - 4 + C = 5 \implies C = 7.

3. Step 3: Write the Solution

f(x)=2x34x+7f(x) = 2x^3 - 4x + 7.
Step-by-Step SOP
  1. 1

    Antidifferentiate the Right-Hand Side

    Get the general antiderivative F(x)+CF(x) + C.
  2. 2

    Substitute the Known Point

    Replace xx and yy with the given values and solve the resulting equation for CC.
  3. 3

    Repeat for Second-Order Problems

    fff'' \to f' (find C1C_1 from f(x0)f'(x_0)), then fff' \to f (find C2C_2 from f(x0)f(x_0)).

Practice — Your Turn

Try each one before opening the hint or the solution.

Practice 01Medium
A function satisfies f(x)=12xf''(x) = 12x, with f(0)=2f'(0) = 2 and f(0)=1f(0) = -1. Find f(x)f(x).
Need a hint?
Antidifferentiate twice, finding a constant after each step.
Show solution

1. Step 1: First Antiderivative

f(x)=6x2+C1f'(x) = 6x^2 + C_1. Since f(0)=2f'(0) = 2, C1=2C_1 = 2, so f(x)=6x2+2f'(x) = 6x^2 + 2.

2. Step 2: Second Antiderivative

f(x)=2x3+2x+C2f(x) = 2x^3 + 2x + C_2. Since f(0)=1f(0) = -1, C2=1C_2 = -1.

3. Step 3: Solution

f(x)=2x3+2x1f(x) = 2x^3 + 2x - 1.
Practice 02Hard
A particle moving along a line has acceleration a(t)=6t2a(t) = 6t - 2 (m/s²). At t=0t = 0, its velocity is v(0)=3v(0) = 3 m/s and its position is s(0)=1s(0) = 1 m. Find s(t)s(t).
Need a hint?
Integrate aa for vv (constant from v(0)v(0)), then integrate vv for ss (constant from s(0)s(0)).
Show solution

1. Step 1: Velocity from Acceleration

v(t)=(6t2)dt=3t22t+C1v(t) = \int (6t - 2)\,dt = 3t^2 - 2t + C_1. v(0)=3    C1=3v(0) = 3 \implies C_1 = 3, so v(t)=3t22t+3v(t) = 3t^2 - 2t + 3.

2. Step 2: Position from Velocity

s(t)=(3t22t+3)dt=t3t2+3t+C2s(t) = \int (3t^2 - 2t + 3)\,dt = t^3 - t^2 + 3t + C_2. s(0)=1    C2=1s(0) = 1 \implies C_2 = 1.

3. Step 3: Solution

s(t)=t3t2+3t+1s(t) = t^3 - t^2 + 3t + 1.
Common Pitfalls
  • Applying Both Conditions to the Same AntiderivativeIn a second-order problem, f(0)f'(0) pins the constant on ff', and f(0)f(0) pins the constant on ff — one condition per integration step, in order.
  • Solving for C Before Antidifferentiating FullyFinish the whole antiderivative (all terms) before plugging in the point, or the value of CC will be wrong.
Gary Chang

Gary Chang

Calculus Educator

5+ Years of Calculus Teaching Experience | AP Calculus Specialist. Dedicated to helping students master calculus through step-by-step logic and clear visualizations.