AP Calculus AB and BC

U-Substitution Helper: Pick u, See Why It Works

Pick u to be the inside function whose derivative already appears in the integrand as a factor. Test a candidate by differentiating it: if du (up to a constant) is present, the choice works and the integral collapses; otherwise pick a different u. This tool runs that test and hints instead of solving.

Problem 1 of 8
\int 2x\left(x^2+1\right)^4\,dx

Which substitution makes this integral simpler?

This helper drills the single decision that makes or breaks a substitution: which part of the integrand to call uu. You pick a candidate from the pieces on screen, and the tool differentiates it, checks whether dudu is available in the integrand, and rewrites the integral in uu when the choice is sound. When the choice is poor it stops and returns a hint instead of an answer, so the goal is to learn the reasoning, not to be handed a solved integral. Substitution is CED Topic 6.9 (FUN-6.D.1), and it shows up on both the AB and BC exams, usually as one step buried inside a larger accumulation or area problem.

f(g(x))g(x)dx=f(u)du,u=g(x)\int f(g(x))\,g'(x)\,dx = \int f(u)\,du, \qquad u = g(x)

Substitution is the chain rule run backward. The chain rule turns F(g(x))F(g(x)) into F(g(x))g(x)F'(g(x)) \cdot g'(x), so an integral that carries a composite piece next to the derivative of its inner function is built to be un-chained. Every uu you would ever pick comes from the same short list of spots, all of them the inside of a composite: the base of a power like (x2+3)4(x^2+3)^4, the expression under a root, the exponent on ee, the argument of a sin\sin, cos\cos, or tan\tan, or a denominator. Each inner function is a candidate. The tool surfaces those candidates; your job is to decide which one has its derivative sitting elsewhere in the integrand.

The test the tool runs

Differentiate your candidate. If the result, times any constant, is already a factor in the integrand, then dudu can be formed and the substitution works. If differentiating produces a factor that appears nowhere, that candidate fails and you get a hint.

When your pick passes, read what the rewrite shows: every xx disappears, including inside the dxdx, and the integral collapses into a basic form in uu. A leftover constant is harmless, because you fix it by multiplying and dividing. If du=2xdxdu = 2x\,dx and the integral only has xdxx\,dx, then xdx=12dux\,dx = \frac{1}{2}\,du. A leftover variable is not harmless: if an xx still survives after substituting, the rewrite is incomplete and the choice usually has to change.

Two failure signals trigger a hint. The derivative is missing: set u=x2u = x^2 in ex2dx\int e^{x^2}\,dx and du=2xdxdu = 2x\,dx needs an xx that is not there, so the substitution stalls (this integrand has no elementary antiderivative at all). A stray variable is left behind: the rewrite still carries an xx that dudu cannot absorb. Reading which signal fired tells you what to do next, either try a different candidate or, in the stray-variable case, solve u=g(x)u = g(x) for xx and substitute that too.

Worked example

Testing candidates: why u equals x^4 beats u equals x^3

Evaluate x3cos(x4)dx\int x^3 \cos(x^4)\,dx.

  1. List the candidates the way the tool does. The integrand has two pieces, the factor x3x^3 and the composite cos(x4)\cos(x^4). The plausible candidates for uu are u=x3u = x^3 (the standalone factor) and u=x4u = x^4 (the inner function of the composite). Test each by differentiating and checking whether its dudu is present.
  2. Test u=x3u = x^3. Then dudx=3x2\frac{du}{dx} = 3x^2, so du=3x2dxdu = 3x^2\,dx. The factor x2x^2 is available, since x3=xx2x^3 = x \cdot x^2, but pulling out x2dxx^2\,dx leaves a stray xx: x3dx=x3dux^3\,dx = \frac{x}{3}\,du. That leftover xx cannot be written in terms of u=x3u = x^3 (the composite's argument x4x^4 is not a function of x3x^3 either), so the rewrite still carries an xx. This is the stray-variable signal, and the tool returns a hint rather than a clean rewrite.
  3. Test u=x4u = x^4. Then dudx=4x3\frac{du}{dx} = 4x^3, so du=4x3dxdu = 4x^3\,dx. The factor x3dxx^3\,dx is exactly what sits next to the cosine, matched up to the constant 44. Solve for that piece: x3dx=14dux^3\,dx = \frac{1}{4}\,du. This candidate passes.
  4. Rewrite the integral entirely in uu: x3cos(x4)dx=cos(x4)x3dx=cosu14du\int x^3 \cos(x^4)\,dx = \int \cos(x^4)\cdot x^3\,dx = \int \cos u \cdot \frac{1}{4}\,du. No xx remains anywhere, which confirms the substitution is complete.
  5. Factor the constant out front: cosu14du=14cosudu\int \cos u \cdot \frac{1}{4}\,du = \frac{1}{4}\int \cos u\,du.
  6. Integrate in uu: 14cosudu=14sinu\frac{1}{4}\int \cos u\,du = \frac{1}{4}\sin u.
  7. Back-substitute u=x4u = x^4 and add the constant: 14sin(x4)+C\frac{1}{4}\sin(x^4) + C.
  8. Check by differentiating: ddx[14sin(x4)]=14cos(x4)4x3=x3cos(x4)\frac{d}{dx}\left[\frac{1}{4}\sin(x^4)\right] = \frac{1}{4}\cos(x^4)\cdot 4x^3 = x^3\cos(x^4), which is the original integrand.

14sin(x4)+C\dfrac{1}{4}\sin(x^4) + C

Frequently asked questions

How do you choose u in u-substitution?

Pick the inner function of a composite whose derivative also appears in the integrand. Test a candidate by differentiating it: if the result, times any constant, is already a factor in the integral, dudu can be formed and the choice works. The usual candidates are bases of powers, radicands, exponents of ee, trig arguments, and denominators.

Why did the helper flag my u with a hint instead of solving?

Because your candidate did not pass the test. Either its derivative is missing (differentiating produced a factor that is nowhere in the integrand, so dudu cannot be built), or the rewrite left a stray xx that dudu cannot absorb. The hint names which signal fired so you know whether to try another candidate or to solve u=g(x)u = g(x) for xx.

Does it matter which candidate I try first?

No. The differentiate-and-check test is quick, and only the candidate whose derivative is present produces a clean rewrite with no xx left. Try any candidate; the tool will pass the good one and hint on the rest. In the stray-variable case you may also need to solve u=g(x)u = g(x) for xx before every xx clears.