The chain rule differentiates composite functions: the derivative of sin(x2) is cos(x2)⋅2x — differentiate the outer function, then multiply by the derivative of the inside. Integration asks the reverse: given cos(x2)⋅2x, find the original function. That's what u substitution does — it reverses the chain rule.
The Core Intuition
When an integral looks like "a function times the derivative of its inside," substitute the inside with u and the derivative of the inside with du. Consider:
∫2xcos(x2)dx
Here 2x is the derivative of x2, and x2 is the inside of cos(x2). Let u=x2, so du=2xdx:
∫cos(u)du=sin(u)+C=sin(x2)+C
Check: the derivative of sin(x2) is cos(x2)⋅2x.
The Precise Statement
∫f(g(x))⋅g′(x)dx=∫f(u)duwhere u=g(x),du=g′(x)dx
Valid provided g is differentiable and the resulting integral in u is simpler.
The Step-by-Step Method
Identify a function g(x) whose derivative g′(x) also appears (possibly up to a constant factor).
Setu=g(x), compute du=g′(x)dx.
Rewrite the entire integral in u and du — every x and dx must be replaced.
Integrate with respect to u.
Substitute backu=g(x).
Watch out
You cannot mix variables. If any x remains after substitution, you chose the wrong u (or must solve for x in terms of u — rare).
A Second Example (with a constant factor)
Evaluate ∫xx2+1dx. Let u=x2+1, so xdx=21du:
∫u⋅21du=21⋅32u3/2+C=31(x2+1)3/2+C
When Does It Work?
When the integrand is something times the derivative of something inside. Common patterns:
x⋅f(x2) — derivative of x2 is 2x, so u=x2
eg(x)⋅g′(x) — derivative of g(x) appears
g(x)g′(x) — leads to log∣g(x)∣
Tip
If stuck, differentiate a candidate "inside" function in your head. If its derivative (up to a constant) appears, that's your u.
The Definite Integral Case
Either change the limits (when x=a, u=g(a); when x=b, u=g(b); then integrate in u), or integrate in u, substitute back, and use the original limits. Changing limits is cleaner:
Don't confuse du with Δu. du is a differential — the exact relationship du=g′(x)dx that holds inside the integral. Treat it algebraically: multiply, divide, and substitute freely.
U-substitution, taught in the CBSE Class 12 Integrals chapter as the method of substitution, is one of the very first integration techniques students learn after the standard formulas, and "integration by substitution class 12 examples" is a heavily searched revision topic. It remains equally essential for solving integral calculus problems in JEE Main and JEE Advanced.
The key idea is U Substitution — noticing that the derivative of logx is x1, which appears in the integrand.
Let u=logx. Then du=x1dx, so the integral becomes:
∫x(logx)2dx=∫u2du
Integrate: ∫u2du=3u3+C. Substitute back u=logx:
3(logx)3+C
✓Final answer
The integral is 3(logx)3+C.
The integral ∫x(logx)2dx is solved by substituting u=logx, which turns the integrand into u2du, a simple power rule integral. The final result is 3(logx)3+C.
Why U-Substitution Works Here
When you see a function like x(logx)2, the key is to notice that the derivative of logx is x1, which is already sitting in the denominator. This is the classic signal for substitution: if you let u be the "inside" function whose derivative appears nearby, the integral collapses into something much simpler.
Think of it as untangling a knot. The expression (logx)2 is the complicated part, and x1 is the tool that helps you straighten it out. By setting u=logx, you replace the messy logx with a clean variable u, and the x1dx becomes du. Suddenly, you're just integrating u2, which is as straightforward as it gets.
Step-by-Step Solution
Set up the substitution.
Let u=logx. Then differentiate:
dxdu=x1⇒du=x1dx.
This is the crucial link — the dx in the integral pairs with the x1 to form du.
Rewrite the integral in terms of u.
The original integral is
∫x(logx)2dx=∫(logx)2⋅x1dx.
Substituting u=logx and du=x1dx gives:
∫u2du.
Integrate using the power rule.
The power rule for integrals says ∫undu=n+1un+1+C for n=−1. Here n=2, so:
∫u2du=3u3+C.
Substitute back to the original variable.
Recall u=logx, so:
3(logx)3+C.
Watch out
A common mistake is to forget the constant of integration C or to incorrectly apply the power rule to logx directly. Remember, logx is not a power of x — you must use substitution to handle it.
Tip
This substitution works for any power of logx in the numerator with x in the denominator. For ∫x(logx)ndx, the answer is n+1(logx)n+1+C, provided n=−1. If n=−1, you get ∫xlogx1dx=log∣logx∣+C.
✓Final answer
The integral evaluates to 3(logx)3+C.
Method: Substitute the inner function when its derivative is also present
Use this when the integrand contains a function of logx (or any inner function) multiplied by that inner function's derivative — here (logx)2 times x1.
Steps
Step 1: Spot the inner function and its derivative.
dxd(logx)=x1, and the x1 factor is already sitting in the integrand — a signal to substitute.
Step 2: Let u be the inner function.
Put u=logx, so du=x1dx. The integral collapses to a pure power of u: ∫u2du.
Step 3: Integrate in u, then back-substitute.
∫undu=n+1un+1+C⇒3(logx)3+C.
The whole method rests on recognising a "function of g(x) times g′(x)" shape.
Common Mistakes
Mistake 1: Not spotting the x1 as d(logx).
Why it's wrong: without the substitution u=logx, students try to integrate (logx)2 directly, which has no elementary power-rule form here. Correct approach: since du=x1dx is present, substitute and integrate u2.
Mistake 2: Applying the power rule to logx as if it were x.
Why it's wrong: ∫(logx)2dx=3(logx)3 on its own — the x1 factor is what makes it valid. Correct approach: the result 3(logx)3+C holds only because x1dx=du.
Mistake 3: Dropping the +C.
Why it's wrong: indefinite integrals need the constant. Correct approach: finish with +C.