Navigation

Integration

1.13 More Integration Examples

40 problems · hints, answers and solutions shown beside each one

Recall that we are using logx\log x to denote the logarithm of xx with base ee. In other courses it is often denoted lnx\ln x.

1Stage 1Conceptual

Do you understand the idea? Usually little or no calculation.

Q1Stage 1

Match the integration method to a common kind of integrand it's used to antidifferentiate.

(A) u=f(x)u=f(x) substitution(I)a function multiplied by its derivative
(B) trigonometric substitution(II)a polynomial function times an exponential function
(C) integration by parts(III)a rational function
(D) partial fractions(IV)the square root of a quadratic function
Hint

Each option in each column should be used exactly once.

Answer

(A)–(I), (B)–(IV), (C)–(II), (D)–(III)

Full solution

(A) Note f(x)f(x) dx=u du\int f'(x)f(x)\ \dee{x} = \int u\ \dee{u} if we substitute u=f(x)u=f(x). This is the kind of integrand described in (I). It's quite possible that a u=f(x)u=f(x) substitution would work on the others, as well, but (I) is the most reliable kind of integrand for a u=f(x)u=f(x) substitution.
(B) A trigonometric substitution usually allows us to cancel out a square root containing a quadratic function, as in (IV).
(C) We can often antidifferentiate the product of a polynomial with an exponential function using integration by parts: see Examples 1.7.1, 1.7.6 in the CLP-2 text. If we let uu be the polynomial function and dv\dee{v} be the exponential, as long as we can antidifferentiate dv\dee{v}, we can repeatedly apply integration by parts until the polynomial function goes away. So, we go with (II)
(D) We apply partial fractions to rational functions, (III).

Note: without knowing more about the functions, there's no guarantee that the methods we chose will be the best methods, or even that they will work (with the exception of (I)). With practice, you gain intuition about likely methods for different integrals. Luckily for you, there's lots of practice below.

2Stage 2Procedural

Practising the skill itself, until applying it is automatic.

Q2Stage 2

Evaluate 0π/2sin4xcos5x dx\displaystyle\int_0^{{\pi}/{2}} \sin^4 x \cos^5 x~ \dee{x}.

Hint

The integrand is the product of sines and cosines. See how this was handled with a substitution in Section 1.8.1 of the CLP-2 text.

After your substitution, you should have a polynomial expression in uu–but it might take some simplification to get it into a form you can easily integrate.

Answer

1527+19=8315\dfrac{1}{5}-\dfrac{2}{7}+\dfrac{1}{9} =\dfrac{8}{315}

Full solution

The integrand is a product of powers of sine and cosine. Since cosine has an odd power, we want to substitute u=sinxu=\sin x, du=cosxdx\dee{u}=\cos x \dee{x}. Therefore, we should:

  • reserve one cosine for the derivative of sine in our substitution, and

  • change the rest of the cosines to sines using the identity sin2x+cos2x=1\sin^2x+\cos^2x=1.

0π/2sin4xcos5xdx=0π/2sin4x(cos2x)2cosxdx=0π/2sin4x(1sin2x)2cosxdxdu=sin(0)sin(π/2)u4(1u2)2du=01u4(12u2+u4)du=01(u42u6+u8)du=[15u527u7+19u9]u=0u=1=(1527+19)0=8315\begin{align*} \int_0^{\pi/2}\sin^4x\cos^5x\dee{x}&= \int_{0}^{\pi/2}\sin^4x(\cos^2x)^2\cos x\dee{x}\\ &=\int_{0}^{\pi/2}\sin^4x(1-\sin^2x)^2\underbrace{\cos x\dee{x}}_{\dee{u}}\\ &= \int_{\sin(0)}^{\sin(\pi/2)}u^4(1-u^2)^2\dee{u}\\ &= \int_{0}^{1}u^4(1-2u^2+u^4)\dee{u}\\ &= \int_{0}^{1}(u^4-2u^6+u^8)\dee{u}\\ &=\left[ \frac{1}{5}u^5-\frac{2}{7}u^7+\frac{1}{9}u^9 \right]_{u=0}^{u=1}\\ &= \left(\frac{1}{5}-\frac{2}{7}+\frac{1}{9}\right) - 0\\ &=\dfrac{8}{315} \end{align*}
Q3Stage 2

Evaluate 35x2 dx\displaystyle\int \sqrt{3-5x^2}~\dee{x}.

Hint

We notice that the integrand has a quadratic polynomial under the square root. If that polynomial were a perfect square, we could get rid of the square root: try a trig substitution, as in Section 1.9 of the CLP-2 text.

The identity sin(2θ)=2sinθcosθ\sin(2\theta)=2\sin\theta\cos\theta might come in handy.

Answer

325arcsin(x53)+x235x2+C\dfrac{3}{2\sqrt{5}} \arcsin\left(x\sqrt{\dfrac{5}{3}}\right) + \dfrac{x}{2}\sqrt{3-5x^2} +C

Full solution

We notice that there is a quadratic equation under the square root. If that equation were a perfect square, we could get rid of the square root: so we'll mould it into a perfect square using a trig substitution.

Our candidates will use one of the following identities:

1sin2θ=cos2θtan2θ+1=sec2θsec2θ1=tan2θ1-\sin^2\theta=\cos^2\theta \hspace{1cm} \tan^2\theta+1=\sec^2\theta \hspace{1cm} \sec^2\theta-1=\tan^2\theta

We'll be substituting x=x=(something), so we notice that 35x23-5x^2 has the general form of (constant)-(function), as does 1sin2θ1-\sin^2\theta. In order to get the constant right, we multiply through by three:

33sin2θ=3cos2θ3-3\sin^2\theta = 3\cos^2\theta

Our goal is to get 35x2=33sin2θ3-5x^2=3-3\sin^2\theta; so we solve this equation for xx and decide on the substitution

x=35sinθ,dx=35cosθdθx=\sqrt{\frac{3}{5}}\sin\theta,\hspace{1cm} \dee{x}=\sqrt{\frac{3}{5}}\cos\theta \dee{\theta}

Now we evaluate our integral.

35x2dx=35(35sinθ)235cosθdθ=33sin2θ3/5cosθdθ=3cos2θ3/5cosθdθ=3cosθ3/5cosθdθ=35cos2θdθ=351+cos2θ2dθ=325(1+cos2θ)dθ=325[θ+12sin(2θ)]+C=325[θ+sinθcosθ]+C\begin{align*} \int\sqrt{3-5x^2}\dee{x}&=\int\sqrt{3-5\left( \sqrt{\frac{3}{5}}\sin\theta\right)^2}\sqrt{\frac{3}{5}}\cos\theta d \theta\\ &=\int \sqrt{3-3\sin^2\theta}\sqrt{3/5}\cos\theta \dee{\theta}\\ &=\int \sqrt{3\cos^2\theta}\sqrt{3/5}\cos\theta \dee{\theta}\\ &=\int \sqrt{3}\cos\theta\sqrt{3/5}\cos\theta \dee{\theta}\\ &=\frac{3}{\sqrt{5}}\int \cos^2\theta \dee{\theta}\\ &=\frac{3}{\sqrt{5}}\int \frac{1+\cos 2\theta}{2} \dee{\theta}\\ &=\frac{3}{2\sqrt{5}}\int (1+\cos2\theta) \dee{\theta}\\ &= \frac{3}{2\sqrt{5}}\left[ \theta+\frac{1}{2}\sin(2\theta) \right]+C\\ &=\frac{3}{2\sqrt{5}}\left[ \theta + \sin\theta\cos\theta \right]+C \end{align*}

From our substitution x=3/5sinθx=\sqrt{3/5}\sin\theta, we glean sinθ=x5/3\sin\theta = x\sqrt{5/3}, and θ=arcsin(x5/3)\theta = \arcsin \left(x\sqrt{5/3} \right). To figure out cosθ\cos\theta, we draw a right triangle. Let θ\theta be one angle, and since sinθ=x53\sin\theta = \dfrac{x\sqrt{5}}{\sqrt{3}}, we let the hypotenuse be 3\sqrt{3} and the side opposite θ\theta be x5x\sqrt{5}. By Pythagoras, the missing side (adjacent to θ\theta) has length 35x2\sqrt{3-5x^2}.

Figure from prob_s1.13, line 115

Figure from prob_s1.13, line 115

Therefore, cosθ=adjhyp=35x23\cos\theta = \frac{\text{adj}}{\text{hyp}} = \dfrac{\sqrt{3-5x^2}}{\sqrt{3}}. So our integral evaluates to:

325[θ+sinθcosθ]+C=325[arcsin(x5/3)+x5/335x23]+C=325arcsin(x5/3)+x235x2+C\begin{align*} \frac{3}{2\sqrt{5}}\left[ \theta + \sin\theta\cos\theta \right]+C&= \frac{3}{2\sqrt{5}}\left[ \arcsin(x\sqrt{5/3}) + x\sqrt{5/3}\cdot \frac{\sqrt{3-5x^2}}{\sqrt{3}} \right]+C\\ &= \frac{3}{2\sqrt{5}} \arcsin(x\sqrt{5/3}) + \frac{x}{2}\cdot {\sqrt{3-5x^2}} +C \end{align*}
Q4Stage 2

Evaluate 0x1ex dx\displaystyle\int_0^\infty \dfrac{x-1}{e^x}~\dee{x}.

Hint

Notice the integral is improper. When you compute the limit, l'H^opital's rule might help.

If you're struggling to think of how to antidifferentiate, try writing x1ex=(x1)ex\dfrac{x-1}{e^x} = (x-1)e^{-x}.

Answer

0

Full solution

First, we note the integral is improper. So, we'll need to replace the top bound with a variable, and take a limit. Second, we're going to have to antidifferentiate. The integrand is the product of an exponential function, exe^{-x}, with a polynomial function, x1x-1, so we use integration by parts with u=x1u=x-1, dv=exdu\dee{v}=e^{-x}\dee{u}, du=dx\dee{u}=\dee{x}, and v=exv = -e^{-x}.

x1ex dx=(x1)ex+ex dx=(x1)exex+C=xex+CSo,0x1ex dx=limb0bx1ex dx=limb[xex]0b=limb[bebnumden]=()limb1eb=0\begin{align*} \int \dfrac{x-1}{e^x}~\dee{x}&=-(x-1)e^{-x} + \int e^{-x}~\dee{x} \\&=-(x-1)e^{-x} -e^{-x}+C =-xe^{-x}+C\\ \text{So,}\qquad\int_0^\infty \dfrac{x-1}{e^x}~\dee{x} & = \lim_{b \to \infty}\int_0^b \dfrac{x-1}{e^x}~\dee{x}\\ & = \lim_{b \to \infty}\left[-\frac{x}{e^x}\right]_0^b = \lim_{b \to \infty}\bigg[-\underbrace{\frac{b}{e^b}}_{\atp{\mathrm{num}\to\infty}{\mathrm{den}\to\infty}}\bigg]\\ & \stackrel{(*)}{=} \lim_{b \to \infty}-\frac{1}{e^b}=0 \end{align*}

(In the equality marked (*), we used l'H^opital's rule.)

So, 0x1ex dx=0\displaystyle\int_0^\infty \dfrac{x-1}{e^x}~\dee{x}=0.

Remark: this shows that, interestingly, 0xex dx=01ex dx\displaystyle\int_0^\infty \dfrac{x}{e^x}~\dee{x}=\displaystyle\int_0^\infty \dfrac{1}{e^x}~\dee{x}.

Q5Stage 2

Evaluate 23x2+4x+1dx\displaystyle\int \frac{-2}{3x^2+4x+1}\dee{x}.

Hint

Which method usually works for rational functions (the quotient of two polynomials)?

Answer

logx+13x+1+C\log\left|\dfrac{x+1}{3x+1}\right|+C

Full solution
  • Notice the denominator factors as (x+1)(3x+1)(x+1)(3x+1). Since the integrand is a rational function (the quotient of two polynomials), we can use partial fraction decomposition.

    23x2+4x+1=2(x+1)(3x+1)=Ax+1+B3x+1=A(3x+1)+B(x+1)(x+1)(3x+1)=(3A+B)x+(A+B)(x+1)(3x+1)\begin{align*}\frac{-2}{3x^2+4x+1}&=\frac{-2}{(x+1)(3x+1)}\\ &=\frac{A}{x+1}+\frac{B}{3x+1}\\ &=\frac{A(3x+1)+B(x+1)}{(x+1)(3x+1)}\\ &=\frac{(3A+B)x+(A+B)}{(x+1)(3x+1)}\end{align*}

    So:

    2=(3A+B)x+(A+B)0=3A+B and 2=A+BB=3A and hence 2=A+(3A)A=1 so then B=3\begin{align*}-2&=(3A+B)x+(A+B)\\ 0&=3A+B \text{ and }-2=A+B\\ B&=-3A \text{ and hence } -2=A+(-3A)\\ \color{red}A&\textcolor{red}{=1} \text{ so then } \color{red}B=-3\end{align*}

    So now:

    23x2+4x+1=1x+133x+123x2+4x+1dx=(1x+133x+1)dx=logx+1log3x+1+C=logx+13x+1+C\begin{align*}\frac{-2}{3x^2+4x+1}&=\frac{1}{x+1}-\frac{3}{3x+1}\\ \int \frac{-2}{3x^2+4x+1}\dee{x}&=\int\left(\frac{1}{x+1}-\frac{3}{3x+1}\right)\dee{x}\\ &=\log|x+1|-\log|3x+1|+C\\ &=\log\left|\dfrac{x+1}{3x+1}\right|+C\end{align*}
  • The previous solution is probably the nicest. However, for the foolhardy or the brave, this integral can also be evaluated using trigonometric substitution.

    We start by completing the square on the denominator.

    3x2+4x+1=3(x2+43x+13)=3(x2+223x+4949+13)=3((x+23)249+39)=3((x+23)219)=3(x+23)213\begin{align*}3x^2+4x+1 &= 3\left(x^2+\frac{4}{3}x+\frac{1}{3}\right)\\ &=3\left(x^2+2\cdot\frac{2}{3}x+\frac{4}{9}-\frac{4}{9}+\frac{1}{3}\right)\\ &=3\left(\left(x+\frac{2}{3}\right)^2-\frac{4}{9}+\frac{3}{9}\right)\\ &=3\left(\left(x+\frac{2}{3}\right)^2-\frac{1}{9}\right)\\ &=3\left(x+\frac{2}{3}\right)^2-\frac{1}{3}\end{align*}

    This has the form of a function minus a constant, which matches the trigonometric identity sec2θ1=tan2θ\sec^2\theta - 1 = \tan^2\theta. Multiplying through by 13\frac{1}{3}, we see we can use the identity 13sec2θ13=13tan2θ\frac{1}{3}\sec^2\theta - \frac{1}{3} = \frac{1}{3}\tan^2\theta. So, to get the substitution right, we want to choose a substitution that makes the following true:

    3(x+23)213=13sec2θ133(x+23)2=13sec2θ9(x+23)2=sec2θ3x+2=secθ\begin{align*}3\left(x+\frac{2}{3}\right)^2-\frac{1}{3}&=\frac{1}{3}\sec^2\theta-\frac{1}{3}\\ 3\left(x+\frac{2}{3}\right)^2&=\frac{1}{3}\sec^2\theta\\ 9\left(x+\frac{2}{3}\right)^2&=\sec^2\theta\\ \color{red}3x+2&=\color{blue}\sec\theta\end{align*}

    And, accordingly:

    3dx=secθtanθdθ\begin{align*}\color{red}3\dee{x}&=\color{blue}\sec\theta\tan\theta \dee{\theta}\end{align*}

    Now, let's simplify a little and use this substitution on our integral:

    23x2+4x+1dx=23(x+23)213dx=29(x+23)213dx=2(3x+2)213dx=2(secθ)21secθtanθdθ=2tan2θsecθtanθdθ=2secθtanθdθ=21cosθcosθsinθdθ=21sinθdθ=2cscθdθ\begin{align*}\int\dfrac{-2}{3x^2+4x+1}\dee{x}&=\int\dfrac{-2}{3\left(x+\frac{2}{3}\right)^2-\frac{1}{3}}\dee{x}\\ &=\int\dfrac{-2}{9\left(x+\frac{2}{3}\right)^2-1}3\dee{x}\\ &=\int\dfrac{-2}{\left(\color{red}{3x+2}\right)^2-1}\textcolor{red}{3\dee{x}}\\ &=\int\dfrac{-2}{\left(\color{blue}{\sec\theta}\right)^2-1}\color{blue}{\sec\theta\tan\theta \dee{\theta}}\\ &=\int\dfrac{-2}{\tan^2\theta}\sec\theta\tan\theta \dee{\theta}\\ &=\int -2\dfrac{\sec\theta}{\tan\theta}\dee{\theta}\\ &=\int -2\dfrac{1}{\cos\theta}\cdot\dfrac{\cos\theta}{\sin\theta} \dee{\theta}\\ &=\int -2\dfrac{1}{\sin\theta} \dee{\theta}\\ &=\int -2\csc\theta \dee{\theta}\end{align*}

    Using the result of Example 1.8.21 in the CLP-2 text, or a table of integrals:

    =2logcscθ+cotθ+C\begin{align*}&=2\log\left|\csc\theta+\cot\theta \right|+C\end{align*}

    Our final task is to translate this back from θ\theta to xx. Recall we used the substitution 3x+2=secθ3x+2=\sec\theta. Using this information, and secθ=hypotenuseadjacent\sec\theta = \dfrac{\mathrm{hypotenuse}}{\mathrm{adjacent}}, we can fill in two sides of a right triangle with angle θ\theta. The Pythagorean theorem tells us the third side (opposite to θ\theta) has measure (3x+2)21=9x212x+3\sqrt{(3x+2)^2-1}=\sqrt{9x^2-12x+3}.

    Figure from prob_s1.13, line 223

    Figure from prob_s1.13, line 223

    2logcscθ+cotθ+C=2log3x+29x2+12x+3+19x2+12x+3+C=2log3x+39x2+12x+3+C=log(3x+3)29x2+12x+32+C=log(3x+3)29x2+12x+3+C=log9(x+1)23(3x+1)(x+1)+C=log3(x+1)2(3x+1)(x+1)+C=log3(x+1)3x+1+C=logx+13x+1+log3+C\begin{align*}2\log\left|\csc\theta+\cot\theta \right|+C&= 2\log\left|\dfrac{3x+2}{\sqrt{9x^2+12x+3}}+\dfrac{1}{\sqrt{9x^2+12x+3}} \right|+C\\ &= 2\log\left|\dfrac{3x+3}{\sqrt{9x^2+12x+3}}\right|+C \\ &= \log\left|\dfrac{(3x+3)^2}{\sqrt{9x^2+12x+3}^2}\right|+C \\ &= \log\left|\dfrac{(3x+3)^2}{9x^2+12x+3}\right|+C\\ &= \log\left|\dfrac{9(x+1)^2}{3(3x+1)(x+1)}\right|+C\\ &= \log\left|\dfrac{3(x+1)^2}{(3x+1)(x+1)}\right|+C \\&= \log\left|\dfrac{3(x+1)}{3x+1}\right|+C \\&= \log\left|\dfrac{x+1}{3x+1}\right|+\log3+C\end{align*}

    Since CC is an arbitrary constant, we can write our final answer as

     logx+13x+1+C\begin{align*}&~\log\left|\dfrac{x+1}{3x+1}\right|+C\end{align*}
Q6Stage 2

Evaluate 12x2logx dx\displaystyle\int_1^2 x^2\log x ~\dee{x}.

Hint

It would be nice to replace logarithm with its derivative, 1x\dfrac{1}{x}.

Answer

83log279\dfrac{8}{3}\log2-\dfrac{7}{9}

Full solution

We see that we have two functions multiplied, but they don't simplify nicely with each other. However, if we differentiate logarithm, and integrate x2x^2, we'll get a polynomial. So, let's use integration by parts.

u=logxdv=x2dxu=\log x \hspace{1cm} \dee{v}=x^2\dee{x}
du=(1/x)dxv=x3/3\dee{u}=(1/x)\dee{x} \hspace{1cm} v=x^3/3

First, let's antidifferentiate. We'll deal with the limits of integration later.

x2logxdx=(logx)u(x3/3)v)(x3/3)v(1/x)dxdu=13x3logx13x2dx=13x3logx1313x3+C=13x3logx19x3+C\begin{align*}\int x^2\log x \dee{x} &=\underbrace{(\log x)}_{u}\underbrace{(x^3/3)}_{v})-\int\underbrace{(x^3/3)}_{v}\underbrace{(1/x)\dee{x}}_{\dee{u}}\\ &=\frac{1}{3}x^3\log x - \frac{1}{3}\int x^2\dee{x}\\ &=\frac{1}{3}x^3\log x -\frac{1}{3}\cdot\frac{1}{3}x^3+C \\ &=\frac{1}{3}x^3\log x - \frac{1}{9}x^3+C\end{align*}

We use the Fundamental Theorem of Calculus Part 2 to evaluate the definite integral.

12x3logxdx=[13x3logx19x3]12=[1323log21923][1313log11913]=8log23890+19=83log279\begin{align*}\int_1^2 x^3\log x \dee{x}&= \left[\frac{1}{3}x^3\log x - \frac{1}{9}x^3\right]_1^2\\ &=\left[\frac{1}{3}2^3\log 2 - \frac{1}{9}2^3 \right] - \left[\frac{1}{3}1^3\log 1 - \frac{1}{9}1^3 \right]\\ &=\frac{8\log 2}{3}-\frac{8}{9}-0+\frac{1}{9}\\ &=\frac{8}{3}\log2-\frac{7}{9}\end{align*}
Q7Stage 2Past exam · 2014D

Evaluate xx23dx\displaystyle\int\frac{x}{x^2-3}\,\dee{x}.

Hint

The integrand is a rational function, so it is possible to use partial fractions. But there is a much easier way!

Answer

12logx23+C\dfrac{1}{2}\log\big|x^2-3\big| + C

Full solution

The derivative of the denominator shows up in the numerator, only differing by a constant, so we perform a substitution. Specifically, substitute u=x23u=x^2-3, du=2xdx\dee{u}=2x\,\dee{x}. This gives

xx23dx=du/2u=12logu+C=12logx23+C\begin{align*} \int\frac{x}{x^2-3}\dee{x} =\int\frac{\dee{u}/2}{u} =\frac{1}{2}\log|u| + C =\frac{1}{2}\log\big|x^2-3\big| + C \end{align*}
Q8Stage 2Past exam · 1997A

Evaluate the following integrals.

  1. 04x9+x2dx\displaystyle\int_0^4\frac{x}{\sqrt{9+x^2}}\,\dee{x}

  2. 0π/2cos3x sin2xdx\displaystyle\int_0^{\pi/2}\cos^3x\ \sin^2x\,\dee{x}

  3. 1ex3logxdx\displaystyle\int_1^{e}x^3\log x\,\dee{x}

Hint

You should prepare your own personal internal list of integration techniques ordered from easiest to hardest. You should have associated to each technique your own personal list of signals that you use to decide when the technique is likely to be useful.

Answer

(a) 22 (b) 215\dfrac{2}{15} (c) 3e416+116\dfrac{3e^4}{16}+\dfrac{1}{16}

Full solution

(a) Although a quadratic under a square root often suggests trigonometric substitution, in this case we have an easier substitution. Specifically, let y=9+x2y=9+x^2. Then dy=2xdx, xdx=dy2, y(0)=9,\dee{y}=2x\dee{x},\ x\dee{x}=\frac{\dee{y}}{2},\ y(0)=9, and y(4)=25y(4)=25.

04x9+x2dx=9251ydy2=12y1/2925=53=2\begin{align*} \int_0^4\frac{x}{\sqrt{9+x^2}}\,\dee{x} &=\int_9^{25}\frac{1}{\sqrt{y}}\,\frac{\dee{y}}{2} =\frac{1}{2}\cdot\frac{\sqrt{y}}{1/2}\Big|_9^{25} =5-3= 2 \end{align*}

(b) The power of cosine is odd, so we can reserve one cosine for the differential and change the rest to sines. Substituting y=sinx,y=\sin x, dy=cosx\dee{y}=\cos x, dx,\dee{x}, y(0)=0,y(0)=0, y(π/2)=1,y(\pi/2)=1, cos2x=1y2\cos^2x=1-y^2:

0π/2cos3x sin2xdx=0π/2cos2x sin2x cosxdx=01 ⁣(1y2)y2dy=01(y2y4)dy=[y33y55]01=1315=215\begin{align*} \int_0^{\pi/2}\hskip-.2in\cos^3x\ \sin^2x\,\dee{x} &=\int_0^{\pi/2}\hskip-.2in\cos^2x\ \sin^2x\ \cos x\,\dee{x} =\int_0^1\!(1-y^2)y^2\,\dee{y} =\int_0^1(y^2-y^4)\,\dee{y} \\ &=\bigg[\frac{y^3}{3}-\frac{y^5}{5}\bigg]_0^1 =\frac{1}{3}-\frac{1}{5} \\ &= \frac{2}{15} \end{align*}

(c) The integrand is the product of two different kinds of functions, with no obvious substitution or simplification. If we differentiate logx\log x, it will match better with the polynomial nature of the rest of the integrand. So, integrate by parts with u(x)=logxu(x)=\log x and dv=x3dx\dee{v}=x^3\,\dee{x}, then du=1xdx\dee{u}=\frac{1}{x}\,\dee{x} and v=x4/4v=x^4/4.

1ex3logxdx=x44logx1e1ex441xdx=e441ex34dx=e44x4161e=3e416+116\begin{align*} \int_1^{e}x^3\log x\,\dee{x} &=\frac{x^4}{4}\log x\bigg|_1^e -\int_1^{e}\frac{x^4}{4}\cdot\frac{1}{x}\,\dee{x} =\frac{e^4}{4}-\int_1^{e}\frac{x^3}{4}\,\dee{x} =\frac{e^4}{4}-\frac{x^4}{16}\bigg|_1^e \\ &=\frac{3e^4}{16}+\frac{1}{16} \end{align*}
Q9Stage 2Past exam · 1997D

Evaluate the following integrals.

  1. 0π/2xsinxdx\displaystyle\int_0^{\pi/2} x\sin x\,\dee{x}

  2. 0π/2cos5xdx\displaystyle\int_0^{\pi/2} \cos^5 x\,\dee{x}

Hint

Despite both containing a trig function, the two integrals are easiest to evaluate using different methods.

Answer

(a) 11 (b) 815\dfrac{8}{15}

Full solution

(a) Integrate by parts with u=xu=x and dv=sinxdx\dee{v}=\sin x\,\dee{x} so that du=dx\dee{u}=\dee{x} and v=cosxv=-\cos x.

xsinxdx=xcosx(cosx)dx=xcosx+sinx+CSo, 0π/2xsinxdx=[xcosx+sinx]0π/2=1\begin{align*} \int x\sin x\,\dee{x}&= -x\cos x-\int (-\cos x)\,\dee{x} =-x\cos x+\sin x+C\\ \text{So, }\quad\int_0^{\pi/2} x\sin x\,\dee{x}&=\Big[-x\cos x+\sin x\Big]_0^{\pi/2} =1 \end{align*}

(b) The power of cosine is odd, so we can reserve one cosine for du\dee{u} and change the rest into sines. Make the substitution u=sinxu=\sin x, du=cosxdx\dee{u}=\cos x\,\dee{x}.

0π/2cos5xdx=0π/2(1sin2x)2cosxdx=01(1u2)2du=01(12u2+u4)du=[u23u3+15u5]01=123+15=815\begin{align*} \int_0^{\pi/2} \cos^5 x\,\dee{x} &=\int_0^{\pi/2} \big(1-\sin^2x\big)^2\cos x\,\dee{x} =\int_0^1\big(1-u^2\big)^2\,\dee{u} =\int_0^1\big(1-2u^2+u^4\big)\,\dee{u}\cr &=\left[u-\frac{2}{3}u^3+\frac{1}{5}u^5\right]_0^1 =1-\frac{2}{3}+\frac{1}{5} =\frac{8}{15} \end{align*}
Q10Stage 2Past exam · 1998A

Evaluate the following integrals.

  1. 02xexdx\displaystyle\int_0^2 xe^x\,\dee{x}

  2. 0111+x2dx\displaystyle\int_0^1\frac{1}{\sqrt{1+x^2}}\,\dee{x}

  3. 354x(x21)(x2+1)dx\displaystyle\int_3^5\frac{4x}{(x^2-1)(x^2+1)}\,\dee{x}

Hint

For the integral of secant, see See Section 1.8.3 or Example 1.10.5 in the

CLP-2 text.

In (c), notice the denominator is not yet entirely factored.

Answer

(a) e2+1e^2+1 (b) log(2+1)\log(\sqrt{2}+1) (c) log15130.1431\log\frac{15}{13}\approx 0.1431

Full solution

(a) This is a classic integration-by-parts example. If we integrate exe^x, it doesn't change, and if we differentiate xx it becomes a constant. So, let u=xu=x and dv=exdx\dee{v}=e^x\,\dee{x}, so that du=dx\dee{u}=\dee{x} and v=exv=e^x.

02xexdx=[xex]0202exdx=2e2[ex]02=e2+1\begin{align*} \int_0^2 xe^x\,\dee{x}=\Big[xe^x\Big]_0^2-\int_0^2 e^x\,\dee{x} =2e^2-\Big[e^x\Big]_0^2 =e^2+1 \end{align*}

(b) We have a quadratic function underneath a square root. In the absence of an easier substitution, we can get rid of the square root with a trigonometric substitution. Substitute x=tanyx=\tan y, dx=sec2ydy\dee{x}=\sec^2 y\,\dee{y}. When x=0x=0, tany=0\tan y=0 so y=0y=0. When x=1x=1, tany=1\tan y=1 so y=π4y=\frac{\pi}{4}. Also 1+x2=1+tan2y=sec2y=secy\sqrt{1+x^2} =\sqrt{1+\tan^2y}=\sqrt{\sec^2 y}=\sec y, since secy0\sec y\ge 0 for all 0yπ40\le y\le\frac{\pi}{4}.

0111+x2dx=0π/4sec2ydysecy=0π/4secydy=[logsecy+tany]0π/4=logsecπ4+tanπ4logsec0+tan0=log2+1log1+0=log(2+1)So,0111+x2dx=log(2+1)\begin{align*} \int_0^1\frac{1}{\sqrt{1+x^2}}\,\dee{x} &=\int_0^{\pi/4} \frac{\sec^2y\,\dee{y}}{\sec y} =\int_0^{\pi/4} \sec y\,\dee{y} =\Big[\log|\sec y+\tan y|\Big]_0^{\pi/4}\\ &=\log\left| \sec \frac{\pi}{4} + \tan\frac{\pi}{4}\right|-\log\left| \sec 0 + \tan 0\right|\\ &=\log\left| \sqrt{2} + 1\right|-\log\left| 1+ 0\right|=\log(\sqrt{2}+1)\\ \text{So,}\qquad\int_0^1\frac{1}{\sqrt{1+x^2}}\,\dee{x}&=\log(\sqrt{2}+1) \end{align*}

(c) The integral is a rational function. In the absence of an obvious substitution, we use partial fractions.

4x(x21)(x2+1)=4x(x1)(x+1)(x2+1)=ax1+bx+1+cx+dx2+1\begin{align*}\frac{4x}{(x^2-1)(x^2+1)} &=\frac{4x}{(x-1)(x+1)(x^2+1)} =\frac{a}{x-1}+\frac{b}{x+1}+\frac{cx+d}{x^2+1}\end{align*}

Multiplying by the denominator,

4x=a(x+1)(x2+1)+b(x1)(x2+1)+(cx+d)(x1)(x+1)\begin{align*}4x&=a(x+1)(x^2+1)+b(x-1)(x^2+1)+(cx+d)(x-1)(x+1)\tag{$*$}\end{align*}

Setting x=1x=1 gives 4a=44a=4, so a=1a=1. Setting x=1x=-1 gives 4b=4-4b=-4, so b=1b=1. Substituting in a=b=1a=b=1 in (*) gives:

4x=(x+1)(x2+1)+(x1)(x2+1)+(cx+d)(x1)(x+1)4x=2x(x2+1)+(cx+d)(x1)(x+1)4x2x(x2+1)=(cx+d)(x1)(x+1)2x(x21)=(cx+d)(x21)2x=cx+dc=2, d=0\begin{align*} 4x&=(x+1)(x^2+1)+(x-1)(x^2+1)+(cx+d)(x-1)(x+1)\cr 4x&= 2x(x^2+1)+(cx+d)(x-1)(x+1)\cr 4x-2x(x^2+1)&=(cx+d)(x-1)(x+1)\cr -2x(x^2-1)&=(cx+d)(x^2-1)\cr -2x&=cx+d\cr \color{red} c&\color{red}=-2,\ d=0\cr \end{align*}

So,

354x(x21)(x2+1)dx=35(1x1+1x+12xx2+1)dx=[logx1+logx+1log(x2+1)]35=log4+log6log26log2log4+log10=log6×1026×2=log15130.1431\begin{align*} \int_3^5\frac{4x}{(x^2-1)(x^2+1)}\,\dee{x} &=\int_3^5\Big(\frac{1}{x-1}+\frac{1}{x+1}-\frac{2x}{x^2+1}\Big)\,\dee{x} \\ &=\Big[\log|x-1|+\log|x+1|-\log(x^2+1)\Big]_3^5\\ &=\log 4+\log 6-\log 26-\log 2-\log 4+\log 10 \\ &=\log\frac{6\times 10}{26\times 2} =\log\frac{15}{13}\approx 0.1431 \end{align*}
Q11Stage 2Past exam · 2000D

Calculate the following integrals.

  1. 039x2dx\displaystyle\int_0^3\sqrt{9-x^2}\,\dee{x}

  2. 01log(1+x2)dx\displaystyle\int_0^1\log(1+x^2)\,\dee{x}

  3. 3x(x1)2(x2)dx\displaystyle\int_3^\infty\frac{x}{(x-1)^2(x-2)}\,\dee{x}

Hint

Part (a) can be done by inspection – use a little highschool geometry! Part (b) is reminiscent of the antiderivative of logarithm–how did we find that one out? Part (c) is an improper integral.

Answer

(a) 94π\dfrac{9}{4}\pi (b) log22+π20.264\log 2-2+\dfrac{\pi}{2}\approx 0.264 (b) 2log2120.8862\log 2-\half\approx0.886

Full solution

(a) 039x2dx\int_0^3\sqrt{9-x^2}\,\dee{x} is the area of the portion of the disk x2+y29x^2+y^2\le 9 that lies in the first quadrant. It is 14π33=94π\frac{1}{4}\pi 3^3={\frac{9}{4}\pi}. Alternatively, you could also evaluate this integral using the substitution x=3sinyx=3\sin y, dx=3cosydy\dee{x}=3\cos y\,\dee{y}.

039x2dx=0π/299sin2y (3cosy)dy=90π/2cos2ydy=920π/2[1+cos(2y)]dy=92[y+sin(2y)2]0π/2=94π\begin{align*} \int_0^3\sqrt{9-x^2}\,\dee{x} &=\int_0^{\pi/2}\sqrt{9-9\sin^2y}\ (3\cos y)\,\dee{y} =9\int_0^{\pi/2}\cos^2 y\,\dee{y} \\ &=\frac{9}{2}\int_0^{\pi/2}[1+\cos(2y)]\,\dee{y} =\frac{9}{2}{\Big[y+\frac{\sin(2y)}{2}\Big]}_0^{\pi/2} \\ &=\frac{9}{4}\pi \end{align*}

Figure from prob_s1.13, line 2

Figure from prob_s1.13, line 2

(b) It's not immediately obvious what to do with this one, but remember we found logxdx\int \log x \dee{x} using integration by parts with u=logxu=\log x and dv=dx\dee{v}=\dee{x}. Let's hope a similar trick works here. Integrate by parts, using u=log(1+x2)u=\log(1+x^2) and dv=dx\dee{v}=\dee{x}, so that du=2x1+x2dx\dee{u}=\frac{2x}{1+x^2}\,\dee{x}, v=xv=x.

01log(1+x2)dx=[xlog(1+x2)]0101x2x1+x2dx=log2201x21+x2dx=log2201(111+x2)dx=log22[xarctanx]01=log22+π20.264\begin{align*} \int_0^1\log(1+x^2)\,\dee{x} &=\Big[x\log(1+x^2)\Big]_0^1-\int_0^1 x\frac{2x}{1+x^2}\,\dee{x} =\log 2-2\int_0^1 \frac{x^2}{1+x^2}\,\dee{x} \\ &=\log 2-2\int_0^1\Big(1- \frac{1}{1+x^2}\Big)\,\dee{x} =\log 2-2\big[x-\arctan x\big]_0^1 \\ &=\log 2-2+\frac{\pi}{2}\approx 0.264 \end{align*}

(c) The integrand is a rational function with no obvious substitution, so we use partial fractions.

x(x1)2(x2)=a(x1)2+bx1+cx2=a(x2)+b(x1)(x2)+c(x1)2(x1)2(x2)\begin{align*}\frac{x}{(x-1)^2(x-2)} &=\frac{a}{(x-1)^2}+\frac{b}{x-1}+\frac{c}{x-2} =\frac{a(x-2)+b(x-1)(x-2)+c(x-1)^2}{(x-1)^2(x-2)}\end{align*}

Multiply by the denominator.

x=a(x2)+b(x1)(x2)+c(x1)2\begin{align*}x&=a(x-2)+b(x-1)(x-2)+c(x-1)^2\end{align*}

Setting x=1x=1 gives a=1a=-1. Setting x=2x=2 gives c=2c=2. Substituting in a=1a=-1 and c=2c=2 gives

b(x1)(x2)=x+(x2)2(x1)2=2x2+6x4=2(x1)(x2)    b=2\begin{align*} b(x-1)(x-2)&=x+(x-2)-2(x-1)^2=-2x^2+6x-4=-2(x-1)(x-2) \\ \implies \color{red}b&\color{red}=-2 \end{align*}

Hence

3x(x1)2(x2)dx=limM3M(1(x1)22x1+2x2)dx=limM[1x12logx1+2logx2]3M=limM[1x1+2logx2x1]3M=limM[1M1+2logM2M1][131+2log3231]=2log2120.886\begin{align*} \int_3^\infty\frac{x}{(x-1)^2(x-2)}\,\dee{x} &=\lim_{M\rightarrow\infty} \int_3^M\left(-\frac{1}{(x-1)^2}-\frac{2}{x-1}+\frac{2}{x-2}\right)\,\dee{x} \\ &=\lim_{M\rightarrow\infty} \left[\frac{1}{x-1}-2\log|x-1|+2\log|x-2|\right]_3^M\\ &=\lim_{M\rightarrow\infty} \bigg[\frac{1}{x-1}+2\log\bigg|\frac{x-2}{x-1}\bigg|\bigg]_3^M\\ &=\lim_{M\rightarrow\infty} \bigg[\frac{1}{M-1}+2\log\bigg|\frac{M-2}{M-1}\bigg|\bigg] -\bigg[\frac{1}{3-1}+2\log\bigg|\frac{3-2}{3-1}\bigg|\bigg] \\ &=2\log 2-\frac{1}{2}\approx0.886 \end{align*}

since

limMlogM2M1=limMlog12/M11/M=log1=0andlog12=log2\begin{align*} \lim_{M\rightarrow\infty}\log\frac{M-2}{M-1} &=\lim_{M\rightarrow\infty}\log\frac{1-2/M}{1-1/M} =\log 1=0\\ \text{and}\qquad \log\frac{1}{2}&=-\log2 \end{align*}
Q12Stage 2

Evaluate sin4θ5sin3θ+4sin2θ+10sinθsin2θ5sinθ+6cosθ dθ\displaystyle\int\frac{\sin^4\theta-5\sin^3\theta+4\sin^2\theta+10\sin\theta}{\sin^2\theta-5\sin\theta+6}\cos\theta~\dee{\theta}.

Hint

Use the substitution u=sinθu=\sin\theta.

Answer

13sin3θ2sinθ+12logsinθ3sinθ2+C\displaystyle\frac{1}{3}\sin^3\theta-2\sin\theta+12\log\left|\frac{\sin\theta-3}{\sin\theta-2}\right|+C

Full solution

This looks quite a lot like a rational function, but with variable sinθ\sin\theta instead of xx. So, we use the substitution x=sinθx=\sin\theta, dx=cosθ dθ\dee{x} = \cos\theta~\dee{\theta}.

sin4θ5sin3θ+4sin2θ+10sinθsin2θ5sinθ+6cosθ dθ=x45x3+4x2+10xx25x+6 dx\begin{align*} \int\frac{\sin^4\theta-5\sin^3\theta+4\sin^2\theta+10\sin\theta}{\sin^2\theta-5\sin\theta+6}\cos\theta~\dee{\theta}&=\int \frac{x^4-5x^3+4x^2+10x}{x^2-5x+6}~\dee{x} \end{align*}

Since the numerator does not have smaller degree than the denominator, we need to do some long division before we can set up our partial fractions decomposition.

Figure from prob_s1.13, line 682

Figure from prob_s1.13, line 682

That is,

x45x3+4x2+10xx25x+6=x22+12x25x+6=x22+12(x2)(x3)\frac{x^4-5x^3+4x^2+10x}{x^2-5x+6}=x^2-2+\frac{12}{x^2-5x+6}=x^2-2+\frac{12}{(x-2)(x-3)}

We use partial fractions decomposition on the rightmost term.

12(x2)(x3)=Ax2+Bx312=A(x3)+B(x2)\begin{align*}\frac{12}{(x-2)(x-3)}&=\frac{A}{x-2}+\frac{B}{x-3}\\ 12&=A(x-3)+B(x-2)\end{align*}

Setting x=3x=3 and x=2x=2 gives us

B=12,A=12\begin{align*}\color{red} B&\color{red}=12,\quad A=-12\end{align*}

Now we can evaluate our integral.

sin4θ5sin3θ+4sin2θ+10sinθsin2θ5sinθ+6cosθdθ=x45x3+4x2+10xx25x+6 dx=(x22+12(x2)(x3)) dx=(x2212x2+12x3) dx=13x32x12logx2+12logx3+C=13x32x+12logx3x2+C=13sin3θ2sinθ+12logsinθ3sinθ2+C\begin{align*} \int\frac{\sin^4\theta-5\sin^3\theta+4\sin^2\theta+10\sin\theta}{\sin^2\theta-5\sin\theta+6}\cos\theta\dee{\theta}&=\int \frac{x^4-5x^3+4x^2+10x}{x^2-5x+6}~\dee{x}\\ &=\int\left( x^2-2+\frac{12}{(x-2)(x-3)}\right)~\dee{x}\\ &=\int\left( x^2-2\textcolor{red}{ -} \frac{\textcolor{red}{12}}{x-2}+\frac{\textcolor{red}{12}}{x-3}\right)~\dee{x}\\ &=\frac{1}{3}x^3-2x-12\log|x-2|+12\log|x-3|+C\\ &=\frac{1}{3}x^3-2x+12\log\left|\frac{x-3}{x-2}\right|+C\\ &=\frac{1}{3}\sin^3\theta-2\sin\theta+12\log\left|\frac{\sin\theta-3}{\sin\theta-2}\right|+C \end{align*}
Q13Stage 2Past exam · 2001A

Evaluate the following integrals. Show your work.

  1. 0π4sin2(2x)cos3(2x) dx\displaystyle\int_0^{\pi\over 4}\sin^2(2x)\cos^3(2x)\ \dee{x}

  2. (9+x2)32 dx\displaystyle\int\big(9+x^2\big)^{-{3\over 2}}\ \dee{x}

  3. dx(x1)(x2+1)\displaystyle\int\frac{\dee{x}}{(x-1)(x^2+1)}

  4. xarctanx dx\displaystyle\int x\arctan x\ \dee{x}

Hint

For (c), try a little algebra to split the integral into pieces that are easy to antidifferentiate.

Answer

(a) 115\dfrac{1}{15} (b) 19xx2+9+C\dfrac{1}{9}\cdot\dfrac{x}{\sqrt{x^2+9}}+C (c) 12logx114log(x2+1)12arctanx+C\dfrac{1}{2}\log|x-1|-\dfrac{1}{4}\log(x^2+1)-\dfrac{1}{2}\arctan x+C

(d) 12[x2arctanxx+arctanx]+C\dfrac12\big[ x^2\arctan x -x +\arctan x\big]+C

Full solution

(a) It doesn't matter to us right now that the arguments of sine and cosine are 2x2x rather than xx. This is still the integral of powers of products of sines and cosines. Since cosine has an odd power, we make the substitution u=sin(2x)u=\sin (2x), du=2cos(2x)dx\dee{u}=2\cos(2 x)\,\dee{x}.

0π4sin2(2x)cos3(2x) dx=0π4sin2(2x)[1sin2(2x)]cos(2x) dx=1201u2[1u2] du=1201(u2u4) du=12[13u315u5]01=115\begin{align*} \int_0^{\pi\over 4}\sin^2(2x)\cos^3(2x)\ \dee{x} &=\int_0^{\pi\over 4} \sin^2(2x)\big[1-\sin^2(2x)\big]\cos(2 x)\ \dee{x} =\frac{1}{2}\int_0^1 u^2\big[1-u^2\big]\ \dee{u}\cr &=\frac{1}{2}\int_0^1\big(u^2-u^4\big)\ \dee{u} =\frac{1}{2}{\Big[\frac{1}{3}u^3-\frac{1}{5}u^5\Big]}_0^1 =\frac{1}{15} \end{align*}

(b) Make the substitution x=3tantx=3\tan t, dx=3sec2tdt\dee{x}=3\sec^2t\,\dee{t} and use the trig identity 9+9tan2t=9sec2t9+9\tan^2 t = 9\sec^2 t.

(9+x2)32 dx=(9+9tan2t)32 3sec2tdt=(3sect)3 3sec2tdt=19cost dt=19sint+C=19xx2+9+C\begin{align*} \int\big(9+x^2\big)^{-{3\over 2}}\ \dee{x} &=\int\big(9+9\tan^2t\big)^{-{3\over 2}}\ 3\sec^2t\,\dee{t} =\int\big(3\sec t\big)^{-3}\ 3\sec^2t\,\dee{t} \\ &=\frac{1}{9}\int\cos t\ \dee{t} =\frac{1}{9}\sin t+C =\frac{1}{9}\frac{x}{\sqrt{x^2+9}}+C \end{align*}

To convert back to xx, in the last step, we used the triangle below, which is rigged to have tant=x3\tan t =\frac{x}{3}.

Figure from prob_s1.13, line 743

Figure from prob_s1.13, line 743

(c) Seeing a rational function with no obvious substitutions, we use partial fractions.

1(x1)(x2+1)=ax1+bx+cx2+1=a(x2+1)+(bx+c)(x1)(x1)(x2+1)\begin{align*}\frac{1}{(x-1)(x^2+1)} &=\frac{a}{x-1}+\frac{bx+c}{x^2+1} =\frac{a(x^2+1)+(bx+c)(x-1)}{(x-1)(x^2+1)}\end{align*}

Multiply by the original denominator.

1=a(x2+1)+(bx+c)(x1)\begin{align*}1&=a(x^2+1)+(bx+c)(x-1)\tag{$*$}\end{align*}

Setting x=1x=1 gives 2a=12a=1 or a=12a=\half. Substituting in a=12a=\half in ()(*) gives

12(x2+1)+(bx+c)(x1)=1    (bx+c)(x1)=12(1x2)=12(x1)(x+1)    (bx+c)=12(x+1)    b=c=12\begin{align*} &\frac{1}{2}(x^2+1)+(bx+c)(x-1)=1\cr \iff\qquad& (bx+c)(x-1)=\frac{1}{2}(1-x^2)=-\frac{1}{2}(x-1)(x+1)\cr \iff\qquad& (bx+c)=-\frac{1}{2}(x+1)\cr \iff\qquad&\color{red} b=c=-\frac{1}{2}\cr \end{align*}

So,

dx(x1)(x2+1)=[1/2x112(x+1)x2+1]dx\begin{align*}\int\frac{\dee{x}}{(x-1)(x^2+1)} &=\int\Big[\frac{1/2}{x-1}-\frac{\frac{1}{2}(x+1)}{x^2+1}\Big]\,\dee{x}\end{align*}

To antidifferentiate the second piece, we split it into two integrals: one that can be handled with the substitution u=x2+1u=x^2+1, and another that looks like the derivative of arctangent.

=(1/2x1x/2x2+11/2x2+1)dx=(1/2x1142xx2+11/2x2+1)dx=12logx114log(x2+1)12arctanx+C\begin{align*}&=\int\Big(\frac{1/2}{x-1}-\frac{x/2}{x^2+1} -\frac{1/2}{x^2+1}\Big)\,\dee{x}\cr &=\int\Big(\frac{1/2}{x-1}-\frac{1}{4}\cdot\frac{2x}{x^2+1} -\frac{1/2}{x^2+1}\Big)\,\dee{x}\cr &=\frac{1}{2}\log|x-1|-\frac{1}{4}\log(x^2+1)-\frac{1}{2}\arctan x+C\end{align*}

(d) We know the derivative of arctangent, and it would integrate nicely if multiplied to the antiderivative of xx. So, we integrate by parts with u=arctanxu=\arctan x and dv=xdx\dee{v}=x\,\dee{x} so that du=11+x2dx\dee{u}=\frac{1}{1+x^2}\dee{x} and v=12x2v=\frac{1}{2} x^2. Then

xarctanxdx=12x2arctanx12x21+x2dx=12x2arctanx121+x211+x2dx=12x2arctanx12(111+x2)dx=12[x2arctanxx+arctanx]+C\begin{align*} \int x\arctan x\,\dee{x}&= \frac{1}{2} x^2\arctan x -\frac{1}{2}\int \frac{x^2}{1+x^2}\,\dee{x} \\ &= \frac{1}{2} x^2\arctan x-\frac{1}{2}\int \frac{1+x^2-1}{1+x^2}\,\dee{x}\cr &= \frac{1}{2} x^2\arctan x-\frac{1}{2}\int \left(1-\frac{1}{1+x^2}\right)\,\dee{x}\cr &=\frac{1}{2}\big[ x^2\arctan x -x +\arctan x\big]+C \end{align*}
Q14Stage 2Past exam · M121 2000A

Evaluate the following integrals.

  1. 0π/4sin5(2x)cos(2x) dx\displaystyle\int_0^{\pi/4}\sin^5(2x)\,\cos(2x)\ \dee{x}

  2. 4x2 dx\displaystyle\int\sqrt{4-x^2}\ \dee{x}

  3. x+1x2(x1) dx\displaystyle\int\frac{x+1}{x^2(x-1)}\ \dee{x}

Hint

If you're stumped, review Sections 1.8, 1.9, and 1.10 in the CLP-2 text.

Answer

(a) 112\dfrac{1}{12} (b) 2sin1x2+x1x24+C\displaystyle2\sin^{-1}\frac{x}{2}+x\sqrt{1-\frac{x^2}{4}}+C

(c) 2logx+1x+2logx1+C\displaystyle-2\log|x|+\frac{1}{x}+2\log|x-1|+C

Full solution

(a) We substitute y=sin(2x)y=\sin(2x), dy=2cos(2x) dx\dee{y}=2\cos(2x)\ \dee{x}. Note sin(20)=0\sin(2\cdot 0)=0 and sin(2π4)=1.\sin(2\cdot\frac{\pi}{4}) = 1.

0π/4sin5(2x)cos(2x) dx=01y5dy2=112[y6]01=112\begin{equation*} \int_0^{\pi/4}\sin^5(2x)\,\cos(2x)\ \dee{x} =\int_{0}^{1} y^5\,\frac{\dee{y}}{2} =\frac{1}{12}\bigg[y^6\bigg]_0^1 =\frac{1}{12} \end{equation*}

(b) We can get rid of the square root with a trig substitution. Substituting x=2sinyx=2\sin y, dx=2cosy dy\dee{x}=2\cos y\ \dee{y},

4x2 dx=44sin2y 2cosy dy=4cos2y dy=2[1+cos(2y)] dy=2y+sin(2y)+C=2y+2sinycosy+C=2sin1x2+x1x24+C\begin{align*} \int\sqrt{4-x^2}\ \dee{x} &=\int \sqrt{4-4\sin^2 y}\ 2\cos y\ \dee{y} =4\int \cos^2y\ \dee{y} =2\int\big[1+\cos(2y)\big]\ \dee{y} \\ &=2 y +\sin(2y)+C =2y+2\sin y\cos y+C \\ &=2\sin^{-1}\frac{x}{2}+x\sqrt{1-\frac{x^2}{4}}+C \end{align*}

since siny=x2\sin y =\frac{x}{2} and cosy=1sin2y=1x24\cos y=\sqrt{1-\sin^2y} =\sqrt{1-\frac{x^2}{4}}. Alternately, we can draw a triangle with siny=x2\sin y = \frac{x}{2}, and use the Pythagorean theorem to find the adjacent side.

Figure from prob_s1.13, line 849

Figure from prob_s1.13, line 849

(c) Seeing a rational function with no obvious substitution, we use the method of partial fractions. The denominator is already completely factored.

x+1x2(x1)=Ax+Bx2+Cx1x+1=Ax(x1)+B(x1)+Cx2\begin{align*} \frac{x+1}{x^2(x-1)}&=\frac{A}{x}+\frac{B}{x^2}+\frac{C}{x-1}\\ x+1&=Ax(x-1)+B(x-1)+Cx^2 \end{align*}

Setting x=1x=1 gives us C=2C=2. Setting x=0x=0 gives us B=1B=-1. Furthermore, the coefficient of x2x^2 on the left hand side (after collecting like terms), namely A+CA+C, must be the same as the coefficient of x2x^2 on the right hand side, namely 00. So A+C=0A+C=0 and A=2A=-2. Checking,

2x(x1)(x1)+2x2=2x2+2xx+1+2x2=x+1\begin{equation*} -2x(x-1)-(x-1)+2x^2=-2x^2+2x-x+1+2x^2=x+1 \end{equation*}

as desired. Thus,

x+1x2(x1) dx=[2x1x2+2x1] dx=2logx+1x+2logx1+C\begin{equation*} \int\frac{x+1}{x^2(x-1)}\ \dee{x} =\int\Big[\textcolor{red}{-}\frac{\textcolor{red}{2}}{x}\textcolor{red}{-}\frac{\textcolor{red}{1}}{x^2}+\frac{\textcolor{red}{2}}{x-1}\Big]\ \dee{x} =-2\log|x|+\frac{1}{x}+2\log|x-1|+C \end{equation*}
Q15Stage 2Past exam · 2001D

Calculate the following integrals.

  1. 0exsin(2x)dx\displaystyle\int_0^\infty e^{-x} \sin(2x)\,\dee{x}

  2. 021(2+x2)3/2dx\displaystyle\int_0^{\sqrt{2}}\frac{1}{(2+x^2)^{3/2}}\,\dee{x}

  3. 01xlog(1+x2)dx\displaystyle\int_0^1 x\log(1+x^2)\,\dee{x}

  4. 31(x1)2(x2)dx\displaystyle\int_3^\infty\frac{1}{(x-1)^2(x-2)}\,\dee{x}

Hint

For part (a), see Example 1.7.11 in the

CLP-2 text. For part (d), see Example 1.10.4 in the

CLP-2 text.

Answer

(a) 25\displaystyle\frac{2}{5} (b) 122\displaystyle\frac{1}{2\sqrt{2}} (c) log2120.193\displaystyle\log 2-\frac{1}{2}\approx 0.193 (d) log2120.193\displaystyle\log 2-\frac{1}{2}\approx0.193

Full solution

(a) Define

I1=0exsin(2x)dxI2=0excos(2x)dx\begin{align*} I_1=\int_0^\infty e^{-x} \sin(2x)\,\dee{x}\qquad I_2=\int_0^\infty e^{-x} \cos(2x)\,\dee{x} \end{align*}

We integrate by parts, with u=sin(2x)u=\sin(2x) or cos(2x)\cos(2x) and dv=exdx\dee{v}=e^{-x}\,\dee{x}. That is, v=exv=-e^{-x}.

I1=0exsin(2x)dx=limR0Rexsin(2x)dx=limR([exsin(2x)]0R+20Rexcos(2x)dx)=2I2I2=0excos(2x)dx=limR0Rexcos(2x)dx=limR([excos(2x)]0R20Rexsin(2x)dx)=12I1\begin{alignat*}{3} I_1&=\int_0^\infty e^{-x} \sin(2x)\,\dee{x} &&=\lim_{R\rightarrow\infty}\int_0^R e^{-x} \sin(2x)\,\dee{x} \\ &&&= \lim_{R\rightarrow\infty}\bigg(\Big[-e^{-x}\sin(2x)\Big]_0^R+2\int_0^R e^{-x} \cos(2x)\,\dee{x}\bigg) =2I_2\\ I_2&=\int_0^\infty e^{-x} \cos(2x)\,\dee{x} &&=\lim_{R\rightarrow\infty}\int_0^R e^{-x} \cos(2x)\,\dee{x} \\ &&&=\lim_{R\rightarrow\infty} \bigg(\Big[-e^{-x}\cos(2x)\Big]_0^R-2\int_0^R e^{-x} \sin(2x)\,\dee{x} \bigg) =1-2I_1 \end{alignat*}

Substituting I2=12I1I_2=\dfrac12 I_1 into I2=12I1I_2=1-2I_1 gives 52I1=1\dfrac{5}{2}I_1=1, or 0exsin(2x)dx=25\displaystyle\int_0^\infty e^{-x} \sin(2x)\,\dee{x}=\dfrac{2}{5}.

(b) We can cancel out the square root if we use a trig substitution. Substitute x=2tanyx=\sqrt{2}\tan y, dx=2sec2ydy\dee{x}=\sqrt{2}\sec^2 y\,\dee{y}.

021(2+x2)3/2dx=20π/4sec2y(2+2tan2y)3/2dy=120π/4cosydy=12[siny]0π/4=122\begin{align*} \int_0^{\sqrt{2}}\frac{1}{(2+x^2)^{3/2}}\,\dee{x} =\sqrt{2}\int_0^{\pi/4}\frac{\sec^2 y}{(2+2\tan^2y)^{3/2}}\,\dee{y} =\frac{1}{2}\int_0^{\pi/4}\cos y\,\dee{y} =\frac{1}{2} \bigg[\sin y\bigg]_0^{\pi/4} =\frac{1}{2\sqrt{2}} \end{align*}

(c)

  • Integrate by parts, using u=log(1+x2)u=\log(1+x^2) and dv=xdx\dee{v}=x\,\dee{x}, so that du=2x1+x2\dee{u}=\frac{2x}{1+x^2}, v=x22v=\frac{x^2}{2}.

    01xlog(1+x2)dx=[12x2log(1+x2)]0101x31+x2dy=12log201[xx1+x2]dx=12log2[x2212log(1+x2)]01=log2120.193\begin{align*} \int_0^1 x\log(1+x^2)\,\dee{x} &=\Big[\frac{1}{2} x^2\log(1+x^2)\Big]_0^1-\int_0^1 \frac{x^3}{1+x^2}\,\dee{y} =\frac{1}{2} \log 2 -\int_0^1\Big[x-\frac{x}{1+x^2}\Big]\,\dee{x}\cr &=\frac{1}{2} \log 2 -\Big[\frac{x^2}{2}-\frac{1}{2}\log(1+x^2)\Big]_0^1 =\log 2-\frac{1}{2}\approx 0.193 \end{align*}
  • First substitute y=1+x2y=1+x^2, dy=2xdx\dee{y}=2x\,\dee{x}.

    01xlog(1+x2)dx=1212logy dy\begin{align*} \int_0^1 x\log(1+x^2)\,\dee{x} =\frac{1}{2}\int_1^2\log y\ \dee{y} \end{align*}

    Then integrate by parts, using u=logyu=\log y and dv=dy\dee{v}=\dee{y}, so that du=1y\dee{u}=\frac{1}{y}, v=yv=y.

    01xlog(1+x2)dx=1212logy dy=[12ylogy]121212y1ydy=log2120.193\begin{align*} \int_0^1 x\log(1+x^2)\,\dee{x} =\frac{1}{2}\int_1^2\log y\ \dee{y} =\Big[\frac{1}{2} y\log y\Big]_1^2-\frac{1}{2}\int_1^2 y\frac{1}{y}\,\dee{y} =\log 2-\frac{1}{2}\approx 0.193 \end{align*}

(d) Seeing a rational function with no obvious substitution, we use partial fractions.

1(x1)2(x2)=a(x1)2+bx1+cx21=a(x2)+b(x1)(x2)+c(x1)2\begin{align*} \frac{1}{(x-1)^2(x-2)} &=\frac{a}{(x-1)^2}+\frac{b}{x-1}+\frac{c}{x-2}\\ 1&=a(x-2)+b(x-1)(x-2)+c(x-1)^2\tag{$*$} \end{align*}

Setting x=1x=1 gives a=1a=-1. Setting x=2x=2 gives c=1c=1. Substituting in a=1a=-1 and c=1c=1 to (*) gives

b(x1)(x2)=1+(x2)(x1)2=x2+3x2=(x1)(x2)    b=1\begin{align*} b(x-1)(x-2)&=1+(x-2)-(x-1)^2\\ &=-x^2+3x-2\\ &=-(x-1)(x-2)\\ \implies\qquad \color{red}b&\color{red}=-1 \end{align*}

Hence:

31(x1)2(x2)dx=limM3M(1(x1)21x1+1x2)dx=limM[1x1log(x1)+log(x2)]3M=limM[1M1+logM2M1][131+log3231]=log2120.193\begin{align*} \int_3^\infty\frac{1}{(x-1)^2(x-2)}\,\dee{x} &=\lim_{M\rightarrow\infty} \int_3^M\Big(-\frac{1}{(x-1)^2}-\frac{1}{x-1}+\frac{1}{x-2}\Big)\,\dee{x} \\ &=\lim_{M\rightarrow\infty} \Big[\frac{1}{x-1}-\log(x-1)+\log(x-2)\Big]_3^M\\ &=\lim_{M\rightarrow\infty} \Big[\frac{1}{M-1}+\log\frac{M-2}{M-1}\Big] -\Big[\frac{1}{3-1}+\log\frac{3-2}{3-1}\Big] \\ &=\log 2-\frac{1}{2}\approx0.193 \end{align*}

since

limMlogM2M1=limMlog12/M11/M=log1=0\begin{align*} \lim_{M\rightarrow\infty}\log\frac{M-2}{M-1} =\lim_{M\rightarrow\infty}\log\frac{1-2/M}{1-1/M} =\log 1=0 \end{align*}
Q16Stage 2Past exam · 2002A

Evaluate the following integrals.

  1. xlogx dx\displaystyle\int x\,\log x\ \dee{x}

  2. (x1)dxx2+4x+5\displaystyle\int\frac{(x-1)\,\dee{x}}{x^2+4x+5}

  3. dxx24x+3\displaystyle\int\frac{\dee{x}}{x^2-4x+3}

  4. x2dx1+x6\displaystyle\int\frac{x^2\,\dee{x}}{1+x^6}

Hint

For part (b), first complete the square in the denominator. You can save some work by first comparing the derivative of the denominator with the numerator. For part (d) use a simple substitution.

Answer

(a) 12x2logx14x2+C\displaystyle\frac12 x^2\log x -\frac{1}{4} x^2+C (b) 12log[x2+4x+5]3arctan(x+2)+C\displaystyle\frac{1}{2} \log [x^2+4x+5] -3\arctan(x+2)+C

(c) 12logx312logx1+C\displaystyle\frac12\log|x-3|-\frac12\log|x-1|+C (d) 13arctanx3+C\displaystyle\frac{1}{3}\arctan x^3 +C

Full solution

(a) Integrate by parts with u=logxu=\log x and dv=xdx\dee{v}=x\,\dee{x}, so that du=dxx\dee{u}=\frac{\dee{x}}{x} and v=12x2v=\half x^2.

xlogx dx=12x2logx12x21xdx=12x2logx14x2+C\begin{align*} \int x\,\log x\ \dee{x}= \frac{1}{2} x^2\log x- \frac{1}{2} \int x^2\cdot\frac{1}{x}\,\dee{x} =\frac{1}{2} x^2\log x -\frac{1}{4} x^2+C \end{align*}

(b) The denominator is an irreducible quadratic, so partial fractions can't get us any further. To integrate a function whose denominator is quadratic, we split the numerator up so that one piece can be evaluated with a uu-substitution, and the other piece looks like arctangent.

(x1)dxx2+4x+5=x+23x2+4x+5dx=122x+4x2+4x+5dx3x2+4x+5dx=122x+4x2+4x+5dx31(x+2)2+1dx=12log[x2+4x+5]3arctan(x+2)+C\begin{align*} \int\frac{(x-1)\dee{x}}{x^2+4x+5} &=\int\frac{x+2-3}{x^2+4x+5}\dee{x} \\ &=\frac{1}{2}\int\frac{2x+4}{x^2+4x+5}\dee{x} -\int\frac{3}{x^2+4x+5}\dee{x} \\ &=\frac{1}{2}\int\frac{2x+4}{x^2+4x+5}\dee{x}-3\int\frac{1}{(x+2)^2+1}\dee{x} \\ &=\frac{1}{2} \log [x^2+4x+5] -3\arctan(x+2)+C \end{align*}

For the last step, you can guess the antiderivative, or use the substitutions u1=x2+4x+5u_1=x^2+4x+5 and u2=x+2u_2=x+2, respectively, for the two integrals.

(c) We use partial fractions.

1x24x+3=1(x3)(x1)=ax3+bx11=a(x1)+b(x3)\begin{align*} \frac{1}{x^2-4x+3} &=\frac{1}{(x-3)(x-1)} =\frac{a}{x-3}+\frac{b}{x-1}\\ 1&=a(x-1)+b(x-3) \end{align*}

Setting x=3x=3 gives a=12a=\frac{1}{2}. Setting x=1x=1 gives b=12b=-\frac{1}{2}. So,

dxx24x+3=(1/2x31/2x1)dx=12logx312logx1+C\begin{align*} \int\frac{\dee{x}}{x^2-4x+3} =\int\Big(\frac{\textcolor{red}{1/2}}{x-3}\textcolor{red}{-}\frac{\textcolor{red}{1/2}}{x-1}\Big)\,\dee{x} =\frac{1}{2}\log|x-3|-\frac{1}{2}\log|x-1|+C \end{align*}

(d) Substitute y=x3y=x^3, dy=3x2dx\dee{y}=3x^2\,\dee{x}.

x2dx1+x6=13dy1+y2=13arctany+C=13arctanx3+C\begin{align*} \int\frac{x^2\,\dee{x}}{1+x^6}= \frac{1}{3} \int \frac{\dee{y}}{1+y^2} = \frac{1}{3}\arctan y+C =\frac{1}{3}\arctan x^3 +C \end{align*}
Q17Stage 2Past exam · 2013A

Evaluate the following integrals.

  1. 01arctanx dx\displaystyle\int_0^1\arctan x\ \dee{x}.

  2. 2x1x22x+5 dx\displaystyle\int\frac{2x-1}{x^2-2x+5}\ \dee{x}.

Hint

For part (b), complete the square in the denominator. You can save some work by first comparing the derivative of the denominator with the numerator.

Answer

(a) π412log2\displaystyle\frac{\pi}{4}-\frac{1}{2}\log 2 (b) logx22x+5+12arctanx12+C\displaystyle\log |x^2-2x+5| +\frac{1}{2}\arctan \frac{x-1}{2} +C

Full solution

(a) Integrate by parts with u=arctanxu=\arctan x, dv=dx\dee{v}=\dee{x}, du=dx1+x2\dee{u}=\frac{\dee{x}}{1+x^2} and v=xv=x. This gives

01arctanx dx=[xarctanx]0101x1+x2dx=arctan1[12log(1+x2)]01=π412log2\begin{align*} \int_0^1\arctan x\ \dee{x} &= \big[x\arctan x\big]_0^1-\int_0^1 \frac{x}{1+x^2} \dee{x} =\arctan 1-\Big[\frac{1}{2}\log(1+x^2)\Big]_0^1 =\frac{\pi}{4}-\frac{1}{2}\log 2 \end{align*}

(b) Note that the derivative of the denominator is 2x22x-2, which differs from the numerator only by 11.

2x1x22x+5 dx=2x2x22x+5 dx+1x22x+5 dx=2x2x22x+5 dx+1(x1)2+4 dx=logx22x+5+12arctanx12+C\begin{align*} \int\frac{2x-1}{x^2-2x+5}\ \dee{x} &=\int\frac{2x-2}{x^2-2x+5}\ \dee{x}+\int\frac{1}{x^2-2x+5}\ \dee{x} \\ &=\int\frac{2x-2}{x^2-2x+5}\ \dee{x}+\int\frac{1}{(x-1)^2+4}\ \dee{x} \\ &=\log |x^2-2x+5| +\frac{1}{2}\arctan \frac{x-1}{2} +C \end{align*}

In the last step, you can guess the antiderivative, or use the substitutions u1=x22x+5u_1=x^2-2x+5 and u2=(x1)/2u_2=(x-1)/2, respectively.

Q18Stage 2Past exam · 2014A
  1. Evaluate x2(x3+1)101dx{\displaystyle \int\frac{x^2}{(x^3 + 1)^{101}}\,\dee{x}}.

  2. Evaluate cos3 ⁣x sin4 ⁣x dx\displaystyle\int \cos^3\!x\ \sin^4\!x\ \dee{x}.

Hint

For part (a), the numerator is the derivative of a function that appears in the denominator.

Answer

(a) 1300(x3+1)100+C\displaystyle-\frac{1}{300(x^3+1)^{100}} + C (b) sin5 ⁣x5sin7 ⁣x7+C\displaystyle\frac{\sin^5\!x}{5}-\frac{\sin^7\!x}{7}+C

Full solution

(a) Substituting u=x3+1u=x^3+1, du=3x2dx\dee{u}=3x^2\,\dee{x}

x2(x3+1)101dx=1u101du3=u10010013+C=1300(x3+1)100+C\begin{equation*} \int\frac{x^2}{(x^3 + 1)^{101}}\dee{x} =\int\frac{1}{u^{101}}\cdot \frac{\dee{u}}{3} =\frac{u^{-100}}{-100}\cdot\frac{1}{3}+C =-\frac{1}{300(x^3+1)^{100}} + C \end{equation*}

(b) Substituting u=sinxu=\sin x, du=cosx dx\dee{u}=\cos x\ \dee{x}, cos2x=1sin2x=1u2\cos^2 x = 1-\sin^2 x = 1-u^2,

cos3 ⁣x sin4 ⁣x dx=cos2 ⁣x sin4 ⁣x cosx dx=(1u2)u4 du=(u4u6) du=u55u77+C=sin5 ⁣x5sin7 ⁣x7+C\begin{align*} \int \cos^3\!x\ \sin^4\!x\ \dee{x} &=\int \cos^2\!x\ \sin^4\!x\ \cos x\ \dee{x} =\int (1-u^2) u^4\ \dee{u}\\ &=\int (u^4-u^6)\ \dee{u} =\frac{u^5}{5}-\frac{u^7}{7}+C \\ &=\frac{\sin^5\!x}{5}-\frac{\sin^7\!x}{7}+C \end{align*}
Q19Stage 2

Evaluate π/2πcosxsinx dx\displaystyle\int_{\pi/2}^\pi \frac{\cos x}{\sqrt{\sin x}}~\dee{x}.

Hint

The integral is improper.

Answer

-2

Full solution

First, we note that the integral is improper, because sinπ=0\sin\pi=0. So, we'll have to use a limit.

Second, we need to antidifferentiate. The substitution u=sinxu=\sin x, du=cosx dx\dee{u}=\cos x~\dee{x} fits just right.

π/2πcosxsinx dx=limbππ/2bcosxsinx dx=limbπ1sinb1u du=limbπ[2u]1sinb=2021=2\begin{align*} \int_{\pi/2}^\pi \frac{\cos x}{\sqrt{\sin x}}~\dee{x}&=\lim_{b \to \pi^-}\int_{\pi/2}^b \frac{\cos x}{\sqrt{\sin x}}~\dee{x} = \lim_{b \to \pi^-}\int_{1}^{\sin b} \frac{1}{\sqrt{u}}~\dee{u} \\ &=\lim_{b \to \pi^-}\Big[2\sqrt{u}\Big]_{1}^{\sin b} = 2\sqrt{0} - 2\sqrt{1}=-2 \end{align*}
Q20Stage 2Past exam · M105 2015A

Evaluate the following integrals.

  1. ex(ex+1)(ex3)dx\displaystyle\int \frac{e^x}{(e^x+1)(e^x-3)}\, \dee{x}

  2. 24x24x+412+4xx2dx\displaystyle\int_2^4 \frac{x^2-4x+4}{\sqrt{12+4x-x^2}}\, \dee{x}

Hint

For part (a), can you convert this into a partial fractions integral? For part (b), start by completing the square inside the square root.

Answer

(a) 14logex+1+14logex3+C\displaystyle-\frac{1}{4}\log|e^x+1| +\frac{1}{4}\log|e^x-3| + C (b) 4π323\displaystyle\frac{4\pi}{3}-2\sqrt{3}

Full solution

(a) If the integrand had xx's instead of exe^x's it would be a rational function, ripe for the application of partial fractions. So let's start by making the substitution u=exu=e^x, du=exdx\dee{u}=e^x\,\dee{x}:

ex(ex+1)(ex3)dx=du(u+1)(u3)\begin{align*} \int \frac{e^x}{(e^x+1)(e^x-3)} \dee{x} = \int \frac{\dee{u}}{(u+1)(u-3)} \end{align*}

Now, we follow the partial fractions protocol, starting with expressing

1(u+1)(u3)=Au+1+Bu3\begin{align*} \frac{1}{(u+1)(u-3)} = \frac{A}{u+1} + \frac{B}{u-3} \end{align*}

To find AA and BB, the sneaky way, we cross multiply by the denominator

1=A(u3)+B(u+1)\begin{align*} 1 = A(u-3) + B(u+1) \end{align*}

and find AA and BB by evaluating at u=1u=-1 and u=3u=3, respectively.

1=A(13)+B(1+1)    A=141=A(33)+B(3+1)    B=14\begin{align*} 1 = A(-1-3) + B(-1+1) &\iff\color{red} A=-\frac{1}{4} \\ 1 = A(3-3) + B(3+1) &\iff \color{red}B=\frac{1}{4} \\ \end{align*}

Finally, we can do the integral:

ex(ex+1)(ex3)dx=du(u+1)(u3)=(1/4u+1+1/4u3)du=14logu+1+14logu3+C=14logex+1+14logex3+C\begin{align*} \int \frac{e^x}{(e^x+1)(e^x-3)} \dee{x} &= \int \frac{\dee{u}}{(u+1)(u-3)} = \int \Big(\frac{\textcolor{red}{-1/4}}{u+1} + \frac{\textcolor{red}{1/4}}{u-3}\Big)\dee{u} \\ &=-\frac{1}{4}\log|u+1| +\frac{1}{4}\log|u-3| + C \\ &=-\frac{1}{4}\log|e^x+1| +\frac{1}{4}\log|e^x-3| + C \end{align*}

(b) The argument of the square root is

12+4xx2=12(x2)2+4=16(x2)2\begin{align*} 12+4x-x^2 =12-(x-2)^2 +4 =16-(x-2)^2 \end{align*}

Hmmm. The numerator is x24x+4=(x2)2x^2-4x+4=(x-2)^2. So let's make the integral look somewhat simpler by substituting u=x2u=x-2, du=dx\dee{u}=\dee{x}. When x=2x=2 we have u=0u=0, and when x=4x=4 we have u=2u=2, so:

x=2x=4x24x+412+4xx2dx=u=0u=2u216u2du\begin{align*} \int_{x=2}^{x=4} \frac{x^2-4x+4}{\sqrt{12+4x-x^2}} \dee{x} =\int_{u=0}^{u=2} \frac{u^2}{\sqrt{16-u^2}} \dee{u} \end{align*}

This is perfect for the trig substitution u=4sinθu=4\sin\theta, du=4cos(θ)dθ\dee{u} = 4\cos(\theta)\,\dee{\theta}. When u=0u=0 we have 4sinθ=04\sin\theta = 0 and hence θ=0\theta=0. When u=2u=2 we have 4sinθ=24\sin\theta = 2 and hence θ=π6\theta=\frac{\pi}{6}. So

u=0u=2u216u2du=θ=0θ=π/616sin2θ1616sin2θ4cosθdθ=160π/6sin2θ dθ=80π/6(1cos(2θ)) dθ=8[θ12sin(2θ)]0π/6=8[π61232]=4π323\begin{align*} \int_{u=0}^{u=2} \frac{u^2}{\sqrt{16-u^2}} \dee{u} &=\int_{\theta=0}^{\theta=\pi/6} \frac{16\sin^2\theta}{\sqrt{16-16\sin^2\theta}} 4\cos\theta\dee{\theta} \\ &=16\int_{0}^{\pi/6} \sin^2\theta\ \dee{\theta} \\ &=8\int_{0}^{\pi/6} \big(1-\cos(2\theta)\big)\ \dee{\theta} \\ &=8 \bigg[\theta-\frac{1}{2}\sin(2\theta)\bigg]_{0}^{\pi/6} =8 \bigg[\frac{\pi}{6}-\frac{1}{2}\cdot \frac{\sqrt{3}}{2} \bigg] \\ & = \frac{4\pi}{3}-2\sqrt{3} \end{align*}
Q21Stage 2Past exam · M121 1999A

Evaluate these integrals.

  1. sin3xcos3x dx\displaystyle\int\frac{\sin^3x}{\cos^3x} \ \dee{x}

  2. 22x4x10+16 dx\displaystyle\int_{-2}^{2}\frac{x^4}{x^{10}+16}\ \dee{x}

Hint

For part (b), the numerator is the derivative of a function that is embedded in the denominator.

Answer

(a) 12sec2x+logcosx+C\displaystyle\frac{1}{2}\sec^2 x+\log|\cos x|+C (b) 110arctan80.1446\displaystyle \frac{1}{10}\arctan 8\approx 0.1446

Full solution

(a) Substituting y=cosxy=\cos x, dy=sinxdx\dee{y}=-\sin x\,\dee{x}, sin2x=1cos2x=1y2\sin^2 x = 1-\cos^2x=1-y^2

sin3xcos3x dx=sin2xcos3x sinxdx=1y2y3 (dy)=(y3y1) dy=y22+logy+C=12sec2x+logcosx+C\begin{align*} \int \frac{\sin^3x}{\cos^3x}\ \dee{x} &=\int \frac{\sin^2 x}{\cos^3 x}\ \sin x\,\dee{x} =\int \frac{1-y^2}{y^3}\ (-\dee{y}) =-\int \big( y^{-3}-y^{-1}\big)\ \dee{y}\\ &=-\frac{y^{-2}}{-2}+\log|y|+C =\frac{1}{2}\sec^2 x+\log|\cos x|+C \end{align*}

(b) The integrand is an even function, and the limits of integration are symmetric. So, we can slightly simplify the integral by replacing the lower limit with 0, and doubling the integral.

We'd rather not use partial fractions here, because it would be pretty complicated. Instead, notice that the numerator is only off by a constant from the derivative of x5x^5. Substituting x5=4yx^5=4y, 5x4dx=4dy5x^4\,\dee{x}=4\,\dee{y}, and using that x=2    25=4y    y=8x=2\implies 2^5=4y\implies y=8,

22x4x10+16 dx=202x4x10+16 dx=24508116y2+16 dy=110081y2+1 dy=110arctan80.1446\begin{align*} \int_{-2}^{2}\frac{x^4}{x^{10}+16}\ \dee{x} &=2\int_0^{2}\frac{x^4}{x^{10}+16}\ \dee{x} =2\cdot\frac{4}{5}\int_0^{8}\frac{1}{16y^2+16}\ \dee{y} =\frac{1}{10}\int_0^{8}\frac{1}{y^2+1}\ \dee{y} \\ &= \frac{1}{10}\arctan 8\approx 0.1446 \end{align*}
Q22Stage 2

Evaluate xx1 dx\displaystyle\int x\sqrt{x-1}~\dee{x}.

Hint

Try a substitution.

Answer

25(x1)5/2+23(x1)3/2+C\displaystyle\frac{2}{5}(x-1)^{5/2} + \frac{2}{3}(x-1)^{3/2}+C

Full solution
  • Let's use the substitution u=x1u=x-1, du=dx\dee{u}=\dee{x}.

    xx1 dx=(u+1)u du=(u3/2+u1/2) du=25u5/2+23u3/2+C=25(x1)5/2+23(x1)3/2+C\begin{align*} \int x\sqrt{x-1}~\dee{x}&=\int(u+1)\sqrt{u}~\dee{u}\\ &=\int \left(u^{3/2}+u^{1/2}\right)~\dee{u}\\ &=\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{align*}
  • We have an integrand with xx multiplied by something integrable. So, if we use integration by parts with u=xu=x and dv=x1 dx\dee{v} = \sqrt{x-1}~\dee{x}, then du=dx\dee{u}=\dee{x} (that is, the xx goes away) and v=23(x1)3/2v = \frac{2}{3}(x-1)^{3/2}.

    xx1 dx=23xx1323(x1)3/2dx=23xx1323(25(x1)5/2)+C=23x1(x(x1)25(x1)2)+C=215x1(3x2x2)+C=215x1(3(x22x+1)+5x5)+C=215x1(3(x1)2+5(x1))+C=2153x15+2155x13+C=25x15+23x13+C\begin{align*} \int x\sqrt{x-1}~\dee{x}&=\frac{2}{3}x\sqrt{x-1}^3 - \frac{2}{3}\int(x-1)^{3/2}\dee{x} \\ &= \frac{2}{3}x\sqrt{x-1}^3 - \frac{2}{3}\left(\frac{2}{5}(x-1)^{5/2}\right)+C\\ &=\frac{2}{3}\sqrt{x-1}\left(x(x-1)-\frac{2}{5}(x-1)^2\right)+C\\ &=\frac{2}{15}\sqrt{x-1}\cdot(3x^2-x-2)+C\\ &=\frac{2}{15}\sqrt{x-1}\cdot(3(x^2-2x+1)+5x-5)+C\\ &=\frac{2}{15}\sqrt{x-1}\cdot(3(x-1)^2+5(x-1))+C\\ &=\frac{2}{15}\cdot 3\sqrt{x-1}^5 +\frac{2}{15}\cdot 5\sqrt{x-1}^3+C\\ &=\frac{2}{5}\sqrt{x-1}^5 +\frac{2}{3}\sqrt{x-1}^3+C \end{align*}

We have just seen two solutions. There are other solutions too. For example, one could use the substitution u=x1u=\sqrt{x-1}. Or, as another example, one could write

xx1=(x1)x1+x1=(x1)3/2+(x1)1/2\begin{equation*} x\sqrt{x-1} = (x-1)\sqrt{x-1} +\sqrt{x-1} = (x-1)^{3/2} + (x-1)^{1/2} \end{equation*}

and just guess a function whose derivative is (x1)3/2(x-1)^{3/2} and a function whose derivative is (x1)1/2(x-1)^{1/2}.

Q23Stage 2

Evaluate x22x2dx\displaystyle\int \frac{\sqrt{x^2-2}}{x^2}\dee{x} for x2x\ge\sqrt{2}.

You may use that secxdx=logsecx+tanx+C\int \sec x\,\dee{x} = \log|\sec x+\tan x| +C.

Hint

Note the quadratic function under the square root: you can solve this with trigonometric substitution, as in Section 1.9 of the CLP-2 text.

Answer

logx+x22x22x+C\log \left| x+{\sqrt{x^2-2}} \right|-\dfrac{\sqrt{x^2-2}}{x}+C

Full solution

We are to integrate

x22x2dx\int \frac{\sqrt{x^2-2}}{x^2}\dee{x}

We notice that there is a quadratic function under the square root. If that function were a perfect square, we could get rid of the square root: so we'll mould it into a perfect square using a trig substitution.

Our candidates are the following identities:

1sin2θ=cos2θtan2θ+1=sec2θsec2θ1=tan2θ1-\sin^2\theta=\cos^2\theta \hspace{1cm} \tan^2\theta+1=\sec^2\theta \hspace{1cm} \sec^2\theta-1=\tan^2\theta

We'll be substituting x=x=(something), so we notice that x22x^2-2 has the general form of (function)-(constant), as does sec2θ1\sec^2\theta-1. In order to get the constant right, we multiply through by two:

2sec2θ2=2tan2θ2\sec^2\theta-2=2\tan^2\theta

or:

(2secθ)22=2tan2θ(\sqrt{2}\sec \theta)^2-2=2\tan^2\theta

So we decide to use the substitution

x=2secθ0θ<π/2(Recall that x2.)dx=2secθtanθdθx22=2sec2θ2=2tan2θ=2tanθ=2tanθsince 0θ<π/2\begin{align*} x&=\sqrt{2}\sec\theta\qquad 0\le \theta < \pi/2\quad \text{(Recall that }x\ge\sqrt{2}\text{.)} \\ \dee{x}&=\sqrt{2}\sec\theta\tan\theta\, \dee{\theta} \\ \sqrt{x^2-2}&=\sqrt{2\sec^2\theta-2} =\sqrt{2\tan^2\theta} =\sqrt{2}\,|\tan\theta| \\ &=\sqrt{2}\,\tan\theta\quad\text{since }0\le \theta < \pi/2 \end{align*}

Now that we've chosen the substitution, we evaluate the integral.

x22x2dx=2tanθ2sec2θ2secθtanθdθ=tan2θsecθdθ=sec2θ1secθdθ=(secθcosθ)dθ=logsecθ+tanθsinθ+C\begin{align*} \int\frac{\sqrt{x^2-2}}{x^2}\dee{x} &=\int \frac{\sqrt{2}\tan\theta}{2\sec^2\theta}\sqrt{2}\sec\theta\tan\theta\, \dee{\theta}\\ &=\int \frac{\tan^2\theta}{\sec\theta}\, \dee{\theta}\\ &= \int \frac{\sec^2\theta-1}{\sec\theta}\dee{\theta}\\ &=\int \big(\sec\theta-\cos\theta\big)\, \dee{\theta}\\ &=\log|\sec\theta + \tan\theta|-\sin\theta +C \end{align*}

Now we need everything back in terms of xx. We need a triangle. Since x=2secθx=\sqrt{2}\sec\theta, that means that if we label an angle θ\theta, its secant (hypotenuse over adjacent side) is x2\dfrac{x}{\sqrt{2}}. By Pythagoras, the opposite side is x22\sqrt{x^2-2}.

Figure from prob_s1.13, line 1449

Figure from prob_s1.13, line 1449

So tanθ=oppadj=x222\tan \theta = \frac{\text{opp}}{\text{adj}}=\dfrac{\sqrt{x^2-2}}{\sqrt{2}}, and sinθ=opphyp=x22x\sin\theta = \frac{\text{opp}}{\text{hyp}}=\dfrac{\sqrt{x^2-2}}{x}. Then the value of the integral is:

logsecθ+tanθsinθ+C=logx2+x222x22x+C=logx+x22log2x22x+C=logx+x22x22x+C\begin{align*} \log|\sec\theta + \tan\theta|-\sin\theta +C &={ \log \left| \frac{x}{\sqrt{2}}+\frac{\sqrt{x^2-2}}{\sqrt{2}} \right|-\frac{\sqrt{x^2-2}}{x}+C}\\ &={ \log \left| x+{\sqrt{x^2-2}} \right|-\log\sqrt{2}-\frac{\sqrt{x^2-2}}{x}+C}\\ &= \log \left| x+{\sqrt{x^2-2}} \right|-\frac{\sqrt{x^2-2}}{x}+C \end{align*}

Note that the simplification in the last step is possible because CC is an arbitrary constant. So, Clog2C-\log\sqrt{2} is just another arbitrary constant and can be renamed to CC.

Q24Stage 2

Evaluate 0π/4sec4xtan5xdx\displaystyle\int_0^{\pi/4} \sec^4x\tan^5x\,\dee{x}.

Hint

Try a substitution, as in Section 1.8.2 of the CLP-2 text.

Answer

724\dfrac{7}{24}

Full solution

This is the product of secants and tangents, as in Section 1.8.2 of the CLP-2 text. If u=tanxu=\tan x, then du=sec2xdx\dee{u}=\sec^2x\dee{x}. We can get the remaining two secants to turn into tangents with the identity sec2x=1+tan2x\sec^2x=1+\tan^2x, so we'll use this substitution.

0π/4sec4xtan5xdx=0π/4sec2xtan5xsec2xdx=0π/4(1+tan2x)tan5xsec2xdxdu=tan(0)tan(π/4)(1+u2)u5du=01(u5+u7)du=[16u6+18u8]01=16+180=724\begin{align*} \int_{0}^{\pi/4} \sec^4x\tan^5x\dee{x}&= \int_{0}^{\pi/4} \sec^2x\tan^5x\sec^2x\dee{x}\\ &= \int_{0}^{\pi/4} (1+\tan^2x)\tan^5x\underbrace{\sec^2x\dee{x}}_{\dee{u}} \\ &= \int_{\tan(0)}^{\tan(\pi/4)} (1+u^2)u^5\dee{u} \\ &= \int_{0}^{1} (u^5+u^7)\dee{u} \\ &= \left[\frac{1}{6}u^6+\frac{1}{8}u^8\right]_{0}^{1} \\ &=\frac{1}{6}+\frac{1}{8}-0=\frac{7}{24} \end{align*}
Q25Stage 2

Evaluate 3x2+4x+6(x+1)3dx\displaystyle\int \frac{3x^2+4x+6}{(x+1)^3} \, \dee{x}.

Hint

What's the usual trick for evaluating a rational function (quotient of polynomials)?

Answer

3logx+1+2x+152(x+1)2+C3\log|x+1|+\dfrac{2}{x+1}-\dfrac{5}{2(x+1)^2}+C

Full solution

We can use partial fraction decomposition to break this into chunks that we can deal with. The denominator has a repeated linear factor, so it can be decomposed as the sum of constants divided by powers of that factor.

3x2+4x+6(x+1)3=Ax+1+B(x+1)2+C(x+1)3=A(x+1)2+B(x+1)+C(x+1)3    3x2+4x+6=A(x+1)2+B(x+1)+C=Ax2+(2A+B)x+(A+B+C)\begin{align*}\frac{3x^2+4x+6}{(x+1)^3} &=\frac{A}{x+1}+\frac{B}{(x+1)^2}+\frac{C}{(x+1)^3}\\ &=\frac{A(x+1)^2+B(x+1)+C}{(x+1)^3}\\ \Rightarrow ~~~~ 3x^2+4x+6&=A(x+1)^2+B(x+1)+C\\ &=Ax^2+(2A+B)x+(A+B+C)\end{align*}

So, by matching coefficients:

A=3, 2A+B=4, and A+B+C=6A=3, B=2, C=5\begin{align*}&A=3, ~2A+B=4,\text{ and } A+B+C=6\\ &\color{red}A=3, ~B=-2,~C=5\end{align*}

Therefore:

3x2+4x+6(x+1)3=3x+1+2(x+1)2+5(x+1)3\begin{align*}\frac{3x^2+4x+6}{(x+1)^3} &= \frac{\textcolor{red}{3}}{x+1}+\frac{\textcolor{red}{-2}}{(x+1)^2}+\frac{\textcolor{red}{5}}{(x+1)^3}\end{align*}

Now, the integration is easy, with a substitution of u=x+1u=x+1 and du=dx\dee{u}=\dee{x}:

3x2+4x+6(x+1)3dx=(3x+1+2(x+1)2+5(x+1)3)dx=(3u12u2+5u3)du=3logu+2u152u2+C=3logx+1+2x+152(x+1)2+C\begin{align*}\int\frac{3x^2+4x+6}{(x+1)^3} \dee{x}&= \int\left(\frac{3}{x+1}+\frac{-2}{(x+1)^2}+\frac{5}{(x+1)^3}\right)\dee{x}\\ &=\int \left( 3u^{-1}-2u^{-2}+5u^{-3}\right)\dee{u}\\ &=3\log|u|+2u^{-1}-\frac{5}{2} u^{-2}+C\\ &=3\log|x+1|+\frac{2}{x+1}-\frac{5}{2(x+1)^2}+C\end{align*}
Q26Stage 2

Evaluate 1x2+x+1dx\displaystyle\int\frac{1}{x^2+x+1}\,\dee{x}.

Hint

If the denominator were x2+1x^2+1, the antiderivative would be arctangent.

Answer

23arctan(23x+13)+C\dfrac{2}{\sqrt3}\arctan\left(\dfrac{2}{\sqrt3}x+\dfrac{1}{\sqrt3}\right) +C

Full solution

If the denominator were x2+1x^2+1, the antiderivative would be arctangent. So, by completing the square, let's aim for the fraction to look like 1u2+1\dfrac{1}{u^2+1}, for some uu. This is a good strategy for integrating an irreducible quadratic under a constant.

First: complete the square

1x2+x+1dx=1x2+x+14+34dx=1(x+12)2+34dx\begin{align*}\int\frac{1}{x^2+x+1}\dee{x}&= \int\frac{1}{x^2+x+\frac{1}{4}+\frac{3}{4}}\dee{x} = \int\frac{1}{\left(x+\frac{1}{2}\right)^2+\frac{3}{4}}\dee{x}\end{align*}

Second: get the denominator in the form u2+1u^2+1. To do this, we need to fix the constant

=(1(x+12)2+34)(4343)dx=43143(x+12)2+1dx\begin{align*}&=\int\left(\frac{1}{\left(x+\frac{1}{2}\right)^2+\frac{3}{4}}\right)\left(\frac{\frac{4}{3}}{\frac{4}{3}}\right)\dee{x}\\ &=\frac{4}{3}\int\frac{1}{\frac{4}{3}\cdot\left(x+\frac{1}{2}\right)^2+1}\dee{x}\end{align*}

Now a quick wiggle to make that first part of the denominator into something squared again:

=431(23x+13)2+1dx\begin{align*}&=\frac{4}{3}\int\frac{1}{\left(\frac{2}{\sqrt{3}}x+\frac{1}{\sqrt{3}}\right)^2+1}\dee{x}\end{align*}

Now we see that u=23x+13u=\dfrac{2}{\sqrt{3}}x+\dfrac{1}{\sqrt{3}}, du=23dx\dee{u}=\dfrac{2}{\sqrt3}\dee{x} will do the job

=431u2+132du=231u2+1du=23arctanu+C=23arctan(23x+13)+C\begin{align*}&=\frac{4}{3}\int\frac{1}{u^2+1}\cdot\frac{\sqrt{3}}{2}\dee{u} =\frac{2}{\sqrt3}\int\frac{1}{u^2+1}\dee{u}\\ &=\frac{2}{\sqrt3}\arctan u +C\\ &=\frac{2}{\sqrt3}\arctan\left(\frac{2}{\sqrt3}x+\frac{1}{\sqrt3}\right) +C\end{align*}
Q27Stage 2

Evaluate sinxcosxtanx dx\displaystyle\int \sin x \cos x \tan x~\dee{x}.

Hint

Simplify first.

Answer

12(xsinxcosx)+C\displaystyle\frac12\left(x -\sin x \cos x \right)+C

Full solution

Since tanx=sinxcosx\tan x =\frac{\sin x}{\cos x},

sinxcosxtanx dx=sin2x dx=12(1cos(2x)) dx=12(x12sin(2x))+C=12(xsinxcosx)+C\begin{align*} \int \sin x \cos x \tan x~\dee{x}&=\int \sin^2 x~\dee{x} = \int \frac{1}{2}\big(1-\cos(2x) \big)~\dee{x}\\ &=\frac12\left(x - \frac{1}{2}\sin(2x) \right)+C \\&=\frac12\left(x -\sin x \cos x \right)+C \end{align*}
Q28Stage 2

Evaluate 1x3+1 dx\displaystyle\int \frac{1}{x^3+1}~\dee{x}.

Hint

x3+1=(x+1)(x2x+1)x^3+1 = (x+1)(x^2-x+1)

Answer

13logx+116logx2+x+1+13arctan(2x13)+C\displaystyle\frac{1}{3}\log|x+1| - \frac{1}{6}\log|x^2+x+1| + \frac{1}{\sqrt3}\arctan\left(\frac{2x-1}{\sqrt3}\right)+C

Full solution

We have the integral of a rational function with no obvious substitution, so we use partial fractions. That means we need to factor the denominator. We see that x=1x=-1 is a root of the denominator, so x+1x+1 is a factor. You might be able to figure out the rest of the factorization by inspection, or from having seen this common expression before; alternately, we can use long division.

Figure from prob_s1.13, line 1663

Figure from prob_s1.13, line 1663

Note x2x+1x^2-x+1 is an irreducible quadratic.

1x3+1=1(x+1)(x2x+1)=Ax+1+Bx+Cx2x+11=A(x2x+1)+(Bx+C)(x+1)\begin{align*}\frac{1}{x^3+1} &= \frac{1}{(x+1)(x^2-x+1)} = \frac{A}{x+1} + \frac{Bx+C}{x^2-x+1}\\ 1&=A(x^2-x+1)+(Bx+C)(x+1) \tag{$*$}\end{align*}

When x=1x=-1, we see 1=3A1=3A, so 13=A\frac{1}{3}=A. We plug this into (*).

1=13(x2x+1)+(Bx+C)(x+1)13x2+13x+23=Bx2+(B+C)x+C\begin{align*}1&=\textcolor{red}{\frac{1}{3}}(x^2-x+1)+(Bx+C)(x+1)\\ -\frac{1}{3}x^2+\frac{1}{3}x+\frac{2}{3}&=Bx^2+(B+C)x+C\end{align*}

Matching up coefficients of corresponding power of xx, we see B=13B = -\frac{1}{3} and C=23C = \frac{2}{3}.

1x3+1 dx=(1/3x+113x23x2x+1) dx\begin{align*}\int \frac{1}{x^3+1}~\dee{x}&=\int \left(\frac{\textcolor{red}{1/3}}{x+1} \textcolor{red}{-} \frac{\textcolor{red}{\frac{1}{3}}x-\textcolor{red}{\frac{2}{3}}}{x^2-x+1}\right)~\dee{x}\end{align*}

To integrate the second fraction, we break it up into two pieces: one we can integrate using the substitution u=x2x+1u=x^2-x+1, the other will look like the derivative of arctangent.

=13logx+113x1612x2x+1 dx=13logx+1162x1x2x+1 dx+121(x12)2+34 dx=13logx+116logx2x+1+12134((2x13)2+1) dx=13logx+116logx2x+1+231(2x13)2+1 dx\begin{align*}&=\frac{1}{3}\log|x+1| -\int\frac{\frac{1}{3}x-\frac{1}{6}-\frac{1}{2}}{x^2-x+1}~\dee{x} \\&=\frac{1}{3}\log|x+1| - \frac{1}{6}\int\frac{2x-1}{x^2-x+1}~\dee{x} + \frac{1}{2}\int \frac{1}{(x-\frac{1}{2})^2+\frac{3}{4}}~\dee{x} \\&=\frac{1}{3}\log|x+1| - \frac{1}{6}\log|x^2-x+1| + \frac{1}{2}\int\frac{1}{\frac{3}{4}\left(\left(\frac{2x-1}{\sqrt{3}}\right)^2+1\right)} ~\dee{x} \\&=\frac{1}{3}\log|x+1| - \frac{1}{6}\log|x^2-x+1| + \frac{2}{3}\int\frac{1}{\left(\frac{2x-1}{\sqrt{3}}\right)^2+1} ~\dee{x}\end{align*}

Let u=2x13u= \frac{2x-1}{\sqrt3}, du=23 dx\dee{u} = \frac{2}{\sqrt 3}~\dee{x}.

=13logx+116logx2x+1+131u2+1 dx=13logx+116logx2x+1+13arctan(2x13)+C\begin{align*}&=\frac{1}{3}\log|x+1| - \frac{1}{6}\log|x^2-x+1| + \frac{1}{\sqrt3}\int\frac{1}{u^2+1} ~\dee{x} \\&=\frac{1}{3}\log|x+1| - \frac{1}{6}\log|x^2-x+1| + \frac{1}{\sqrt3}\arctan\left(\frac{2x-1}{\sqrt3}\right)+C\end{align*}
Q29Stage 2

Evaluate (3x)2arcsinx dx\displaystyle\int (3x)^2\arcsin x ~\dee{x}.

Hint

You have the product of two quite dissimilar functions in the integrand–try integration by parts.

Answer

3x3arcsinx+31x2(1x2)3/2+C3x^3\arcsin x + 3\sqrt{1-x^2}-(1-x^2)^{3/2} + C

Full solution

By process of elimination, we decide to use integration by parts. We won't get anything better by antidifferentiating arcsine, so let's plan on differentiating it:

u=arcsinx dv=(3x)2dxdu=11x2dxv=3x3\begin{alignat*}{2} u&=\arcsin x~\qquad &\dee{v} &= (3x)^2\dee{x}\\ \dee{u}&=\dfrac{1}{\sqrt{1-x^2}}\dee{x} \qquad &v&=3x^3 \end{alignat*}
(3x)2arcsinxdx=arcsinxu3x3v3x3v11x2dxdu=3x3arcsinx3x31x2dx\begin{align*} \int (3x)^2\arcsin x \dee{x}&= \underbrace{\arcsin x}_{u}\cdot\underbrace{3x^3}_{v}-\int \underbrace{3x^3}_{v}\cdot \underbrace{\frac{1}{\sqrt{1-x^2}}\dee{x}}_{\dee{u}}\\ &=3x^3\arcsin x -\int \frac{3x^3}{\sqrt{1-x^2}}\dee{x} \end{align*}

So: we've gotten rid of the ugly pairing of arcsine with a polynomial, but now we're in another pickle. From here, two options present themselves. We could use the substitution u=1x2u=1-x^2, or we could use a trig substitution.

  • Let u=1x2u=1-x^2. Then 12du=dx-\frac{1}{2}\dee{u}=\dee{x}, and x2=1ux^2 = 1-u.

    (3x)2arcsinxdx=3x3arcsinx3x31x2dx=3x3arcsinx3x21x2x dx=3x3arcsinx+321uu du=3x3arcsinx+32(u1/2u1/2) du=3x3arcsinx+32(2u1/223u3/2)+C=3x3arcsinx+31x21x23+C\begin{align*} \int (3x)^2\arcsin x \dee{x}&= 3x^3\arcsin x -\int \frac{3x^3}{\sqrt{1-x^2}}\dee{x}\\ &=3x^3 \arcsin x - 3\int\frac{x^2}{\sqrt{1-x^2}}\cdot x~\dee{x} \\&=3x^3 \arcsin x + \frac{3}{2}\int\frac{1-u}{\sqrt{u}}~\dee{u} \\&=3x^3 \arcsin x + \frac{3}{2}\int\left(u^{-1/2} - u^{1/2}\right)~\dee{u} \\&=3x^3 \arcsin x + \frac{3}{2}\left(2u^{1/2} - \frac{2}{3}u^{3/2}\right)+C \\&=3x^3 \arcsin x + 3\sqrt{1-x^2} - \sqrt{1-x^2}^3+C \end{align*}
  • If we let x=sinθx=\sin\theta, then 1x2=cos2θ=cosθ\sqrt{1-x^2}=\sqrt{\cos^2\theta}=\cos\theta. So let's use the substitution x=sinθx=\sin\theta, dx=cosθdθ\dee{x}=\cos\theta \dee{\theta}.

    (3x)2arcsinxdx=3x3arcsinx3x31x2dx=3x3arcsinx3sin3θ1sin2θcosθdθ=3x3arcsinx3sin3θdθ\begin{align*}\int (3x)^2\arcsin x \dee{x}&= 3x^3\arcsin x -\int \frac{3x^3}{\sqrt{1-x^2}}\dee{x} \\ &=3x^3\arcsin x - \int \frac{3\sin^3\theta}{\sqrt{1-\sin^2\theta}}\cos\theta \dee{\theta} \\ &= 3x^3\arcsin x - \int {3\sin^3\theta \dee{\theta}}\end{align*}

    And now: a substitution from Section 1.8.1 of the CLP-2 text, u=cosxu=\cos x and du=sinxdx\dee{u}=-\sin x \dee{x}

    3x3arcsinx3sin3θdθ=3x3arcsinx3sin2θsinθdθ=3x3arcsinx3(1cos2θ)sinθdθ=3x3arcsinx+3(1u2)du=3x3arcsinx+3(u13u3)+C=3x3arcsinx+3uu3+C=3x3arcsinx+3cosθcos3θ+C\begin{align*}3x^3\arcsin x - \int {3\sin^3\theta \dee{\theta}}&=3x^3\arcsin x - 3\int\sin^2\theta \sin\theta \dee{\theta}\\ &=3x^3\arcsin x - 3\int(1-\cos^2\theta) \sin\theta \dee{\theta}\\ &=3x^3\arcsin x + 3\int(1-u^2)\dee{u}\\ &=3x^3\arcsin x + 3 \left(u-\frac{1}{3}u^3\right) + C\\ &=3x^3\arcsin x + 3u-u^3 + C\\ \hspace{2cm}&=3x^3\arcsin x + 3\cos\theta-\cos^3\theta + C\end{align*}

    Figure from prob_s1.9, line 1210

    Figure from prob_s1.9, line 1210

    Recall x=sinθx=\sin\theta; so we draw a triangle with angle θ\theta, opposite side xx, hypotenuse 1. Then by Pythagoras, adjacent side is 1x2\sqrt{1-x^2}, so cosθ=1x2\cos\theta = \sqrt{1-x^2}.

    =3x3arcsinx+31x2(1x2)3/2+C\begin{align*}&=3x^3\arcsin x + 3\sqrt{1-x^2}-(1-x^2)^{3/2} + C\end{align*}

3Stage 3Application

Further than practice: several ideas at once, or an unfamiliar situation.

Q30Stage 3

Evaluate 0π/2cost+1 dt\displaystyle\int_0^{\pi/2}\sqrt{\cos t+1}\ \dee{t}.

Hint

Use the identity cos(2x)=2cos2x1\cos(2x) = 2\cos^2x -1.

Answer

2

Full solution

We would like to not have that square root there. Luckily, there's a way of turning cosine into cosine squared: the identity cos(2x)=2cos2x1\cos(2x) = 2\cos^2x -1. If we take 2x=t2x=t, then cost=2cos2(t/2)1\cos t = 2\cos^2(t/2)-1.

0π/2cost+1 dt=0π/22cos2(t/2) dt=20π/2cos(t/2) dt\begin{align*}\int_0^{\pi/2}\sqrt{\cos t+1}\ \dee{t}&=\int_0^{\pi/2}\sqrt{2\cos^2 (t/2)}~\dee{t} = \sqrt{2}\int_0^{\pi/2} |\cos (t/2)|~\dee{t}\end{align*}

Over the interval [0,π2][0,\frac{\pi}{2}], cos(t/2)>0\cos (t/2) >0, so we can drop the absolute values.

=20π/2cos(t/2) dt=2[2sin(t2)]0π/2=22sin(π4)=2\begin{align*}&= \sqrt{2}\int_0^{\pi/2} \cos (t/2)~\dee{t} = \sqrt{2}\left[2\sin\left(\frac{t}{2}\right)\right]_0^{\pi/2}\\ &=2\sqrt{2}\sin\left(\frac{\pi}{4}\right) = {2}\end{align*}
Q31Stage 3

Evaluate 1elogxxdx\displaystyle\int_1^e \frac{\log\sqrt{x}}{{x}}\,\dee{x}.

Hint

Using logarithm rules can make the integrand simpler.

Answer

14\dfrac{1}{4}

Full solution
  • Using logarithm rules, logx=log(x1/2)=12logx\log\sqrt{x} = \log\left(x^{1/2}\right)=\frac{1}{2}\log x, so we can simplify:

    1elogxxdx=1elogx2xdx\int_1^e \frac{\log\sqrt{x}}{{x}}\dee{x} =\int_1^e \frac{\log{x}}{{2x}}\dee{x}

    We use the substitution u=logxu=\log x, du=1xdx\dee{u}=\frac{1}{x}\dee{x}:

    1elogx2xdx=121elog(x)u1xdxdu=12log(1)log(e)udu=1201udu=12[12u2]01=12[120]=14\begin{align*} \int_1^e \frac{\log{x}}{{2x}}\dee{x}&=\frac{1}{2}\int_1^e \underbrace{\log(x)}_{u}\cdot\underbrace{\frac{1}{x}\,\dee{x}}_{\dee{u}}\\ &=\frac{1}{2}\int_{\log(1)}^{\log(e)}u\,\dee{u}\\ &=\frac{1}{2}\int_{0}^{1}u\,\dee{u}\\ &=\frac{1}{2}\left[ \frac{1}{2}u^2\right]_0^1\\ &=\frac{1}{2}\left[\frac{1}{2}-0\right]=\dfrac{1}{4} \end{align*}
  • We use the substitution u=logxu=\log\sqrt{x}. Then dudx=1x12x=12x\dfrac{\dee{u}}{\dee{x}}=\dfrac{1}{\sqrt{x}}\cdot\dfrac{1}{2\sqrt{x}}=\dfrac{1}{2x}, hence 2du=1xdx2\dee{u}=\dfrac{1}{x}\dee{x}. This fits our integral nicely!

    1elogxxdx=log1logeu2du=[u2]01/2=(12)202=14\begin{align*} \int_1^e\frac{\log\sqrt{x}}{x}\dee{x} &= \int_{\log\sqrt{1}}^{\log\sqrt{e}}u\cdot 2\dee{u} \\ &=\Big[u^2\Big]_{0}^{1/2}\\ &=\left(\frac{1}{2}\right)^2-0^2=\frac{1}{4} \end{align*}
Q32Stage 3

Evaluate 0.10.2tanxlog(cosx)dx\displaystyle\int_{0.1}^{0.2} \frac{\tan x}{\log(\cos x)}\, \dee{x}.

Hint

What is the derivative of the function in the denominator? How could that be useful to you?

Answer

log(log(cos(0.1))log(cos(0.2)))\log\left(\dfrac{\log(\cos(0.1))}{\log(\cos(0.2))}\right)

Full solution
0.10.2tanxlog(cosx)dx\int_{0.1}^{0.2} \frac{\tan x}{\log(\cos x)} \dee{x}

It might not be immediately obvious how to proceed on this one, so this is another example of an integral where you should not be discouraged by finding methods that don't work. One thing that's worked for us in the past is to use a uu-substitution with the denominator. With that in mind, let's find the derivative of the denominator.

ddx{log(cosx)}=1cosx(sinx)=sinxcosx=tanx\diff{}{x}\left\{\log(\cos x)\right\}= \frac{1}{\cos x}\cdot (-\sin x) = \frac{-\sin x}{\cos x} = -\tan x

So, if we let u=log(cosxu=\log(\cos x), we see du=tanxdx-\dee{u}=\tan x \dee{x}, which will work for a substitution.

0.10.2tanxlog(cosx)dx=log(cos(0.1))log(cos(0.2))duu=[logu]log(cos(0.1))log(cos(0.2))=loglog(cos0.2)+loglog(cos0.1)=loglog(cos(0.1))log(cos(0.2))=log(log(cos(0.1))log(cos(0.2)))\begin{align*} \int_{0.1}^{0.2} \frac{\tan x}{\log(\cos x)} \dee{x}&= \int_{\log(\cos(0.1))}^{\log(\cos(0.2))} \frac{-\dee{u}}{u}\\ &=\Big[-\log|u|\Big]_{\log(\cos(0.1))}^{\log(\cos(0.2))} \\ &= -\log|\log(\cos 0.2)|+\log|\log(\cos 0.1)|\\ &={\log\left|\frac{\log(\cos(0.1))}{\log(\cos(0.2))}\right|}\\&= \log\left(\frac{\log(\cos(0.1))}{\log(\cos(0.2))}\right) \end{align*}

Things to notice: the integrand is only defined when log(cosx)\log(\cos x) exists AND is nonzero. So, for instance, it is not defined when x=0x=0, because then logcosx=log1=0\log\cos x = \log1=0, and we can't divide by zero.

In the final simplification, since 0.10.1 and 0.20.2 are between 0 and π/2\pi/2, the cosine term is positive but less than one, so log(cos0.1)\log(\cos 0.1) and log(cos0.2)\log(\cos 0.2) are both negative; then their quotient is positive, so we can drop the absolute value signs.

Using the base change formula, we can also write the final answer as log(logcos(0.2)cos(0.1))\log\left(\log_{\cos (0.2)}\cos(0.1)\right).

Q33Stage 3Past exam · M105 2012A

Evaluate these integrals.

  1. sin(logx) dx\displaystyle\int\sin(\log x) \ \dee{x}

  2. 011x25x+6 dx\displaystyle\int_0^1\frac{1}{x^2-5x+6}\ \dee{x}

Hint

For part (a), the substitution u=logxu=\log x gives an integral that you have seen before.

Answer

(a) 12x[sin(logx)cos(logx)]+C\displaystyle \frac{1}{2} x \big[\sin(\log x) -\cos(\log x)\big]+C (b) 2log2log3=log432\log 2 -\log 3 = \log\frac{4}{3}

Full solution

(a) Without any other ideas, we see we have a compound function–a function of a function. We often find it useful to substitute for the “inside" function. So, we substitute u=logxu=\log x, du=1xdx\dee{u}=\frac{1}{x}\,\dee{x}. Then dx=xdu=eudu\dee{x} = x\,\dee{u}= e^u\,\dee{u}.

sin(logx) dx=sin(u) eu du\begin{align*} \int\sin(\log x) \ \dee{x} &=\int\sin(u)\ e^u\ \dee{u} \end{align*}

We have already seen, in Example 1.7.11 of the CLP-2 text, that

sin(u) eu du=12eu(sinucosu)+C\begin{equation*} \int\sin(u)\ e^u\ \dee{u} =\frac{1}{2}e^u\big(\sin u -\cos u\big)+C \end{equation*}

So,

sin(logx) dx=12x[sin(logx)cos(logx)]+C\begin{equation*} \int\sin(\log x)\ \dee{x} =\frac{1}{2} x \big[\sin(\log x) -\cos(\log x)\big]+C \end{equation*}

(b) The integrand is of the form N(x)/D(x)N(x)/D(x) with N(x)N(x) of lower degree than D(x)D(x). So we factor D(x)=(x2)(x3)D(x)=(x-2)(x-3) and look for a partial fractions decomposition:

1(x2)(x3)=Ax2+Bx3.\begin{equation*} \frac{1}{(x-2)(x-3)} = \frac{A}{x-2} + \frac{B}{x-3}. \end{equation*}

Multiplying through by the denominator yields

1=A(x3)+B(x2)\begin{align*} 1 &= A(x-3) + B(x-2) \end{align*}

Setting x=2x=2 we find:

1=A(23)+0    A=1\begin{align*} 1 = A(2-3) + 0 \implies\color{red} A = -1 \end{align*}

Setting x=3x=3 we find:

1=0+B(32)    B=1\begin{align*} 1 = 0 + B(3-2) \implies \color{red} B = 1 \end{align*}

So we have found that A=1A=-1 and B=1B=1. Therefore

1(x2)(x3) dx=(1x31x2)dx=logx3logx2+C\begin{align*} \int\frac{1}{(x-2)(x-3)}\ \dee{x} &= \int \bigg( \frac{1}{x-3} - \frac{1}{x-2} \bigg) \,\dee{x} \\ &= \log |x-3| - \log|x-2| + C \end{align*}

and the definite integral

011(x2)(x3) dx=[logx3logx2]01=[log2log1][log3log2]=2log2log3=log43\begin{align*} \int_0^1\frac{1}{(x-2)(x-3)}\ \dee{x} &= \Big[\log |x-3| - \log|x-2|\Big]_0^1 \\ &= \big[\log 2 - \log 1\big]-\big[\log 3 - \log 2\big] \\ &= 2\log 2 -\log 3 = \log\frac{4}{3} \end{align*}
Q34Stage 3Past exam · M121 2012A

Evaluate (with justification).

  1. 03(x+1)9x2 dx\displaystyle\int_0^3(x+1)\sqrt{9-x^2} \ \dee{x}

  2. 4x+8(x2)(x2+4) dx\displaystyle\int\frac{4x+8}{(x-2)(x^2+4)}\ \dee{x}

  3. +1ex+ex dx\displaystyle\int_{-\infty}^{+\infty} \frac{1}{e^x+e^{-x}}\ \dee{x}

Hint

For part (a), split the integral in two. One part may be evaluated by interpreting it geometrically, without doing any integration at all. For part (c), multiply both the numerator and denominator by exe^x and then make a substitution.

Answer

(a) 94π+9\displaystyle\frac{9}{4}\pi + 9 (b) 2logx2log(x2+4)+C\displaystyle2 \log |x-2| - \log (x^2 + 4) + C (c) π2\displaystyle\frac{\pi}{2}

Full solution

(a) If we expand the integrand, one part of it is quite familiar–a portion of a circle. So, we split the specified integral in two.

03(x+1)9x2 dx=039x2 dx+03x9x2 dx\begin{equation*} \int_0^3(x+1)\sqrt{9-x^2} \ \dee{x} = \int_0^3\sqrt{9-x^2} \ \dee{x} +\int_0^3x\sqrt{9-x^2} \ \dee{x} \end{equation*}

The first piece represents the area above the xx–axis and below the curve y=9x2y=\sqrt{9-x^2}, i.e. x2+y2=9x^2+y^2=9, with 0x30\le x\le 3. That's the area of one quadrant of a disk of radius 33. So

039x2 dx=14(π32)=94π\begin{equation*} \int_0^3\sqrt{9-x^2} \ \dee{x} =\frac{1}{4}(\pi \cdot 3^2) = \frac{9}{4}\pi \end{equation*}

For the second part, we substitute u=9x2u=9-x^2, du=2xdx\dee{u}= -2x\,\dee{x}. Note u(0)=9u(0)=9 and u(3)=0u(3)=0. So,

03x9x2 dx=90u du2=12[u3/23/2]90=12[273/2]=9\begin{align*} \int_0^3x\sqrt{9-x^2} \ \dee{x} = \int_9^0\sqrt{u} \ \frac{\dee{u}}{-2} =-\frac{1}{2}\left[\frac{u^{3/2}}{3/2}\right]_9^0 =-\frac{1}{2}\left[-\frac{27}{3/2}\right] =9 \end{align*}

All together,

03(x+1)9x2 dx=94π+9\begin{equation*} \int_0^3(x+1)\sqrt{9-x^2} \ \dee{x} = \frac{9}{4}\pi + 9 \end{equation*}

(b) The integrand is of the form N(x)/D(x)N(x)/D(x) with D(x)D(x) already factored and N(x)N(x) of lower degree. We immediately look for a partial fractions decomposition:

4x+8(x2)(x2+4)=Ax2+Bx+Cx2+4.\begin{equation*} \frac{4x+8}{(x-2)(x^2+4)} = \frac{A}{x-2} + \frac{Bx+C}{x^2+4}. \end{equation*}

Multiplying through by the denominator yields

4x+8=A(x2+4)+(Bx+C)(x2)\begin{align} 4x+8 &= A(x^2+4) + (Bx+C)(x-2) \tag{$*$} \end{align}

Setting x=2x=2 we find:

8+8=A(4+4)+0    16=8A    A=2\begin{align*} 8 +8 = A(4 + 4) + 0 \implies 16 =8A \implies\color{red} A = 2 \end{align*}

Substituting A=2A=2 in ()(*) gives

4x+8=A(x2+4)+(Bx+C)(x2)    2x2+4x=(x2)(Bx+C)    (2x)(x2)=(Bx+C)(x2)    B=2, C=0\begin{alignat*}{2} &&4x+8 &= A(x^2+4) + (Bx+C)(x-2) \\ &\implies & -2x^2+4 x &=(x-2)(Bx + C) \\ &\implies\qquad & (-2x)(x-2)&=(Bx + C)(x-2) \\ & \implies& \color{red} B& \color{red} =-2,~C=0 \end{alignat*}

So we have found that A=2A=2, B=2B=-2, and C=0C=0. Therefore

4x+8(x2)(x2+4) dx=(2x22xx2+4)dx=2logx2log(x2+4)+C\begin{align*} \int\frac{4x+8}{(x-2)(x^2+4)}\ \dee{x} &= \int \bigg( \frac{\textcolor{red}2}{x-2} \textcolor{red}- \frac{\textcolor{red}2x}{x^2+4} \bigg) \,\dee{x} \\ &= 2 \log |x-2| - \log (x^2 + 4) + C \end{align*}

Here the second integral was found just by guessing an antiderivative. Alternatively, one could use the substitution u=x2+4u=x^2+4, du=2xdx\dee{u}=2x\,\dee{x}.

(c) The given integral is improper, but only because of its infinite limits of integration. (The integrand is continuous for all real numbers.) So, we'll have to take two limits. Before we do that, though, let's find the antiderivative. We would like to use the substitution u=exu=e^x, du=ex dx\dee{u}=e^x~\dee{x}. That is, 1u du=dx\frac{1}{u}~\dee{u} = \dee{x}.

1ex+ex dx=1u(u+1u) du=1u2+1=arctanu+C=arctan(ex)+C\begin{align*}\int \frac{1}{e^x+e^{-x}}~\dee{x}&=\int \frac{1}{u(u+\frac{1}{u})}~\dee{u} = \int\frac{1}{u^2+1} = \arctan u+C \\&=\arctan(e^x)+C\end{align*}

Now we can deal with the limits of integration.

1ex+ex dx=01ex+ex dx+01ex+ex dx=lima[a01ex+ex dx]+limb[0b1ex+ex dx]=lima[arctan(ex)]a0+limb[arctan(ex)]0b=lima[arctan(e0)arctan(ea)]+limb[arctan(eb)arctan(e0)]=lima[arctan(ea)]+limb[arctan(eb)]=arctan(0)+π2=π2\begin{align*}\int _{ -\infty}^\infty\frac{1}{e^x+e^{-x}}~\dee{x}&= \int _{ -\infty}^0\frac{1}{e^x+e^{-x}}~\dee{x}+ \int _{ 0}^\infty\frac{1}{e^x+e^{-x}}~\dee{x}\\&= \lim_{a \to -\infty}\left[\int_{a}^0\frac{1}{e^x+e^{-x}}~\dee{x}\right]+ \lim_{b \to \infty}\left[\int_{ 0}^b\frac{1}{e^x+e^{-x}}~\dee{x}\right]\\&= \lim_{a \to -\infty}\big[\arctan(e^x)\big]_a^0+ \lim_{b \to \infty}\big[\arctan(e^x)\big]_0^b\\&= \lim_{a \to -\infty}\big[\arctan(e^0)-\arctan(e^a)\big]+ \lim_{b \to \infty}\big[\arctan(e^b)-\arctan(e^0)\big]\\&= \lim_{a \to -\infty}\big[-\arctan(e^a)\big]+ \lim_{b \to \infty}\big[\arctan(e^b)\big]\\ &=-\arctan(0)+\frac{\pi}{2} = \frac{\pi}{2}\end{align*}
Q35Stage 3

Evaluate x1x dx\displaystyle\int \sqrt{\frac{x}{1-x}}~\dee{x}.

Hint

Let u=1xu=\sqrt{1-x}.

Answer

arcsin(1x)1xx+C-\arcsin (\sqrt{1-x})-\sqrt{1-x}\sqrt{x}+C

Full solution

It's not immediately clear where to start, but a common method we've seen is to use the denominator in a uu-substitution, especially when square roots are involved.

Let u=1xu = \sqrt{1-x}, du=121xdx\dee{u} = -\frac{1}{2\sqrt{1-x}}\dee{x}. Then u2=1xu^2=1-x, so x=1u2x = 1-u^2.

x1x dx=2x21x dx=21u2 du\begin{align*}\int \sqrt{\frac{x}{1-x}}~\dee{x}&=2\int \frac{\sqrt{x}}{2\sqrt{1-x}}~\dee{x} =- 2\int\sqrt{1-u^2}~\dee{u}\end{align*}

Now we're back in familiar territory. Let u=sinθu=\sin \theta, du=cosθ dθ\dee{u}=\cos \theta~\dee{\theta}.

=21sin2θcosθ dθ=2cos2θ dθ=(1+cos(2θ)) dθ=θ12sin(2θ)+C=θsinθcosθ+C=arcsinuu1u2+C=arcsin(1x)1xx+C\begin{align*}&=-2\int\sqrt{1-\sin^2 \theta }\cos\theta~\dee{\theta}\\ &=-2\int\cos^2\theta~\dee{\theta}\\ &=-\int \big(1+\cos(2\theta)\big)~\dee{\theta}\\ &=-\theta - \frac{1}{2}\sin(2\theta)+C\\ &=-\theta - \sin\theta\cos\theta+C\\ &=-\arcsin u - u\sqrt{1-u^2}+C \tag{$*$}\\ \hspace{2cm}&=-\arcsin (\sqrt{1-x})-\sqrt{1-x}\sqrt{x}+C\end{align*}

Figure from prob_s1.13, line 2086

Figure from prob_s1.13, line 2086

In (*), to convert from θ\theta to uu, our substitution u=sinθu=\sin\theta tells us θ=arcsinu\theta = \arcsin u. To find cosθ\cos \theta, we can either trace our work backwards to see that we already simplified 1u2\sqrt{1-u^2} into cosθ\cos\theta, or we can draw a right triangle with angle θ\theta and sinθ=u\sin \theta=u, then use the Pythagorean theorem to find the length of the adjacent side of the triangle and cosθ\cos\theta.

Q36Stage 3

Evaluate 01e2xeexdx\displaystyle\int_0^1e^{2x}e^{e^x}\,\dee{x}.

Hint

Use the substitution u=exu=e^x.

Answer

ee(e1)e^e(e-1)

Full solution

Let's use the substitution u=exu=e^x. There are a few reasons to think this is a good choice. It's an “inside function," in that if we let f(x)=exf(x)=e^x, then f(ex)=eexf(e^x)=e^{e^x}, which is a piece of our integrand. Also its derivative, exe^x, is multiplied by the rest of the integrand, since e2x=exexe^{2x}=e^x\cdot e^x .

Let u=exu=e^x, du=exdx\dee{u} = e^x\dee{x}. When x=0x=0, u=1u=1, and when x=1x=1, u=eu=e.

01e2xeexdx=01exeexexdx=1eueu du\begin{align*}\displaystyle\int_0^1e^{2x}e^{e^x}\dee{x} &= \int_0^1e^{x}e^{e^x}e^x\dee{x} =\int_1^e ue^u~\dee{u}\end{align*}

This is more familiar. We use integration by parts with dv=eu du\dee{v} = e^u~\dee{u}, v=euv=e^u. Conveniently, the “uu" we brought in with the substitution is what we want to use for the “uu" in integration by parts, so we don't have to change the names of our variables.

=[ueu]1e1eeu du=eeeeee+e=ee(e1)\begin{align*}&=\big[ue^u\big]_1^e - \int_1^e e^u~\dee{u}\\ &=e\cdot e^e-e-e^e+e=e^e(e-1)\end{align*}
Q37Stage 3

Evaluate xex(x+1)2 dx\displaystyle\int\frac{xe^x}{(x+1)^2}~\dee{x}.

Hint

Use integration by parts. If you choose your parts well, the resulting integration will be very simple.

Answer

exx+1+C\displaystyle\frac{e^x}{x+1}+C

Full solution

The substitution u=x+1u=x+1 looks promising at first, but doesn't result in something easily integrable. We can't use partial fractions because our integration isn't rational. This doesn't look like something from the trig-substitution family. So, let's think about integration by parts. There's a lot of different ways we could break up the integrand into two parts. For example, we could view it as (x(x+1)2)(ex)\Big(\frac{x}{(x+1)^2}\Big)\Big(e^x\Big), or we could view it as (xx+1)(exx+1)\Big(\frac{x}{x+1}\Big)\Big(\frac{e^x}{x+1}\Big). After some trial and error, we settle on u=xexu=xe^x and dv=(x+1)2 dx\dee{v}=(x+1)^{-2}~\dee{x}. Then du=ex(x+1)\dee{u}=e^x(x+1) and v=1x+1v=\frac{-1}{x+1}.

xex(x+1)2 dx=xexx+1+ex(x+1)x+1dx=xexx+1+exdx=xexx+1+ex+C=exx+1+C\begin{align*} \int\frac{xe^x}{(x+1)^2}~\dee{x}&=-\frac{xe^x}{x+1} +\int \frac{e^x(x+1)}{x+1}\dee{x} \\&=-\frac{xe^x}{x+1} +\int e^x\dee{x}\\ &=-\frac{xe^x}{x+1}+e^x+C \\&= \frac{e^x}{x+1}+C \end{align*}
Q38Stage 3

Evaluate xsinxcos2xdx\displaystyle\int \frac{x\sin x}{\cos^2 x}\,\dee{x}.

You may use that secxdx=logsecx+tanx+C\int \sec x\dee{x} = \log|\sec x+\tan x| +C.

Hint

sinxcos2x=tanxsecx\frac{\sin x}{\cos^2 x} = \tan x \sec x

Answer

xsecxlogsecx+tanx+C\displaystyle x\sec x - \log|\sec x + \tan x|+C

Full solution

It would be nice to use integration by parts with u=xu=x, because then we would integrate v du\int v~\dee{u}, and du=dx\dee{u} = \dee{x}. That is, the xx would go away, and we'd be left with a pure trig integral. If we use u=xu=x, then dv=sinxcos2x\dee{v} = \frac{\sin x}{\cos^2 x}. We need to find vv:

v=sinxcos2x dx=tanxsecx dx=secx\begin{align*}v&=\int \frac{\sin x}{\cos^2 x}~\dee{x} = \int \tan x \sec x~\dee{x} = \sec x\end{align*}

Now we use integration by parts.

xsinxcos2xdx=xsecxsecx dx=xsecxlogsecx+tanx+C\begin{align*}\int \frac{x\sin x}{\cos^2 x}\dee{x}&=x\sec x - \int \sec x ~\dee{x}= x\sec x - \log|\sec x + \tan x|+C\end{align*}
Q39Stage 3

Evaluate x(x+a)n dx\displaystyle\int x(x+a)^n~\dee{x}, where aa and nn are constants.

Hint

The cases n=1n=-1 and n=2n=-2 are different from all other values of nn.

Answer

x(x+a)n dx={(x+a)(n+2)n+2a(x+a)n+1n+1+C if n1,2(x+a)alogx+a+C if n=1logx+a+ax+a+C if n=2\displaystyle\int x(x+a)^n~\dee{x}=\begin{cases} \frac{(x+a)^{(n+2)}}{n+2}-a\frac{(x+a)^{n+1}}{n+1}+C&\text{ if } n \neq -1,-2\\ (x+a)-a\log|x+a|+C & \text{ if } n=-1\\ \log|x+a| + \frac{a}{x+a}+C& \text{ if } n=-2 \end{cases}

Full solution

If the unknown exponent gives you the jitters, think about what this looks like in easier cases. If nn is a whole number, the integrand is a polynomial. Not so scary, right? However, it's a little complicated to expand. (You can do it using the very handy binomial theorem.) Let's think of an easier way.

If we had simply the variable xx raised to the power nn, rather than the binomial x+ax+a, that might be nicer. So, let's use the substitution u=x+au=x+a, du=dx\dee{u}=\dee{x}. Note x=uax=u-a.

x(x+a)n dx=(ua)un dx=(un+1aun) du\begin{align*}\int x(x+a)^n~\dee{x}&=\int (u-a)u^n~\dee{x} = \int \big(u^{n+1}-au^n\big)~\dee{u}\end{align*}

Now, if n1n\neq -1 and n2n \neq -2, we can just use the power rule:

=u(n+2)n+2aun+1n+1+C=(x+a)(n+2)n+2a(x+a)n+1n+1+C\begin{align*}&=\frac{u^{(n+2)}}{n+2}-a\frac{u^{n+1}}{n+1}+C\\ &=\frac{(x+a)^{(n+2)}}{n+2}-a\frac{(x+a)^{n+1}}{n+1}+C\end{align*}

If n=1n=-1, then

x(x+a)n dx=(un+1aun) du=(1au) du=ualogu+C=(x+a)alogx+a+C\begin{align*}\int x(x+a)^n~\dee{x}&=\int \big(u^{n+1}-au^n\big)~\dee{u} =\int \left(1 - \frac{a}{u}\right)~\dee{u} \\&= u - a\log|u|+C = (x+a)-a\log|x+a|+C\end{align*}

If n=2n=-2, then

x(x+a)n dx=(un+1aun) du=(1uau2) du=logu+au+C=logx+a+ax+a+C\begin{align*}\int x(x+a)^n~\dee{x}&=\int \big(u^{n+1}-au^n\big)~\dee{u}=\int\left( \frac{1}{u} - au^{-2}\right)~\dee{u} \\& = \log|u| + \frac{a}{u}+C= \log|x+a| + \frac{a}{x+a}+C\end{align*}

All together,

x(x+a)n dx={(x+a)(n+2)n+2a(x+a)n+1n+1+C if n1,2(x+a)aloga+x+C if n=1logx+a+ax+a+C if n=2\begin{align*}\int x(x+a)^n~\dee{x}&=\begin{cases} \frac{(x+a)^{(n+2)}}{n+2}-a\frac{(x+a)^{n+1}}{n+1}+C&\text{ if } n \neq -1,-2\\ (x+a)-a\log|a+x|+C & \text{ if } n=-1\\ \log|x+a| +\frac{a}{x+a}+C& \text{ if } n=-2 \end{cases}\end{align*}
Q40Stage 3

Evaluate arctan(x2) dx\displaystyle\int\arctan (x^2)~\dee{x}.

Hint

x4+1=(x2+2x+1)(x22x+1)x^4+1 = (x^2+\sqrt2x+1)(x^2-\sqrt2x+1)

Answer

xarctan(x2)12(12logx22x+1x2+2x+1+arctan(2x+1)+arctan(2x1))+Cx\arctan(x^2) - \frac{1}{\sqrt 2}\Bigg( \frac{1}{2}\log\left|\tfrac{x^2-\sqrt2x+1}{ x^2+\sqrt2x+1}\right| +\arctan\left(\sqrt{2}x+1\right)+ \arctan\left(\sqrt{2}x-1\right) \Bigg)+C

Full solution

We've seen how to antidifferentiate arctanx\arctan x: integration by parts. Let's hope the same thing will work here.

Step 1: integration by parts.
Let u=arctan(x2)u=\arctan(x^2) and dv=dx\dee{v} = \dee{x}. Then du=2xx4+1 du\dee{u} = \frac{2x}{x^4+1}~\dee{u} and v=xv=x.

arctan(x2) dx=xarctan(x2)2x2x4+1 dx\begin{align*} \int\arctan (x^2)~\dee{x}&=x\arctan(x^2) - \int \frac{2x^2}{x^4+1}~\dee{x} \end{align*}

Now we have a rational function. There's no obvious substitution, but we can use partial fractions. The degree of the numerator is strictly less than the degree of the denominator, so we don't need to long divide first. We do, however, need to factor the denominator. It's a common function, so you might already know the factorization, or you might be able to guess it. Below, we show another way to find the factorization, similar to the method of partial fractions.

Step 2: factor x4+1\mathbf{x^4+1}.
For any real xx, note x4+1>0x^4+1 >0. Since it has no roots, it has no linear factors. That means it factors as the product of two irreducible quadratics. That is,

x4+1=(ax2+bx+c)(dx2+ex+f)\begin{align*}x^4+1&=(ax^2+bx+c)(dx^2+ex+f)\end{align*}

Since the coefficient of x4x^4 on the left-hand is 1, we may assume a=d=1a=d=1.

x4+1=(x2+bx+c)(x2+ex+f)\begin{align*}x^4+1&=(x^2+bx+c)(x^2+ex+f)\end{align*}

Since the constant term is 1, cf=1cf=1. That is, f=1cf = \frac{1}{c}.

x4+1=(x2+bx+c)(x2+ex+1/c)=x4+((b+e)(1)x3+(1c+be+c)(3)x2+(bc+ec)(2)x+1\begin{align*}x^4+1&=(x^2+bx+c)(x^2+ex+1/c)\\ &=x^4 + \underbrace{\vphantom{\bigg(}(b+e)}_{(1)}x^3+\underbrace{\left(\frac{1}{c}+be+c\right)}_{(3)}x^2+\underbrace{\left(\frac{b}{c}+ec\right)}_{(2)}x+1\end{align*}
  • The coefficient of x3x^3 tells us e=be=-b.

  • Then the coefficient of xx tells us 0=bc+ec=bcbc0=\frac{b}{c}+ec = \frac{b}{c}-bc. So, c=1cc = \frac{1}{c}, hence c=±1c=\pm 1.

  • Finally, the coefficient of x2x^2 tells us 0=1c+be+c=1cb2+c0=\frac{1}{c}+be + c = \frac{1}{c}-b^2+c. Since b2-b^2 is negative (or zero), 1c+c\frac{1}{c}+c is positive, so c=1c=1. That is, 0=1b2+10=1-b^2+1. So, b=2b = \sqrt{2}.

All together,

x4+1=(x2+2x+1)(x22x+1)x^4+1 = (x^2+\sqrt{2}x+1)(x^2-\sqrt{2}x+1)

Step 3: partial fraction decomposition.
Now that we have the denominator factored into irreducible quadratics, we can find the partial fraction decomposition of the integrand.

2x2x4+1=Ax+Bx2+2x+1+Cx+Dx22x+12x2=(Ax+B)(x22x+1)+(Cx+D)(x2+2x+1)=(A+C)x3+(B+D2A+2C)x2+(A+C2B+2D)x+(B+D)\begin{align*}\frac{2x^2}{x^4+1}&=\frac{Ax+B}{x^2+\sqrt2x+1} + \frac{Cx+D}{x^2-\sqrt2x+1}\\ 2x^2&=(Ax+B)(x^2-\sqrt2x+1)+(Cx+D)(x^2+\sqrt2x+1) \\& = (A+C)x^3+(B+D-\sqrt{2}A+\sqrt2C)x^2+(A+C-\sqrt2B+\sqrt2D)x+(B+D)\end{align*}

From the coefficient of x3x^3, we see C=AC=-A.

2x2=(B+D22A)x2+(2B+2D)x+(B+D)\begin{align*}2x^2&= (B+D-2\sqrt{2}A)x^2+(-\sqrt2B+\sqrt2D)x+(B+D)\end{align*}

From the constant term, we see D=BD=-B.

2x2=(22A)x2+(22B)x\begin{align*}2x^2&= (-2\sqrt{2}A)x^2+(-2\sqrt2B)x\end{align*}

From the coefficient of x2x^2, we see 22A=2-2\sqrt{2}A=2, so A=1/2A=-1/\sqrt{2}. Since C=AC=-A, then C=1/2C = 1/\sqrt2.

From the coefficient of xx, we see B=0B=0. Since D=BD=-B, also D=0D=0.

Step 4: integration.

2x2x4+1 dx=((1/2)xx2+2x+1+(1/2)xx22x+1) dx=12(xx2+2x+1+xx22x+1) dx\begin{align*}\int&\frac{2x^2}{x^4+1}~\dee{x} =\int\left(\frac{(\textcolor{red}{-1/\sqrt2}) x }{x^2+\sqrt2x+1}+\frac{(\textcolor{red}{1/\sqrt2})x}{x^2-\sqrt2x+1}\right)~\dee{x} \\&=\frac{1}{\sqrt 2}\int\left(\frac{- x }{x^2+\sqrt2x+1}+\frac{x}{x^2-\sqrt2x+1}\right)~\dee{x}\end{align*}

To integrate, we want to break the fractions into two pieces each: one we can integrate with a substitution u=x2±2x+1u=x^2\pm\sqrt2x+1 , du=(2x±2)dx\dee{u} =\big( 2x\pm \sqrt{2}\big)\dee{x} (shown in blue), and one that looks like the derivative of arctangent (shown in red).

=12(x22+22x2+2x+1+x22+22x22x+1) dx=12(12(2x+2)x2+2x+1+22x2+2x+1+12(2x2)x22x+1+22x22x+1) dx=12(12logx2+2x+1+22x2+2x+1 dx+12logx22x+1+22x22x+1dx)\begin{align*}&=\frac{1}{\sqrt 2}\int\left(\frac{\textcolor{blue}{- x -\frac{\sqrt 2}{2}} +\textcolor{red}{\frac{\sqrt2}{2}}}{x^2+\sqrt2x+1}+\frac{\textcolor{blue}{x-\frac{\sqrt2}{2}}+\textcolor{red}{\frac{\sqrt2}{2}}}{x^2-\sqrt2x+1}\right)~\dee{x} \\&=\frac{1}{\sqrt 2} \int\left(\textcolor{blue}{\frac{-\frac{1}{2}(2 x +{\sqrt 2})}{x^2+\sqrt2x+1}} +\textcolor{red}{\frac{\frac{\sqrt2}{2}}{x^2+\sqrt2x+1}}+\textcolor{blue}{\frac{\frac{1}{2}(2x-\sqrt2)}{x^2-\sqrt2x+1}}+\textcolor{red}{\frac{\frac{\sqrt2}{2}}{x^2-\sqrt2x+1}}\right)~\dee{x} \\&=\frac{1}{\sqrt 2}\Bigg(\textcolor{blue}{ -\frac{1}{2}\log\left| x^2+\sqrt2x+1\right|} +\textcolor{red}{\int\frac{\frac{\sqrt2}{2}}{x^2+\sqrt2x+1}~\dee{x}}\\ &\qquad+ \textcolor{blue}{\frac{1}{2}\log|x^2-\sqrt2x+1|} +\textcolor{red}{ \int \frac{\frac{\sqrt2}{2}}{x^2-\sqrt2x+1}\dee{x}} \Bigg)\end{align*}

We use logarithm rules to compress our work. In order to evaluate the remaining integrals, we complete the squares of the denominators.

=12(12logx22x+1x2+2x+1+22(x+12)2+12 dx+22(x12)2+12dx)=12(12logx22x+1x2+2x+1+2(2x+1)2+1 dx+2(2x1)2+1dx)\begin{align*}&=\frac{1}{\sqrt 2}\Bigg(\textcolor{blue}{ \frac{1}{2}\log\left|\tfrac{x^2-\sqrt2x+1}{ x^2+\sqrt2x+1}\right|} +\textcolor{red}{\int\frac{\frac{\sqrt2}{2}}{\left(x+\frac{1}{\sqrt2}\right)^2+\frac{1}{2}}~\dee{x}}+ \textcolor{red}{\int \frac{\frac{\sqrt2}{2}}{\left(x-\frac{1}{\sqrt2}\right)^2+\frac{1}{2}}\dee{x}} \Bigg) \\&=\frac{1}{\sqrt 2}\Bigg( \textcolor{blue}{\frac{1}{2}\log\left|\tfrac{x^2-\sqrt2x+1}{ x^2+\sqrt2x+1}\right|} +\textcolor{red}{\int\frac{{\sqrt2}}{\left(\sqrt{2}x+1\right)^2+1}~\dee{x}}+ \textcolor{red}{ \int \frac{{\sqrt2}}{\left(\sqrt{2}x-1\right)^2+1}\dee{x}} \Bigg)\end{align*}

Now, we can either guess the antiderivatives of the remaining integrals, or use the substitutions u=(2x±1)u=(\sqrt{2}x\pm1).

=12(12logx22x+1x2+2x+1+arctan(2x+1)+arctan(2x1))+C\begin{align*}&=\frac{1}{\sqrt 2}\Bigg( \textcolor{blue}{\frac{1}{2}\log\left|\tfrac{x^2-\sqrt2x+1}{ x^2+\sqrt2x+1}\right|} +\textcolor{red}{\arctan\left(\sqrt{2}x+1\right)}+\textcolor{red}{ \arctan\left(\sqrt{2}x-1\right)} \Bigg)+C\end{align*}

Step 5: finishing touches.
Finally, we can put our work together. (Remember way back in Step 1, we used integration by parts.)

arctan(x2) dx=xarctan(x2)2x2x41 dx= xarctan(x2)12(12logx22x+1x2+2x+1+arctan(2x+1)+arctan(2x1))+C\begin{align*} \int& \arctan(x^2)~\dee{x} = x\arctan(x^2) - \int \frac{2x^2}{x^4-1}~\dee{x}\\ &=~x\arctan(x^2) - \frac{1}{\sqrt 2}\Bigg( \frac{1}{2}\log\left|\tfrac{x^2-\sqrt2x+1}{ x^2+\sqrt2x+1}\right| +\arctan\left(\sqrt{2}x+1\right)+ \arctan\left(\sqrt{2}x-1\right) \Bigg)+C \end{align*}

Remark: although this integral calculation was longer than average, it didn't use any new ideas (except for the factoring of x4+1x^4+1 mentioned in the hint). It's good exercise to apply familiar techniques in challenging situations, to deepen your mastery.

My list

nothing marked yet

Loading…

Open the whole list →

Your tutor can open this list with you. It follows your account, so it is there on whichever device you study on.

From the UBC Math 101 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.