girgit.org

Integrals

eˣ[f(x) + f′(x)] and the square-root integrals

The big ideaIntegration by parts gives two families of ready results: \( \int e^x[f(x) + f'(x)]\,dx = e^x f(x) + C \), and the three integrals of \( \sqrt{x^2 - a^2} \), \( \sqrt{x^2 + a^2} \) and \( \sqrt{a^2 - x^2} \).

In simple words

Some patterns come up so often that it is worth working them out once and keeping the answer. One is "e to the x, times a function plus its own slope". Its answer is just "e to the x, times the function". The others are square roots of a square plus or minus a number, which always come out as half of x times the root, plus a smaller piece.

The type \( \int e^x[f(x) + f'(x)]\,dx \)

Split it: \( \int e^x f(x)\,dx + \int e^x f'(x)\,dx \). Do the first by parts with f(x) as first function and eˣ as second:

\[ \int e^x f(x)\,dx = f(x)e^x - \int f'(x)e^x\,dx. \]

Add the second integral back and the two \( \int e^x f'(x)\,dx \) terms cancel:

\[ \int e^x[f(x) + f'(x)]\,dx = e^x f(x) + C. \]

Check by the product rule: \( \frac{d}{dx}[e^x f(x)] = e^x f(x) + e^x f'(x) \). The whole job is to spot f.

Worked examples

  1. \( \int e^x(\tan x + \sec^2 x)\,dx \). f = tan x, f′ = sec² x. Answer \( e^x\tan x + C \).
  2. \( \int e^x\left( \log x + \frac{1}{x} \right) dx \). f = log x. Answer \( e^x\log x + C \).
  3. \( \int e^x\,\frac{x - 1}{x^2}\,dx \). Split the fraction: \( \frac{1}{x} - \frac{1}{x^2} \). That is f + f′ with \( f = \frac{1}{x} \). Answer \( \frac{e^x}{x} + C \).
  4. \( \int e^x(x^2 + 2x)\,dx \). f = x², f′ = 2x. Answer \( x^2 e^x + C \).

Guess first: \( \int e^x(\sin x - \cos x)\,dx \)

The derivative of sin x is cos x, not −cos x. Guess: does this fit the pattern?

See what happens
Yes, with a different f. Take f(x) = −cos x. Then f′(x) = sin x, and f + f′ = sin x − cos x. So the answer is \( -e^x\cos x + C \). Check: \( \frac{d}{dx}(-e^x\cos x) = -e^x\cos x + e^x\sin x \). Try both orders of the two terms before giving up on the pattern.

For JEE: the same argument gives \( \int e^{kx}[k f(x) + f'(x)]\,dx = e^{kx}f(x) + C \).

Try it: a JEE favourite. Find the f, then check your answer by its slope.

Three square-root integrals

Here a > 0.

IntegralAnswer
\( \int \sqrt{x^2 - a^2}\,dx \)\( \frac{x}{2}\sqrt{x^2 - a^2} - \frac{a^2}{2}\log\left| x + \sqrt{x^2 - a^2} \right| + C \)
\( \int \sqrt{x^2 + a^2}\,dx \)\( \frac{x}{2}\sqrt{x^2 + a^2} + \frac{a^2}{2}\log\left| x + \sqrt{x^2 + a^2} \right| + C \)
\( \int \sqrt{a^2 - x^2}\,dx \)\( \frac{x}{2}\sqrt{a^2 - x^2} + \frac{a^2}{2}\sin^{-1}\frac{x}{a} + C \)

A way to remember them: each is "\( \frac{x}{2} \) times the same root" plus or minus "\( \frac{a^2}{2} \) times the matching special integral from concept 5", namely \( \int \frac{dx}{\text{same root}} \). The sign in front of \( \frac{a^2}{2} \) is the sign of \( a^2 \) inside the root.

Try it: the third formula is a picture. Drag the point and watch its two terms as a triangle and a slice of the circle.

Where they come from. Take I = \( \int \sqrt{x^2 - a^2}\,dx \) by parts, with 1 as the second function:

\[ I = x\sqrt{x^2 - a^2} - \int \frac{x^2}{\sqrt{x^2 - a^2}}\,dx. \]

Write \( x^2 = (x^2 - a^2) + a^2 \). The integral splits into I itself plus \( a^2\int \frac{dx}{\sqrt{x^2 - a^2}} \). So \( I = x\sqrt{x^2 - a^2} - I - a^2\log|x + \sqrt{x^2 - a^2}| \); solve for I. The other two go the same way, or by putting x = a tan θ and x = a sin θ.

Worked examples

  1. \( \int \sqrt{x^2 + 4x + 8}\,dx \). Complete the square: \( (x + 2)^2 + 4 \). With t = x + 2, a = 2: \( \frac{x + 2}{2}\sqrt{x^2 + 4x + 8} + 2\log\left| x + 2 + \sqrt{x^2 + 4x + 8} \right| + C \).
  2. \( \int \sqrt{5 - 4x - x^2}\,dx \). \( 5 - 4x - x^2 = 9 - (x + 2)^2 \), so a = 3: \( \frac{x + 2}{2}\sqrt{5 - 4x - x^2} + \frac{9}{2}\sin^{-1}\frac{x + 2}{3} + C \).

Words to know

\( e^x[f + f'] \) type
An integrand that is eˣ times a function plus its derivative; it integrates to eˣ f(x).
Spotting f
Finding which part of the bracket is f, so the other part is f′.
Constant function 1 as second function
The trick for integrating a single function by parts.
a² inside the root
The number added to or taken from x²; its square root a appears in the answer.

\( \int e^x\left( \tan^{-1} x + \frac{1}{1 + x^2} \right) dx \) equals

  1. \( e^x\tan^{-1} x + C \)
  2. \( \frac{e^x}{1 + x^2} + C \)
  3. \( e^x + \tan^{-1} x + C \)

Which integrand is of the form \( e^x[f(x) + f'(x)] \)?

  1. \( e^x(\sin x + \sin x) \)
  2. \( e^x(x^3 + x^2) \)
  3. \( e^x(\sec x + \sec x\tan x) \)

\( \int \sqrt{9 - x^2}\,dx \) equals

  1. \( \frac{x}{2}\sqrt{9 - x^2} - \frac{9}{2}\log\left| x + \sqrt{9 - x^2} \right| + C \)
  2. \( \frac{x}{2}\sqrt{9 - x^2} + \frac{9}{2}\sin^{-1}\frac{x}{3} + C \)
  3. \( \sin^{-1}\frac{x}{3} + C \)