Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

8.2: u-Substitution

( \newcommand{\kernel}{\mathrm{null}\,}\)

Needless to say, most problems we encounter will not be so simple. Here's a slightly more complicated example: find

2xcos(x2)dx.

This is not a "simple'' derivative, but a little thought reveals that it must have come from an application of the chain rule. Multiplied on the "outside'' is 2x, which is the derivative of the "inside'' function x2. Checking:

ddxsin(x2)=cos(x2)ddxx2=2xcos(x2),

so

2xcos(x2)dx=sin(x2)+C.

Even when the chain rule has "produced'' a certain derivative, it is not always easy to see. Consider this problem:

x31x2dx.

There are two factors in this expression, x3 and 1x2, but it is not apparent that the chain rule is involved. Some clever rearrangement reveals that it is:

x31x2dx=(2x)(12)(1(1x2))1x2dx.

This looks messy, but we do now have something that looks like the result of the chain rule: the function 1x2 has been substituted into (1/2)(1x)x, and the derivative of 1x2, 2x, multiplied on the outside. If we can find a function F(x) whose derivative is (1/2)(1x)x we'll be done, since then

ddxF(1x2)=2xF(1x2)=(2x)(12)(1(1x2))1x2=x31x2

But this isn't hard:

12(1x)xdx=12(x1/2x3/2)dx(8.1.1)=12(23x3/225x5/2)+C=(15x13)x3/2+C.

So finally we have

x31x2dx=(15(1x2)13)(1x2)3/2+C.

So we succeeded, but it required a clever first step, rewriting the original function so that it looked like the result of using the chain rule. Fortunately, there is a technique that makes such problems simpler, without requiring cleverness to rewrite a function in just the right way. It does sometimes not work, or may require more than one attempt, but the idea is simple: guess at the most likely candidate for the "inside function'', then do some algebra to see what this requires the rest of the function to look like.

One frequently good guess is any complicated expression inside a square root, so we start by trying u=1x2, using a new variable, u, for convenience in the manipulations that follow. Now we know that the chain rule will multiply by the derivative of this inner function:

dudx=2x,

so we need to rewrite the original function to include this:

x31x2=x3u2x2xdx=x22ududxdx.

Recall that one benefit of the Leibniz notation is that it often turns out that what looks like ordinary arithmetic gives the correct answer, even if something more complicated is going on. For example, in Leibniz notation the chain rule is

dydx=dydtdtdx.

The same is true of our current expression:

x22ududxdx=x22udu.

Now we're almost there: since u=1x2, x2=1u and the integral is

12(1u)udu.

It's no coincidence that this is exactly the integral we computed in (8.1.4), we have simply renamed the variable u to make the calculations less confusing. Just as before:

12(1u)udu=(15u13)u3/2+C.

Then since u=1x2:

x31x2dx=(15(1x2)13)(1x2)3/2+C.

To summarize: if we suspect that a given function is the derivative of another via the chain rule, we let u denote a likely candidate for the inner function, then translate the given function so that it is written entirely in terms of u, with no x remaining in the expression. If we can integrate this new function of u, then the antiderivative of the original function is obtained by replacing u by the equivalent expression in x.

Even in simple cases you may prefer to use this mechanical procedure, since it often helps to avoid silly mistakes. For example, consider again this simple problem:

2xcos(x2)dx.

Let u=x2, then du/dx=2x or du=2xdx. Since we have exactly 2xdx in the original integral, we can replace it by du:

2xcos(x2)dx=cosudu=sinu+C=sin(x2)+C.

This is not the only way to do the algebra, and typically there are many paths to the correct answer. Another possibility, for example, is: Since du/dx=2x, dx=du/2x, and then the integral becomes

2xcos(x2)dx=2xcosudu2x=cosudu.

The important thing to remember is that you must eliminate all instances of the original variable x.

Example 8.2.1

Evaluate (ax+b)ndx, assuming that a and b are constants, a0, and n is a positive integer.

Solution

We let u=ax+b so du=adx or dx=du/a. Then

(ax+b)ndx=1aundu=1a(n+1)un+1+C=1a(n+1)(ax+b)n+1+C.

Example 8.2.2

Evaluate sin(ax+b)dx, assuming that a and b are constants and a0.

Solution

Again we let u=ax+b so du=adx or dx=du/a. Then

sin(ax+b)dx=1asinudu=1a(cosu)+C=1acos(ax+b)+C.

Example 8.2.3

Evaluate

42xsin(x2)dx.

Solution

First we compute the antiderivative, then evaluate the definite integral. Let u=x2 so du=2xdx or xdx=du/2. Then

xsin(x2)dx=12sinudu=12(cosu)+C=12cos(x2)+C.

Now

42xsin(x2)dx=12cos(x2)|42=12cos(16)+12cos(4).

A somewhat neater alternative to this method is to change the original limits to match the variable u. Since u=x2, when x=2, u=4, and when x=4, u=16. So we can do this:

42xsin(x2)dx=16412sinudu=12(cosu)|164=12cos(16)+12cos(4).

An incorrect, and dangerous, alternative is something like this:

42xsin(x2)dx=4212sinudu=12cos(u)|42=12cos(x2)|42=12cos(16)+12cos(4).

This is incorrect because 4212sinudu means that u takes on values between 2 and 4, which is wrong. It is dangerous, because it is very easy to get to the point 12cos(u)|42 and forget to substitute x2 back in for u, thus getting the incorrect answer 12cos(4)+12cos(2). A somewhat clumsy, but acceptable, alternative is something like this:

42xsin(x2)dx=x=4x=212sinudu=12cos(u)|x=4x=2=12cos(x2)|42=cos(16)2+cos(4)2.

Example 8.2.4

Evaluate

1/21/4cos(πt)sin2(πt)dt.

Solution

Let u=sin(πt) so du=πcos(πt)dt or du/π=cos(πt)dt. We change the limits to sin(π/4)=2/2 and sin(π/2)=1. Then

1/21/4cos(πt)sin2(πt)dt=12/21π1u2du=12/21πu2du=1πu11|12/2=1π+2π.

Contributors


This page titled 8.2: u-Substitution is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by David Guichard via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?