Choose substitution, parts, simplification, or numerical approximation.
Integration often feels harder than differentiation because you are working backward. A derivative rule usually tells you what to do directly. An integral asks: which derivative rule might this be reversing?
Learning objectives
After this lesson you should be able to:
recognize when algebraic simplification should come first;
recognize when substitution can simplify an integral;
evaluate simple definite integrals with substitution;
recognize when integration by parts is useful;
approximate integrals numerically when exact antiderivatives are difficult;
check antiderivatives by differentiating;
use SymPy to verify results and interpret equivalent forms.
Technique-selection map
Pattern in the integral
Try this first
algebra can simplify the integrand
simplify first
inside function and its derivative both appear
substitution
product where one factor simplifies when differentiated
integration by parts
definite integral with hard exact form or data
numerical approximation
answer found by hand
check by differentiating
Main question
When choosing a technique, ask: “What derivative rule could have produced this integrand?”
Simplify first
Sometimes the best integration technique is algebra.
Walkthrough: rewrite before integrating
Compute
\[
\int \frac{x^2+3x}{x}\,dx.
\]
Notice the algebra. Every term in the numerator can be divided by \(x\).
Rewrite.\[
\frac{x^2+3x}{x}=x+3.
\]
Integrate term by term.\[
\int(x+3)\,dx=\frac{x^2}{2}+3x+C.
\]
Check. Differentiate \(x^2/2+3x+C\) to get \(x+3\), which equals the simplified integrand.
Substitution
Substitution reverses the chain rule. Use it when you see a composition and the derivative of the inside function is also present.
Substitution workflow
Identify the inside function: \(u=g(x)\).
Compute \(du=g'(x)\,dx\).
Match the remaining factor in the integral.
Rewrite the integral in terms of \(u\).
Integrate in \(u\).
Substitute back to \(x\).
Add \(+C\) for indefinite integrals.
Check by differentiating.
Walkthrough: substitution
Compute
\[
\int 2x\cos(x^2)\,dx.
\]
Choose inside function. The cosine contains \(x^2\), so let \[
u=x^2.
\]
Differentiate.\[
du=2x\,dx.
\]
Match the integral. The factor \(2x\,dx\) is already present.
Rewrite in \(u\).\[
\int 2x\cos(x^2)\,dx=\int \cos(u)\,du.
\]
Integrate.\[
\int \cos(u)\,du=\sin(u)+C.
\]
Substitute back.\[
\sin(x^2)+C.
\]
Check. By chain rule, the derivative of \(\sin(x^2)\) is \(\cos(x^2)2x\).
Guided exercise: choose u
Compute \(\int 3x^2\sin(x^3)\,dx\).
What is the inside function?
What is du?
Rewrite the integral in u.
Integrate and substitute back.
TipGuided solution
Let \(u=x^3\).
Then \(du=3x^2\,dx\).
The integral becomes \(\int \sin(u)\,du\).
The antiderivative is \(-\cos(u)+C=-\cos(x^3)+C\).
Definite integrals with substitution
For definite integrals, you have two choices:
Change the bounds into \(u\)-values and never substitute back.
Find an antiderivative in \(x\), then use the original bounds.
Sometimes exact symbolic integration is difficult, unnecessary, or impossible from available data. Then a numerical approximation is appropriate.
Use midpoint rectangles, trapezoids, or more advanced numerical methods. The answer should be reported as an approximation, and the number of intervals or rectangles should be stated.
Common mistakes and repairs
Substitution mistake
Mistake: choosing \(u\) but not matching \(du\).
Repair: after choosing \(u\), always compute \(du\) and compare it to the remaining factors.
Definite substitution mistake
Mistake: changing to \(u\) but keeping old \(x\)-bounds.
Repair: either change bounds to \(u\)-values or substitute back before evaluating.
By-parts mistake
Mistake: forgetting the minus sign in \(uv-\int v\,du\).
Repair: write the formula before substituting values.
Mixed practice
Which technique fits \(\int 2x\cos(x^2)\,dx\)?
What is a good \(u\) for \(\int 3x^2\sin(x^3)\,dx\)?
Which technique fits \(\int xe^x\,dx\)?
Integrate \(\int 2x\cos(x^2)\,dx\).
Integrate \(\int xe^x\,dx\).
Why might you use a numerical approximation?
How do you check an antiderivative?
TipSolutions
Substitution.
\(u=x^3\).
Integration by parts.
\(\sin(x^2)+C\).
\(xe^x-e^x+C\).
Exact integration may be hard, unnecessary, or unavailable from data.
Differentiate it and compare with the original integrand.
Guessing game checkpoint
Using this lesson with edumath and SymPy
SymPy can verify antiderivatives. Remember that it may return an equivalent form or a special function for harder integrals.
import sympy as spx = sp.symbols("x")answer = sp.integrate(2*x*sp.cos(x**2), x)answer