When the basic table is not enough

Sooner or later you meet an inte­gral that none of the basic for­mu­las fit. Usu­ally it matches a spe­cial form, or it gives way to a spe­cial method. We will learn the stan­dard forms involv­ing x2±a2x^2 \pm a^2, break ratio­nal func­tions into par­tial frac­tions, and inte­grate prod­ucts by parts, includ­ing one handy short­cut, ∫ex(f+f′) dx\displaystyle \int e^x(f + f')\,dx.

Spe­cial forms

∫dxx2−a2=12alog⁡∣x−ax+a∣,∫dxa2−x2=12alog⁡∣a+xa−x∣,∫dxx2+a2=1atan⁡−1xa\displaystyle \int\frac{dx}{x^2 - a^2} = \frac{1}{2a}\log\left\lvert\frac{x - a}{x + a}\right\rvert, \quad \int\frac{dx}{a^2 - x^2} = \frac{1}{2a}\log\left\lvert\frac{a + x}{a - x}\right\rvert, \quad \int\frac{dx}{x^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{x}{a}
∫dxx2±a2=log⁡∣x+x2±a2∣,∫dxa2−x2=sin⁡−1xa\displaystyle \int\frac{dx}{\sqrt{x^2 \pm a^2}} = \log\left\lvert x + \sqrt{x^2 \pm a^2}\right\rvert, \quad \int\frac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}\frac{x}{a}
∫a2−x2 dx=x2a2−x2+a22sin⁡−1xa\displaystyle \int\sqrt{a^2 - x^2}\,dx = \frac{x}{2}\sqrt{a^2 - x^2} + \frac{a^2}{2}\sin^{-1}\frac{x}{a}

Add +C+ C to each. When­ever you see a qua­dratic in the denom­i­na­tor or under a root, your first move should be to com­plete the square.

Exam­ple 1. ∫dxx2+6x+13=∫dx(x+3)2+4=12tan⁡−1x+32+C\displaystyle \int\frac{dx}{x^2 + 6x + 13} = \int\frac{dx}{(x + 3)^2 + 4} = \tfrac{1}{2}\tan^{-1}\tfrac{x + 3}{2} + C.

Exam­ple 2. ∫dx8+2x−x2=∫dx9−(x−1)2=sin⁡−1x−13+C\displaystyle \int\frac{dx}{\sqrt{8 + 2x - x^2}} = \int\frac{dx}{\sqrt{9 - (x - 1)^2}} = \sin^{-1}\tfrac{x - 1}{3} + C.

Exam­ple 3. ∫dx9x2−4=19∫dxx2−(2/3)2=112log⁡∣3x−23x+2∣+C\displaystyle \int\frac{dx}{9x^2 - 4} = \tfrac{1}{9}\int\frac{dx}{x^2 - (2/3)^2} = \tfrac{1}{12}\log\left\lvert\tfrac{3x - 2}{3x + 2}\right\rvert + C.

Exam­ple 4. ∫2x+1x2+4x+8 dx\displaystyle \int\frac{2x + 1}{x^2 + 4x + 8}\,dx. The trick is to write the numer­a­tor using the deriv­a­tive of the denom­i­na­tor: 2x+1=(2x+4)−32x + 1 = (2x + 4) - 3. Then the answer is log⁡(x2+4x+8)−32tan⁡−1x+22+C\displaystyle \log(x^2 + 4x + 8) - \tfrac{3}{2}\tan^{-1}\tfrac{x + 2}{2} + C.

Par­tial frac­tions

For a proper ratio­nal func­tion, break it up accord­ing to the fac­tors of the denom­i­na­tor:

  • px+q(x−a)(x−b)=Ax−a+Bx−b\displaystyle \frac{px + q}{(x - a)(x - b)} = \frac{A}{x - a} + \frac{B}{x - b};
  • px+q(x−a)2=Ax−a+B(x−a)2\displaystyle \frac{px + q}{(x - a)^2} = \frac{A}{x - a} + \frac{B}{(x - a)^2};
  • px2+qx+r(x−a)(x2+bx+c)=Ax−a+Bx+Cx2+bx+c\displaystyle \frac{px^2 + qx + r}{(x - a)(x^2 + bx + c)} = \frac{A}{x - a} + \frac{Bx + C}{x^2 + bx + c}.

One warn­ing: if the degree of the numer­a­tor is not less than that of the denom­i­na­tor, do the long divi­sion first.

Exam­ple 5. ∫5x−1(x−1)(x+2) dx\displaystyle \int\frac{5x - 1}{(x - 1)(x + 2)}\,dx: 5x−1=A(x+2)+B(x−1)5x - 1 = A(x + 2) + B(x - 1). Put x=1x = 1 to get A=43\displaystyle A = \tfrac{4}{3}, and x=−2x = -2 to get B=113\displaystyle B = \tfrac{11}{3}. So the answer is 43log⁡∣x−1∣+113log⁡∣x+2∣+C\displaystyle \tfrac{4}{3}\log\lvert x - 1 \rvert + \tfrac{11}{3}\log\lvert x + 2 \rvert + C.

Exam­ple 6. ∫x(x−2)2 dx=∫(1x−2+2(x−2)2)dx=log⁡∣x−2∣−2x−2+C\displaystyle \int\frac{x}{(x - 2)^2}\,dx = \int\left(\frac{1}{x - 2} + \frac{2}{(x - 2)^2}\right)dx = \log\lvert x - 2 \rvert - \tfrac{2}{x - 2} + C.

Inte­gra­tion by parts

∫u v dx=u∫v dx−∫(u′∫v dx)dx.\displaystyle \int u\,v\,dx = u\int v\,dx - \int\left(u'\int v\,dx\right)dx.

Which func­tion should be uu? Go down the list ILATE, Inverse trig, Log, Alge­braic, Trig, Expo­nen­tial, and pick whichever comes first.

Exam­ple 7. ∫xe2x dx=xe2x2−∫e2x2dx=e2x4(2x−1)+C\displaystyle \int x e^{2x}\,dx = \tfrac{xe^{2x}}{2} - \int\tfrac{e^{2x}}{2}dx = \tfrac{e^{2x}}{4}(2x - 1) + C.

Exam­ple 8. ∫x2log⁡x dx=x33log⁡x−∫x23 dx=x33log⁡x−x39+C\displaystyle \int x^2\log x\,dx = \tfrac{x^3}{3}\log x - \int\tfrac{x^2}{3}\,dx = \tfrac{x^3}{3}\log x - \tfrac{x^3}{9} + C.

Exam­ple 9. ∫tan⁡−1x dx=xtan⁡−1x−12log⁡(1+x2)+C\displaystyle \int\tan^{-1}x\,dx = x\tan^{-1}x - \tfrac{1}{2}\log(1 + x^2) + C.

A short­cut worth remem­ber­ing. ∫ex(f(x)+f′(x)) dx=exf(x)+C\displaystyle \int e^x(f(x) + f'(x))\,dx = e^x f(x) + C. Once you see it, ques­tions like these take one line: ∫ex(1x−1x2)dx=exx+C\displaystyle \int e^x\left(\tfrac{1}{x} - \tfrac{1}{x^2}\right)dx = \tfrac{e^x}{x} + C and ∫ex(sin⁡x+cos⁡x) dx=exsin⁡x+C\displaystyle \int e^x(\sin x + \cos x)\,dx = e^x\sin x + C.

Try these your­self

  1. ∫dxx2−25\displaystyle \int\frac{dx}{x^2 - 25}; ∫dx4+9x2\displaystyle \int\frac{dx}{4 + 9x^2}; ∫dxx2+16\displaystyle \int\frac{dx}{\sqrt{x^2 + 16}}.
  2. ∫dxx2−4x+13\displaystyle \int\frac{dx}{x^2 - 4x + 13}; ∫dx5−4x−x2\displaystyle \int\frac{dx}{\sqrt{5 - 4x - x^2}}.
  3. ∫3x−2x2+2x+5 dx\displaystyle \int\frac{3x - 2}{x^2 + 2x + 5}\,dx.
  4. ∫x+4x2−3x+2 dx\displaystyle \int\frac{x + 4}{x^2 - 3x + 2}\,dx; ∫2x(x+1)(x2+1) dx\displaystyle \int\frac{2x}{(x + 1)(x^2 + 1)}\,dx.
  5. ∫xsin⁡3x dx\displaystyle \int x\sin 3x\,dx; ∫xlog⁡(2x) dx\displaystyle \int x\log(2x)\,dx; ∫x2e−x dx\displaystyle \int x^2 e^{-x}\,dx.
  6. ∫sin⁡−1x dx\displaystyle \int\sin^{-1}x\,dx; ∫ex(tan⁡x+sec⁡2x)dx\displaystyle \int e^x\left(\tan x + \sec^2 x\right)dx.
  7. ∫16−x2 dx\displaystyle \int\sqrt{16 - x^2}\,dx.
  8. ∫e2xsin⁡x dx\displaystyle \int e^{2x}\sin x\,dx (use parts twice).

Answers to check against

Show answers
  1. 110log⁡∣x−5x+5∣+C\displaystyle \tfrac{1}{10}\log\left\lvert\tfrac{x - 5}{x + 5}\right\rvert + C; 16tan⁡−13x2+C\displaystyle \tfrac{1}{6}\tan^{-1}\tfrac{3x}{2} + C; log⁡∣x+x2+16∣+C\log\lvert x + \sqrt{x^2 + 16}\rvert + C.
  2. 13tan⁡−1x−23+C\displaystyle \tfrac{1}{3}\tan^{-1}\tfrac{x - 2}{3} + C; sin⁡−1x+23+C\displaystyle \sin^{-1}\tfrac{x + 2}{3} + C.
  3. 32log⁡(x2+2x+5)−52tan⁡−1x+12+C\displaystyle \tfrac{3}{2}\log(x^2 + 2x + 5) - \tfrac{5}{2}\tan^{-1}\tfrac{x + 1}{2} + C.
  4. x+4(x−1)(x−2)=−5x−1+6x−2\displaystyle \tfrac{x + 4}{(x - 1)(x - 2)} = \tfrac{-5}{x - 1} + \tfrac{6}{x - 2}: 6log⁡∣x−2∣−5log⁡∣x−1∣+C6\log\lvert x - 2\rvert - 5\log\lvert x - 1\rvert + C; 2x(x+1)(x2+1)=−1x+1+x+1x2+1\displaystyle \tfrac{2x}{(x + 1)(x^2 + 1)} = \tfrac{-1}{x + 1} + \tfrac{x + 1}{x^2 + 1}: −log⁡∣x+1∣+12log⁡(x2+1)+tan⁡−1x+C\displaystyle -\log\lvert x + 1\rvert + \tfrac{1}{2}\log(x^2 + 1) + \tan^{-1}x + C.
  5. −xcos⁡3x3+sin⁡3x9+C\displaystyle -\tfrac{x\cos 3x}{3} + \tfrac{\sin 3x}{9} + C; x22log⁡2x−x24+C\displaystyle \tfrac{x^2}{2}\log 2x - \tfrac{x^2}{4} + C; −e−x(x2+2x+2)+C-e^{-x}(x^2 + 2x + 2) + C.
  6. xsin⁡−1x+1−x2+Cx\sin^{-1}x + \sqrt{1 - x^2} + C; extan⁡x+Ce^x\tan x + C.
  7. x216−x2+8sin⁡−1x4+C\displaystyle \tfrac{x}{2}\sqrt{16 - x^2} + 8\sin^{-1}\tfrac{x}{4} + C.
  8. e2x5(2sin⁡x−cos⁡x)+C\displaystyle \tfrac{e^{2x}}{5}(2\sin x - \cos x) + C.