What you'll learn
- How integration by substitution reverses the chain rule.
- How to choose a suitable substitution and transform an integral completely.
- How integration by parts reverses the product rule.
- How to apply integration by parts more than once when necessary.
Before you begin: reversing differentiation
Integration is the inverse process of differentiation. This means that differentiation rules can suggest methods for integrating more complicated expressions.
Two differentiation rules are especially important here:
- The chain rule differentiates a composite function, such as (3x+1)5\left(3x+1\right)^5(3x+1)5.
- The product rule differentiates a product of two functions, such as x2exx^2e^xx2ex.
Integration by substitution reverses the chain rule, while integration by parts reverses the product rule.
Integration by substitution
The connection with the chain rule
A composite function is one function applied to another. For example, in sin(x2)\sin\left(x^2\right)sin(x2), the inner function is x2x^2x2 and the outer function is sine.
The chain rule gives
ddxF(g(x))=F′(g(x))g′(x).\frac{d}{dx}F\left(g(x)\right)=F'\left(g(x)\right)g'(x).dxdF(g(x))=F′(g(x))g′(x).Reversing this tells you that
∫F′(g(x))g′(x) dx=F(g(x))+C.\int F'\left(g(x)\right)g'(x)\,dx=F\left(g(x)\right)+C.∫F′(g(x))g′(x)dx=F(g(x))+C.Therefore, an integral containing a function and the derivative of its inner expression is a strong candidate for substitution.
Integration by substitution
Integration by substitution introduces a new variable, usually uuu, to replace part of the integrand. The aim is to transform the integral into a simpler one that can be integrated directly.
Carrying out a substitution
If you choose
u=g(x),u=g(x),u=g(x),then differentiate with respect to xxx:
dudx=g′(x).\frac{du}{dx}=g'(x).dxdu=g′(x).This can be rearranged as
du=g′(x) dx.du=g'(x)\,dx.du=g′(x)dx.You must rewrite the whole integral, including the differential dxdxdx, in terms of the new variable.
What makes a useful substitution?
Choose an inner expression whose derivative also appears in the integral, possibly differing only by a constant factor. A successful substitution should leave an integral involving only the new variable.
Integrating a power of a linear expression
Find
∫x(x2+4)5 dx.\int x\left(x^2+4\right)^5\,dx.∫x(x2+4)5dx.-
Choose the inner expression u=x2+4u=x^2+4u=x2+4. Differentiating gives du=2x dxdu=2x\,dxdu=2xdx, so x dx=12dux\,dx=\frac{1}{2}duxdx=21du.
-
Replace both parts of the integral:
∫x(x2+4)5 dx=12∫u5 du.\int x\left(x^2+4\right)^5\,dx =\frac{1}{2}\int u^5\,du.∫x(x2+4)5dx=21∫u5du. -
Integrate with respect to uuu:
12∫u5 du=u612+C.\frac{1}{2}\int u^5\,du =\frac{u^6}{12}+C.21∫u5du=12u6+C. -
Substitute back using u=x2+4u=x^2+4u=x2+4:
(x2+4)612+C.\boxed{\frac{\left(x^2+4\right)^6}{12}+C}.12(x2+4)6+C.
Forgetting the derivative factor
You cannot simply replace x2+4x^2+4x2+4 by uuu and ignore x dxx\,dxxdx. The differential must also be transformed using du=2x dxdu=2x\,dxdu=2xdx.
Finding a suitable substitution
The question may not tell you what substitution to use. Look for an expression inside a power, root, exponential, denominator or trigonometric function.
Useful patterns include:
- f′(x)(f(x))nf'(x)\left(f(x)\right)^nf′(x)(f(x))n
- f′(x)f(x)\dfrac{f'(x)}{f(x)}f(x)f′(x)
- f′(x)ef(x)f'(x)e^{f(x)}f′(x)ef(x)
- f′(x)cos(f(x))f'(x)\cos\left(f(x)\right)f′(x)cos(f(x))
- f′(x)sin(f(x))f'(x)\sin\left(f(x)\right)f′(x)sin(f(x))
A constant multiple of the required derivative is not a problem: you can adjust for it outside the integral.
Choosing a substitution involving a denominator
Find
∫x3x2+5 dx.\int \frac{x}{3x^2+5}\,dx.∫3x2+5xdx.-
The denominator is a natural choice, so let u=3x2+5u=3x^2+5u=3x2+5. Then du=6x dxdu=6x\,dxdu=6xdx, giving x dx=16dux\,dx=\frac{1}{6}duxdx=61du.
-
Transform the integral:
∫x3x2+5 dx=16∫1u du.\int \frac{x}{3x^2+5}\,dx =\frac{1}{6}\int \frac{1}{u}\,du.∫3x2+5xdx=61∫u1du. -
Use ∫1u du=ln∣u∣+C\int \frac{1}{u}\,du=\ln|u|+C∫u1du=ln∣u∣+C:
16ln∣u∣+C.\frac{1}{6}\ln|u|+C.61ln∣u∣+C. -
Substitute back:
16ln∣3x2+5∣+C.\boxed{\frac{1}{6}\ln\left|3x^2+5\right|+C}.61ln3x2+5+C.Since 3x2+53x^2+53x2+5 is always positive, this could also be written as 16ln(3x2+5)+C\frac{1}{6}\ln\left(3x^2+5\right)+C61ln(3x2+5)+C.
Substitution in definite integrals
For a definite integral, you can transform the limits into values of uuu. Once the limits have been changed, complete the calculation entirely in terms of uuu and do not substitute back to xxx.
Changing the limits of a definite integral
Evaluate
∫012xx2+3 dx.\int_0^1 2x\sqrt{x^2+3}\,dx.∫012xx2+3dx.-
Let u=x2+3u=x^2+3u=x2+3, so du=2x dxdu=2x\,dxdu=2xdx. Transform the limits: when x=0x=0x=0, u=3u=3u=3; when x=1x=1x=1, u=4u=4u=4.
-
Rewrite the integral using the new limits:
∫012xx2+3 dx=∫34u1/2 du.\int_0^1 2x\sqrt{x^2+3}\,dx =\int_3^4 u^{1/2}\,du.∫012xx2+3dx=∫34u1/2du. -
Integrate and evaluate:
∫34u1/2 du=[23u3/2]34=23(8−33)=163−23.\begin{aligned} \int_3^4 u^{1/2}\,du &=\left[\frac{2}{3}u^{3/2}\right]_3^4\\ &=\frac{2}{3}\left(8-3\sqrt{3}\right)\\ &=\boxed{\frac{16}{3}-2\sqrt{3}}. \end{aligned}∫34u1/2du=[32u3/2]34=32(8−33)=316−23.
Two valid approaches to definite integrals
Either change the limits to values of uuu, or find an antiderivative and substitute back to xxx before using the original limits. Do not mix the two approaches.
Integration by parts
The connection with the product rule
The product rule states
ddx(uv)=udvdx+vdudx.\frac{d}{dx}\left(uv\right)=u\frac{dv}{dx}+v\frac{du}{dx}.dxd(uv)=udxdv+vdxdu.Integrating both sides and rearranging produces the integration-by-parts formula.
Integration by parts
The formula for integration by parts is
∫udvdx dx=uv−∫vdudx dx.\int u\frac{dv}{dx}\,dx =uv-\int v\frac{du}{dx}\,dx.∫udxdvdx=uv−∫vdxdudx.It is often written more compactly as
∫u dv=uv−∫v du.\boxed{\int u\,dv=uv-\int v\,du}.∫udv=uv−∫vdu.The method is useful when the integrand is a product and differentiating one factor makes it simpler.
Choosing uuu and dvdvdv
You split the integrand into two parts:
- Choose uuu to be the factor that becomes simpler when differentiated.
- Choose dvdvdv to be the factor that can be integrated easily.
A useful guide for choosing uuu is LIATE:
- Logarithmic functions, such as lnx\ln xlnx
- Inverse trigonometric functions
- Algebraic functions, such as xxx or x2x^2x2
- Trigonometric functions
- Exponential functions
This is guidance, not an inflexible rule.
Integrating an algebraic-exponential product
Find
∫xex dx.\int xe^x\,dx.∫xexdx.-
Choose u=xu=xu=x because differentiating it makes it simpler, and choose dv=ex dxdv=e^x\,dxdv=exdx because it is easy to integrate. Then du=dxdu=dxdu=dx and v=exv=e^xv=ex.
-
Apply ∫u dv=uv−∫v du\int u\,dv=uv-\int v\,du∫udv=uv−∫vdu:
∫xex dx=xex−∫ex dx.\int xe^x\,dx=xe^x-\int e^x\,dx.∫xexdx=xex−∫exdx. -
Complete the remaining integral:
xex−ex+C.\boxed{xe^x-e^x+C}.xex−ex+C. -
Differentiate the answer to check:
ddx(xex−ex)=ex+xex−ex=xex.\frac{d}{dx}\left(xe^x-e^x\right) =e^x+xe^x-e^x =xe^x.dxd(xex−ex)=ex+xex−ex=xex.
Losing the minus sign
The formula contains a subtraction: uv−∫v duuv-\int v\,duuv−∫vdu. Write the formula before substituting your choices to reduce sign errors.
When there is no obvious product
Some integrals can be treated as products by inserting a factor of 1. This is particularly useful for logarithmic and inverse trigonometric functions.
Integrating a logarithm
Find
∫lnx dx.\int \ln x\,dx.∫lnxdx.-
Regard the integrand as 1⋅lnx1\cdot\ln x1⋅lnx. Choose u=lnxu=\ln xu=lnx and dv=dxdv=dxdv=dx, giving du=1xdxdu=\frac{1}{x}dxdu=x1dx and v=xv=xv=x.
-
Apply integration by parts:
∫lnx dx=xlnx−∫x(1x) dx.\int \ln x\,dx =x\ln x-\int x\left(\frac{1}{x}\right)\,dx.∫lnxdx=xlnx−∫x(x1)dx. -
Simplify and integrate:
xlnx−x+C.\boxed{x\ln x-x+C}.xlnx−x+C.
Applying integration by parts more than once
If the remaining integral is still a product of the same general type, apply integration by parts again. This is common when a polynomial is multiplied by an exponential or trigonometric function.
Applying integration by parts twice
Find
∫x2cosx dx.\int x^2\cos x\,dx.∫x2cosxdx.-
Choose u=x2u=x^2u=x2 and dv=cosx dxdv=\cos x\,dxdv=cosxdx. Then du=2x dxdu=2x\,dxdu=2xdx and v=sinxv=\sin xv=sinx, so
∫x2cosx dx=x2sinx−∫2xsinx dx.\int x^2\cos x\,dx =x^2\sin x-\int 2x\sin x\,dx.∫x2cosxdx=x2sinx−∫2xsinxdx. -
For the remaining integral, choose u=2xu=2xu=2x and dv=sinx dxdv=\sin x\,dxdv=sinxdx. Then du=2 dxdu=2\,dxdu=2dx and v=−cosxv=-\cos xv=−cosx:
∫2xsinx dx=−2xcosx+∫2cosx dx.\int 2x\sin x\,dx =-2x\cos x+\int 2\cos x\,dx.∫2xsinxdx=−2xcosx+∫2cosxdx. -
Evaluate the final integral:
∫2xsinx dx=−2xcosx+2sinx.\int 2x\sin x\,dx=-2x\cos x+2\sin x.∫2xsinxdx=−2xcosx+2sinx. -
Substitute this into the result from the first application:
∫x2cosx dx=x2sinx−(−2xcosx+2sinx)=x2sinx+2xcosx−2sinx+C.\begin{aligned} \int x^2\cos x\,dx &=x^2\sin x-\left(-2x\cos x+2\sin x\right)\\ &=\boxed{x^2\sin x+2x\cos x-2\sin x+C}. \end{aligned}∫x2cosxdx=x2sinx−(−2xcosx+2sinx)=x2sinx+2xcosx−2sinx+C.
Know which method you are reversing
Use substitution when you can see a composite function together with its inner derivative. Use integration by parts when a product contains a factor that becomes simpler when differentiated.
Not every substitution succeeds
At this level, substitution questions are limited to cases where one suitable substitution produces an integrable function. If both xxx and uuu remain after your substitution, reconsider your choice or use an algebraic relation to rewrite the remaining xxx-terms.
In the exam
- Decide whether the integral resembles a reversed chain rule or a reversed product rule.
- For substitution, write uuu, dududu and any changed limits explicitly; check that no xxx remains.
- For integration by parts, record uuu, dududu, dvdvdv and vvv before using the formula.
- Use brackets carefully when subtracting an integral produced by a second application of integration by parts.
- Differentiate your final antiderivative when time allows, and include +C+C+C for every indefinite integral.
Check yourself
- What substitution would you try for ∫xcos(x2) dx\int x\cos\left(x^2\right)\,dx∫xcos(x2)dx, and why?
- How would you choose uuu and dvdvdv when integrating ∫x3ex dx\int x^3e^x\,dx∫x3exdx?
- When changing the limits of a definite integral to values of uuu, why should you not substitute back to xxx?