Skip to content
All apps

Substitution rule for integrals

About this app

Integration by substitution with examples: the x-area is distorted into the u-area by u = g(x) (g′(x) explains dx → du), both areas stay equal in size. In sync, the calculation step by step — find the inner function, differentiate, substitute, convert the bounds.

The idea

Integration by substitution, often called u-substitution, is the chain rule in reverse: ∫ f(g(x))·g′(x) dx = ∫ f(u) du with u = g(x). You replace an inner expression with a new variable u, and the factor g′(x) disappears because du = g′(x)·dx. For definite integrals the limits change too: x = a and x = b become u = g(a) and u = g(b). Then there is no need to substitute back to x.

What the app shows

The left side shows the integrand as a function of x, the right side as a function of u. During the “Morph”, u = g(x) turns the even partition of the x-axis into an uneven partition of the u-axis. Each strip keeps its area, becoming taller and narrower or flatter and wider, so both total areas stay equal. Alongside runs the working in five steps: find the inner function, differentiate, substitute, convert the limits, integrate.

Things to try

Four examples are included: ∫₀^√(π/2) 2x·cos(x²) dx, ∫₀¹ x·e^(x²) dx, ∫₀^(π/2) sin x·cos x dx and ∫₀² 2x/(x² + 1) dx. Start the morph and watch where strips get squeezed or stretched: that is where g′(x) is small or large. Step through the working and check how the x-limits turn into u-limits.

Frequently asked questions

How does u-substitution work?
Choose an inner function u = g(x) whose derivative g′(x) appears as a factor in the integrand. Using du = g′(x) dx, rewrite the integral in terms of u, solve it, and express the result in x again. For a definite integral you can convert the limits to u instead.
When should I use substitution to integrate?
It helps when the integrand contains a composite function f(g(x)) together with the inner derivative g′(x), as in 2x·cos(x²) or 2x/(x² + 1). If only a constant factor is missing, as in x·e^(x²), you can balance it outside the integral.
Why do the limits change in u-substitution?
After substituting you integrate over u instead of x, so the limits must be u-values as well. If x runs from a to b, u runs from g(a) to g(b). Alternatively, find the antiderivative, substitute u = g(x) back, and use the original x-limits.
What does the substitution app show?
It places the area under the x-integrand next to the area under the u-integrand and morphs one into the other. A five-step worked solution accompanies each of the four example integrals.

Subject: Analysis (one-dimensional)

More from Analysis (one-dimensional)

A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps