Integration by substitution (also called u-substitution) is the integration counterpart of the Chain Rule. It transforms a complicated integral into a simpler one by introducing a new variable.
| Step | Action |
|---|---|
| 1 | Choose |
| 2 | Compute du = g'(x)\,dx |
| 3 | Substitute and ; all 's must disappear |
| 4 | Evaluate the integral in |
| 5 | Replace by to express the answer in |
The table below collects the new integration formulas established in this section. Each one is derived from a substitution in the examples that follow.
| Formula | Name |
|---|---|
| Linear Substitution Rule | |
| Sine of a Multiple | |
| Cosine of a Multiple | |
| Tangent Integral | |
| General Arctangent | |
| General Exponential | |
| Exponential of a Multiple | |
| Hyperbolic Sine | |
| Hyperbolic Cosine | |
| Hyperbolic Tangent |
The Substitution Idea
Suppose we want to evaluate an integral of the form
\int f(g(x))\,g'(x)\,dx. \tag{a}To this end, let . Finding the differential of both sides, we have
g'(x)\,dx = du. \tag{b}If we substitute (b) into (a), we will have
\bbox[8px, #E6F0FA, border: 3px solid #0066CC]{ \int f(\underbrace{g(x)}_{u})\underbrace{g'(x)\,dx}_{du} = \int f(u)\,du.} \tag{c}This equation supplies us with a method for determining integrals in a large number of cases in which the form of the integral is not obvious.
In words, the rule says: if the integrand is a composite function multiplied by the derivative of its inner function, then replacing the inner function by a single letter turns the integral into a simpler one.
The Substitution Rule
Suppose is a differentiable function whose range is an interval , and is a function defined on . Also suppose for . Then if , we have
\begin{aligned} \int f(g(x))\,g'(x)\,dx &= \int f(u)\,du \\ &= F(u)+C \\ &= F(g(x))+C. \end{aligned}Proof
Because F' = f, it follows from the chain rule that
\begin{aligned} \frac{d}{dx}F(g(x)) &= F'(g(x))\,g'(x) \\ &= f(g(x))\,g'(x). \end{aligned}It follows from the definition of antiderivative (or integral) that
\begin{aligned} \int f(g(x))\,g'(x)\,dx &= F(g(x))+C \\ &= F(u)+C & (u = g(x)) \\ &= \int F'(u)\,du \\ &= \int f(u)\,du. \end{aligned}- Because traditionally the letter is used in the Substitution Rule, it is sometimes called u-substitution, but instead of , we can use any letter such as , , , etc.
The u-Substitution Algorithm
- Choose , say put .
- Compute du = g'(x)\,dx.
- Substitute and in the integral. At this step everything should be expressed in terms of and no should be present in the integral. If it is not possible, make another choice for .
- Evaluate the resulting integral.
- Replace by and express the final result in terms of .
First Examples
The three examples below are the basic pattern: spot an inner function whose derivative is already present in the integrand, up to a constant factor.
Evaluate .
Solution
Let , thus , or . Now we can rewrite the integral as
\begin{aligned} \int\underbrace{(x^2+3)^{17}}_{u^{17}}\underbrace{x\,dx}_{\frac{1}{2}\,du} &= \int\frac{1}{2}u^{17}\,du \\ &= \frac{1}{2}\frac{u^{18}}{18}+C \\ &= \frac{1}{36}(x^2+3)^{18}+C. \end{aligned}Evaluate .
Solution
Let . Then or , and
\begin{aligned} \int x^2\sqrt{x^3+1}\,dx &= \int\sqrt{\underbrace{x^3+1}_{u}}\,\overbrace{x^2\,dx}^{\frac{1}{3}\,du} \\ &= \int\frac{1}{3}\sqrt{u}\,du \\ &= \frac{1}{3}\int u^{1/2}\,du \\ &= \frac{1}{3}\left(\frac{2}{3}u^{3/2}\right)+C \\ &= \frac{2}{9}(x^3+1)^{3/2}+C. \end{aligned}Evaluate and .
Solution
Let . Then and
\begin{aligned} \int\sin ax\,dx &= \frac{1}{a}\int\sin u\,du \\ &= -\frac{1}{a}\cos u+C \\ &= -\frac{1}{a}\cos ax+C. \end{aligned}Similarly,
The Linear Substitution Rule
A simple substitution is so useful that it is worth noting explicitly.
If , then
where and are two constants.
Proof
Let . Then or and
\begin{aligned} \int f(ax+b)\,dx &= \int\frac{1}{a}f(u)\,du \\ &= \frac{1}{a}F(u)+C \\ &= \frac{1}{a}F(ax+b)+C. \qquad (u = ax+b) \end{aligned}In words: when the only change to a known integrand is that has been replaced by the linear expression , the answer is the known antiderivative evaluated at , divided by the coefficient a.
Examples Using the Linear Rule
Evaluate:
(a)
(b) .
Solution
(a) Because , it follows from the above theorem that
(b) Since , the above theorem gives
Trigonometric Integrands
Evaluate .
Solution
Let . Then and
\begin{aligned} \int\cos^2 x\,\sin x\,dx &= -\int u^2\,du \\ &= -\frac{u^3}{3}+C \\ &= -\frac{1}{3}\cos^3 x+C. \end{aligned}Evaluate .
Solution
Recall that . Let . Then and
\begin{aligned} \int\tan x\,dx &= \int\frac{\sin x}{\cos x}\,dx \\ &= \int\frac{-du}{u} \\ &= -\ln|u|+C \\ &= -\ln|\cos x|+C. \end{aligned}Recall that . So
\begin{aligned} -\ln|\cos x|+C &= \ln\left(|\cos x|^{-1}\right)+C \\ &= \ln|\sec x|+C. \end{aligned}Therefore, the result can also be written as .
Therefore, the result can also be written as .
\bbox[8px, #E6F0FA, border: 3px solid #0066CC]{ \begin{aligned} \int\tan x\,dx &= \ln|\sec x|+C \\ \text{or}\quad &= -\ln|\cos x|+C \end{aligned}}
Integrals Leading to the Arctangent
The three examples here all reduce to , but each needs a different preliminary step: scaling, a change of variable, or completing the square.
Evaluate .
Solution
Let . Then and
\begin{aligned} \frac{1}{a^2}\int\frac{1}{1+(x/a)^2}\,dx &= \frac{1}{a^2}\int\frac{1}{1+u^2}\,a\,du \\ &= \frac{1}{a}\arctan u+C \\ &= \frac{1}{a}\arctan\frac{x}{a}+C. \end{aligned}To evaluate , we could simply use the Linear Substitution Rule.
Evaluate .
Solution
Let . Then and
\begin{aligned} \int\frac{x}{x^4+1}\,dx &= \int\frac{1}{u^2+1}\,\overbrace{\frac{du}{2}}^{x\,dx} \\ &= \frac{1}{2}\arctan u+C \\ &= \frac{1}{2}\arctan x^2+C. \qquad (u = x^2) \end{aligned}Evaluate . [Hint: Complete the square in the denominator.]
Solution
By completing the square in the denominator, we have
\begin{aligned} \int\frac{1}{x^2+2x+5}\,dx &= \int\frac{dx}{(x^2+2x+1)+4} \\ &= \int\frac{dx}{(x+1)^2+2^2}. \end{aligned}Now let . Then and
\begin{aligned} \int\frac{dx}{(x+1)^2+4} &= \int\frac{du}{u^2+4} \\ &= \frac{1}{2}\arctan\frac{u}{2}+C \\ &= \frac{1}{2}\arctan\frac{x+1}{2}+C. \end{aligned}
Exponential Integrands
Evaluate .
Solution
Let . Taking the natural logarithm of each side, we get
\begin{aligned} \ln(a^x) &= \ln e^u \\ x\ln a &= u. \end{aligned}Thus . Now we can write
\begin{aligned} \int a^x\,dx &= \int e^u\frac{du}{\ln a} \\ &= \frac{1}{\ln a}e^u+C \\ &= \frac{1}{\ln a}a^x+C. \end{aligned}Evaluate .
Solution
We can directly use the Linear Substitution Rule or use the substitution . The substitution leads to and
\begin{aligned} \int e^{ax}\,dx &= \int e^u\frac{du}{a} \\ &= \frac{1}{a}\int e^u\,du \\ &= \frac{1}{a}e^u+C \\ &= \frac{1}{a}e^{ax}+C. \end{aligned}Evaluate .
Solution
Note that the substitution does not work because (which is not ) does not appear in the numerator. But if we notice that , we can make the substitution to make the denominator of the form . Then
and
\begin{aligned} \int\frac{e^x}{1+e^{2x}}\,dx &= \int\frac{du}{1+u^2} \\ &= \arctan u+C \\ &= \arctan(e^x)+C. \qquad (u = e^x) \end{aligned}Evaluate .
Solution
Note that . If we let , because , we have
\begin{aligned} \int\frac{\sqrt[x]{7}}{x^2}\,dx &= -\int 7^u\,du \\ &= -\frac{1}{\ln 7}\,7^u+C \\ &= -\frac{1}{\ln 7}\,\sqrt[x]{7}+C. \end{aligned}
Hyperbolic Integrands
Evaluate .
Solution
Because (\cosh x)' = \sinh x, we know that . We can also use the definition of :
[Recall that (similar to ) is an odd function, so it is half of , and (similar to ) is an even function, so it is half of .]
\begin{aligned} \int\sinh x\,dx &= \frac{1}{2}\int(e^x - e^{-x})\,dx \\ &= \frac{1}{2}\left[e^x - (-e^{-x})\right]+C \\ &= \cosh x+C. \end{aligned}Similarly we can show .
Because (\cosh x)' = \sinh x, we know that . We can also use the definition of :
\bbox[8px, #E6F0FA, border: 3px solid #0066CC]{ \begin{aligned} \int\sinh x\,dx &= \cosh x+C \\ \int\cosh x\,dx &= \sinh x+C \end{aligned}}Evaluate .
Solution
Let . Then and
\begin{aligned} \int\frac{\sinh x}{\cosh x}\,dx &= \int\frac{du}{u} \\ &= \ln|u|+C \\ &= \ln|\cosh x|+C. \end{aligned}Because , we have and
Logarithmic Integrands
In both examples below the substitution is , which works because and the factor is already present.
Evaluate .
Solution
Let , then and
\begin{aligned} \int\underbrace{\frac{1}{\ln x}}_{1/u}\underbrace{\frac{1}{x}\,dx}_{du} &= \int\frac{du}{u} \\ &= \ln|u|+C \\ &= \ln|\ln x|+C. \qquad (u = \ln x) \end{aligned}Evaluate .
Solution
Let , then . So
\begin{aligned} \int\frac{\sin(\ln x)}{x}\,dx &= \int\sin u\,du \\ &= -\cos u+C \\ &= -\cos(\ln x)+C. \end{aligned}
A Substitution Inside a Substitution
Evaluate .
Solution
Let , then
\begin{aligned} du &= 2x\frac{1}{1+(x^2)^2}\,dx \\ &= \frac{2x}{1+x^4}\,dx. \end{aligned}Therefore
\begin{aligned} \int\frac{x}{1+x^4}\arctan x^2\,dx &= \int\frac{1}{2}\underbrace{\arctan x^2}_{u}\underbrace{\frac{2x}{1+x^4}\,dx}_{du} \\ &= \frac{1}{4}u^2+C \\ &= \frac{1}{4}\arctan^2 x^2+C. \end{aligned}
Exercises
Evaluate using a substitution of the form :
(a)
(b)
(c)
(d)
Answer
(a)
(b)
(c)
(d)
Solution
In each part, choose to be the expression inside the power, then check that its derivative is present in the integrand up to a constant factor.
(a) Let , so and : \begin{aligned} \int(3x+2)^{5}\,dx &= \frac{1}{3}\int u^{5}\,du \\ &= \frac{1}{3}\cdot\frac{u^{6}}{6}+C \\ &= \frac{(3x+2)^{6}}{18}+C. \end{aligned}
This is the Linear Substitution Rule in action.
(b) Let , so and : \begin{aligned} \int x\left(x^{2}-4\right)^{7}dx &= \frac{1}{2}\int u^{7}\,du \\ &= \frac{u^{8}}{16}+C \\ &= \frac{\left(x^{2}-4\right)^{8}}{16}+C. \end{aligned}
(c) Let . Then , which is exactly the numerator: \begin{aligned} \int\frac{2x+1}{\left(x^{2}+x+3\right)^{3}}\,dx &= \int u^{-3}\,du \\ &= \frac{u^{-2}}{-2}+C \\ &= -\frac{1}{2\left(x^{2}+x+3\right)^{2}}+C. \end{aligned}
(d) Let , so and : \begin{aligned} \int x^{2}\left(x^{3}-5\right)^{10}dx &= \frac{1}{3}\int u^{10}\,du \\ &= \frac{u^{11}}{33}+C \\ &= \frac{\left(x^{3}-5\right)^{11}}{33}+C. \end{aligned}
Evaluate the following integrals involving radicals:
(a)
(b)
(c)
(d)
Answer
(a)
(b)
(c)
(d)
Solution
(a) Let , so : \begin{aligned} \int\frac{x\,dx}{\sqrt{x^{2}+9}} &= \frac{1}{2}\int u^{-1/2}\,du \\ &= \frac{1}{2}\cdot 2u^{1/2}+C \\ &= \sqrt{x^{2}+9}+C. \end{aligned}
(b) Let , so : \begin{aligned} \int\sqrt{4x+3}\,dx &= \frac{1}{4}\int u^{1/2}\,du \\ &= \frac{1}{4}\cdot\frac{2}{3}u^{3/2}+C \\ &= \frac{1}{6}(4x+3)^{3/2}+C. \end{aligned}
(c) Let , so : \begin{aligned} \int x^{3}\sqrt{x^{4}+2}\,dx &= \frac{1}{4}\int u^{1/2}\,du \\ &= \frac{1}{6}u^{3/2}+C \\ &= \frac{1}{6}\left(x^{4}+2\right)^{3/2}+C. \end{aligned}
(d) Here the useful choice is , because , so : \begin{aligned} \int\frac{dx}{\sqrt{x}\left(1+\sqrt{x}\right)^{2}} &= 2\int u^{-2}\,du \\ &= -\frac{2}{u}+C \\ &= -\frac{2}{1+\sqrt{x}}+C. \end{aligned}
Evaluate directly with the Linear Substitution Rule, without introducing :
(a)
(b)
(c)
(d)
(e)
Answer
(a)
(b)
(c)
(d)
(e)
Solution
The rule states that if , then
So in each part, write down the antiderivative you already know and divide by the coefficient of .
(a) and , so the answer is .
(b) and , so the answer is .
(c) and , so the answer is .
(d) and here , so the answer is . The negative coefficient is easy to miss.
(e) and , so \begin{aligned} \int\frac{dx}{(5x-1)^{3}} &= \frac{1}{5}\left(-\frac{1}{2(5x-1)^{2}}\right)+C \\ &= -\frac{1}{10(5x-1)^{2}}+C. \end{aligned}
Following the worked example for , show that
and write the result in an equivalent form using .
Answer
Solution
Write the cotangent as a quotient and let , so that :
\begin{aligned} \int\cot x\,dx &= \int\frac{\cos x}{\sin x}\,dx \\ &= \int\frac{du}{u} \\ &= \ln|u|+C \\ &= \ln|\sin x|+C. \end{aligned}Because , we have , and using ,
Compare this with the tangent result: there the substitution was and the derivative brought in a minus sign, which is why carries one and this one does not.
Evaluate the following trigonometric integrals:
(a)
(b)
(c)
(d)
Answer
(a)
(b)
(c)
(d)
Solution
In each part one trigonometric function appears to a power while its derivative appears as a separate factor. That factor is the .
(a) Let , so :
(b) Let , so : \begin{aligned} \int\frac{\sin x}{\cos^{3}x}\,dx &= -\int u^{-3}\,du \\ &= -\frac{u^{-2}}{-2}+C \\ &= \frac{1}{2\cos^{2}x}+C = \frac{1}{2}\sec^{2}x+C. \end{aligned}
(c) Let , so :
(d) Let , so :
Note that need not be the inner function of a composition; here it is a whole expression whose derivative happens to be the remaining factor.
The worked example of this section established . By the same method, show that
and use it to evaluate .
Answer
The derivation is below; .
Solution
Factor out of the radical. Since , :
\begin{aligned} \int\frac{dx}{\sqrt{a^{2}-x^{2}}} &= \int\frac{dx}{\sqrt{a^{2}\left(1-\left(\frac{x}{a}\right)^{2}\right)}} \\ &= \frac{1}{a}\int\frac{dx}{\sqrt{1-\left(\frac{x}{a}\right)^{2}}}. \end{aligned}Now let , so :
\begin{aligned} \frac{1}{a}\int\frac{a\,du}{\sqrt{1-u^{2}}} &= \int\frac{du}{\sqrt{1-u^{2}}} \\ &= \arcsin u+C \\ &= \arcsin\frac{x}{a}+C. \end{aligned}Notice the contrast with the arctangent formula: there the factor survived, here it cancels. The reason is that the radical converts into , which then cancels against the coming from .
With ,
Evaluate, completing the square or rescaling first:
(a)
(b)
(c)
Answer
(a)
(b)
(c)
Solution
(a) Complete the square in the denominator:
With and , the general arctangent formula with gives
(b) Factor the leading coefficient out of the denominator: \begin{aligned} \int\frac{dx}{4x^{2}+9} &= \frac{1}{4}\int\frac{dx}{x^{2}+\frac{9}{4}} \\ &= \frac{1}{4}\cdot\frac{1}{3/2}\arctan\frac{x}{3/2}+C \\ &= \frac{1}{6}\arctan\frac{2x}{3}+C. \end{aligned}
(c) Complete the square inside the radical, being careful with the sign: \begin{aligned} 8-2x-x^{2} &= 8-\left(x^{2}+2x\right) \\ &= 8-\left[(x+1)^{2}-1\right] \\ &= 9-(x+1)^{2}. \end{aligned}
With and the arcsine formula from Exercise 6 with ,
Evaluate the following exponential integrals:
(a)
(b)
(c)
(d)
Answer
(a)
(b)
(c)
(d)
Solution
(a) Let , so , which is exactly the numerator:
The absolute value is unnecessary because for every .
(b) Write and apply with :
using . Alternatively, apply the Linear Substitution Rule to with .
(c) Let , so and : \begin{aligned} \int\frac{e^{\sqrt{x}}}{\sqrt{x}}\,dx &= 2\int e^{u}\,du \\ &= 2e^{u}+C = 2e^{\sqrt{x}}+C. \end{aligned}
(d) Let again, so : \begin{aligned} \int e^{x}\sqrt{1+e^{x}}\,dx &= \int u^{1/2}\,du \\ &= \frac{2}{3}u^{3/2}+C \\ &= \frac{2}{3}\left(1+e^{x}\right)^{3/2}+C. \end{aligned}
Evaluate the following logarithmic integrals:
(a)
(b)
(c)
Answer
(a)
(b)
(c)
Solution
(a) Let , so :
(b) Let , so again :
Splitting the fraction instead gives . The two answers differ by the constant , so both are correct.
(c) This is the worked example with one more layer. Let . By the Chain Rule,
which is precisely the rest of the integrand. Hence
Evaluate the following hyperbolic integrals:
(a)
(b)
(c)
Answer
(a)
(b)
(c)
Solution
(a) Mirroring the example, write and let , so :
Unlike , the function does change sign, so the absolute value must be kept here.
(b) Let , so :
(c) Since , the Linear Substitution Rule with gives
Sometimes the substitution must be inverted and back-substituted. Evaluate:
(a)
(b)
(c)
Answer
(a)
(b)
(c)
Solution
In each part the derivative of the inner function is not sitting in the integrand. The fix is to solve the substitution for and replace every remaining as well.
(a) Let , so and : \begin{aligned} \int\frac{x}{x+1}\,dx &= \int\frac{u-1}{u}\,du \\ &= \int\left(1-\frac{1}{u}\right)du \\ &= u-\ln|u|+C \\ &= x+1-\ln|x+1|+C. \end{aligned}
Absorbing the constant into gives .
(b) Let , so and : \begin{aligned} \int\frac{x^{2}}{x-1}\,dx &= \int\frac{u^{2}+2u+1}{u}\,du \\ &= \int\left(u+2+\frac{1}{u}\right)du \\ &= \frac{u^{2}}{2}+2u+\ln|u|+C \\ &= \frac{(x-1)^{2}}{2}+2(x-1)+\ln|x-1|+C. \end{aligned}
(c) Let , so and : \begin{aligned} \int x\sqrt{x-1}\,dx &= \int(u+1)u^{1/2}\,du \\ &= \int\left(u^{3/2}+u^{1/2}\right)du \\ &= \frac{2}{5}u^{5/2}+\frac{2}{3}u^{3/2}+C \\ &= \frac{2}{5}(x-1)^{5/2}+\frac{2}{3}(x-1)^{3/2}+C. \end{aligned}
Evaluate .
Answer
Solution
The key observation is that , which turns the denominator into the arctangent form. Let , so that
Then
\begin{aligned} \int\frac{dx}{\sqrt{x}\,(1+x)} &= \int\frac{2\,du}{1+u^{2}} \\ &= 2\arctan u+C \\ &= 2\arctan\sqrt{x}+C. \end{aligned}This is the same manoeuvre used in the worked example for : rewrite the denominator as , then let be that something.
Evaluate in three ways: with , with , and by first using the identity . Explain why the three answers look different but are all correct.
Answer
, , and . The three differ from one another by constants, so they describe the same family of antiderivatives.
Solution
Method 1. Let , so :
Method 2. Let , so :
Method 3. Using and the formula with : \begin{aligned} \int\sin x\cos x\,dx &= \frac{1}{2}\int\sin 2x\,dx \\ &= \frac{1}{2}\left(-\frac{1}{2}\cos 2x\right)+C \\ &= -\frac{\cos 2x}{4}+C. \end{aligned}
Why they agree. Using ,
and using ,
Each pair differs by a constant, which the arbitrary constant absorbs. Two antiderivatives of the same function on an interval can differ only by a constant, so answers that look unrelated may still both be right.
Each line below contains a substitution error. Find it and give the correct result:
(a)
(b) : "let , then ."
(c)
Answer
(a) is not a constant and cannot be moved outside the integral. There is no elementary substitution here; the integrand must be expanded.
(b) The factor from was dropped. Correct: .
(c) The factor from was dropped. Correct: .
Solution
Every one of these is caught by the same test: differentiate the proposed answer and see whether the integrand returns.
(a) The substitution requires , but the integrand contains no factor of . Writing outside treats a function of as a constant, which the Quotient Rule immediately exposes: differentiating the proposed answer gives
not . Substitution simply does not apply here. Compare this with the first worked example of the section, , where the extra factor is exactly what makes the method work.
(b) From we get , so , not . Carrying the factor properly, \begin{aligned} \int x\sin\left(x^{2}\right)dx &= \frac{1}{2}\int\sin u\,du \\ &= -\frac{1}{2}\cos u+C \\ &= -\frac{1}{2}\cos\left(x^{2}\right)+C. \end{aligned}
(c) From we get , so . Then \begin{aligned} \int(2x+1)^{5}dx &= \frac{1}{2}\cdot\frac{u^{6}}{6}+C \\ &= \frac{(2x+1)^{6}}{12}+C. \end{aligned}
Differentiating the student's answer gives , which is twice the integrand. This is the single most common substitution slip.
For each integral, state whether the suggested substitution works, and say why:
(a) with
(b) with
(c) with
(d) with
Answer
(a) Works. Result: .
(b) Fails. There is no factor of to absorb into .
(c) Useless. It changes nothing. The right choice is , giving .
(d) Works. Result: .
Solution
Step 3 of the algorithm is the test: after substituting, no may remain. If one does, the choice of was wrong.
(a) With we get , and the integrand supplies exactly the factor :
(b) With we would need , leaving
which is no simpler. In fact cannot be expressed in terms of elementary functions at all, a reminder from Section 5.2 that integration does not always succeed.
(c) Setting gives and reproduces the original integral unchanged. A substitution is only useful when it simplifies the integrand. The productive choice is , since :
(d) With we get , and the factor is present. This is the second worked example of the section, with answer .
A classical trick. Multiply the integrand by and use a substitution to show that
Then find by the analogous device.
Answer
and .
Solution
The secant. Multiplying by a well-chosen form of ,
\begin{aligned} \int\sec x\,dx &= \int\frac{\sec x\left(\sec x+\tan x\right)}{\sec x+\tan x}\,dx \\ &= \int\frac{\sec^{2}x+\sec x\tan x}{\sec x+\tan x}\,dx. \end{aligned}Now let . Then
which is exactly the numerator. Hence
\begin{aligned} \int\sec x\,dx &= \int\frac{du}{u} \\ &= \ln|u|+C \\ &= \ln|\sec x+\tan x|+C. \end{aligned}The trick works because the derivative of happens to be times itself.
The cosecant. Multiply instead by and let , so that
\begin{aligned} du &= \left(-\csc x\cot x-\csc^{2}x\right)dx \\ &= -\csc x\left(\cot x+\csc x\right)dx. \end{aligned}Therefore
\begin{aligned} \int\csc x\,dx &= \int\frac{\csc x\left(\csc x+\cot x\right)}{\csc x+\cot x}\,dx \\ &= -\int\frac{du}{u} \\ &= -\ln|\csc x+\cot x|+C. \end{aligned}
In each integral the substitution is an inverse function. Evaluate:
(a)
(b)
(c)
Answer
(a)
(b)
(c)
Solution
The pattern in all three is that the derivative of the inverse function is the other factor in the integrand.
(a) Let , so :
(b) Let , so :
(c) With the same ,
Compare part (b) with the last worked example of the section, where required the Chain Rule to produce .
Prove the Linear Substitution Rule in the special case with : show directly that
and explain what goes wrong when .
Answer
Substituting reduces the integral to . When the power rule fails and the answer becomes instead.
Solution
Let . Then , so , and
\begin{aligned} \int(ax+b)^{n}dx &= \frac{1}{a}\int u^{n}\,du \\ &= \frac{1}{a}\cdot\frac{u^{n+1}}{n+1}+C \\ &= \frac{(ax+b)^{n+1}}{a(n+1)}+C, \end{aligned}valid whenever .
The case . The step divides by , which is zero when . This is the same exception met in the power rule for integration. Using the logarithmic form instead,
\begin{aligned} \int\frac{dx}{ax+b} &= \frac{1}{a}\int\frac{du}{u} \\ &= \frac{1}{a}\ln|u|+C \\ &= \frac{1}{a}\ln|ax+b|+C. \end{aligned}Check. Differentiating, , as required.