In short

Three radicals — \sqrt{a^2 - x^2}, \sqrt{x^2 + a^2}, \sqrt{x^2 - a^2} — each have a closed-form antiderivative that mixes a polynomial piece with an \arcsin or a logarithm. The formulas are what you get by differentiating a guess and then solving for the missing integral. Once you have them, any \sqrt{ax^2 + bx + c} collapses to one of the three by completing the square.

Draw the upper half of a circle of radius 3 on graph paper and shade the area under it from x = 0 to x = 2. Can you write that area as a number?

The curve is y = \sqrt{9 - x^2}, so the question is just

\int_{0}^{2} \sqrt{9 - x^2}\,dx.

The substitutions from Part 1 do not work here. You could try x = 3\sin\theta, and that will eventually give an answer, but you end up integrating \cos^2\theta, which is its own little detour. The Part 2 recipe — completing the square — does not apply, because there is no square to complete; the quadratic inside the radical is already a^2 - x^2.

What you need is a direct formula for \int \sqrt{a^2 - x^2}\,dx, the same way Part 1 gave you direct formulas for \int \frac{dx}{x^2 + a^2} and its relatives. That formula exists, it is short, and once you know how it is derived you never have to re-derive it.

The three radicals

There are only three canonical square-root quadratics, and they are exactly the three from Part 1 with the reciprocal removed:

\int \sqrt{a^2 - x^2}\,dx, \qquad \int \sqrt{x^2 + a^2}\,dx, \qquad \int \sqrt{x^2 - a^2}\,dx.

Geometrically, each of these is the area under a curve: the first is a piece of a circle, the second and third are pieces of hyperbolas. The formulas all have the same shape: a polynomial piece (always \frac{x}{2} times the original radical) plus an inverse-trig or logarithm piece.

Here are the three results up front. The rest of the article is about where they come from and how to use them.

The three standard radicals

For a > 0:

\int \sqrt{a^2 - x^2}\,dx = \frac{x}{2}\sqrt{a^2 - x^2} + \frac{a^2}{2}\sin^{-1}\!\left(\frac{x}{a}\right) + C
\int \sqrt{x^2 + a^2}\,dx = \frac{x}{2}\sqrt{x^2 + a^2} + \frac{a^2}{2}\ln\!\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}\ln\!\left|x + \sqrt{x^2 - a^2}\right| + C

Notice the symmetry. The first term is the same in all three: half of x multiplied by the original radical. The second term is what changes: \sin^{-1} for the circle, \ln for the two hyperbolas (with a sign flip in the last one).

Where the first formula comes from

The fastest derivation is a guess-and-solve. You will see the same move in integration by parts later — this is it in miniature.

Start by asking: what would you guess the antiderivative of \sqrt{a^2 - x^2} to look like? It should involve \sqrt{a^2 - x^2} itself, because differentiating anything else is unlikely to produce that radical. Try differentiating x\sqrt{a^2 - x^2} and see what comes out.

\frac{d}{dx}\left[x\sqrt{a^2 - x^2}\right] = \sqrt{a^2 - x^2} + x \cdot \frac{-x}{\sqrt{a^2 - x^2}} = \sqrt{a^2 - x^2} - \frac{x^2}{\sqrt{a^2 - x^2}}

Put the two terms over a common denominator:

= \frac{(a^2 - x^2) - x^2}{\sqrt{a^2 - x^2}} = \frac{a^2 - 2x^2}{\sqrt{a^2 - x^2}}

Now split that fraction:

= \frac{a^2}{\sqrt{a^2 - x^2}} - \frac{2x^2}{\sqrt{a^2 - x^2}}

The second piece is almost 2\sqrt{a^2 - x^2}, except with a flipped sign: \sqrt{a^2 - x^2} = \frac{a^2 - x^2}{\sqrt{a^2 - x^2}}, so \frac{2x^2}{\sqrt{a^2 - x^2}} = \frac{2a^2 - 2(a^2 - x^2)}{\sqrt{a^2 - x^2}} = \frac{2a^2}{\sqrt{a^2 - x^2}} - 2\sqrt{a^2 - x^2}. Substituting:

\frac{d}{dx}\left[x\sqrt{a^2 - x^2}\right] = \frac{a^2}{\sqrt{a^2 - x^2}} - \frac{2a^2}{\sqrt{a^2 - x^2}} + 2\sqrt{a^2 - x^2} = -\frac{a^2}{\sqrt{a^2 - x^2}} + 2\sqrt{a^2 - x^2}

Now integrate both sides:

x\sqrt{a^2 - x^2} = -a^2 \int \frac{dx}{\sqrt{a^2 - x^2}} + 2\int \sqrt{a^2 - x^2}\,dx

The first integral on the right is a Part 1 standard: \int \frac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}(x/a) + C. Solve for the integral you want:

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

That is the first formula. The other two come from exactly the same recipe: differentiate x\sqrt{x^2 \pm a^2}, collect the pieces, and solve for the integral you want. The only thing that changes is the standard integral you call on at the end — \int \frac{dx}{\sqrt{x^2 + a^2}} or \int \frac{dx}{\sqrt{x^2 - a^2}}, both of which are Part 1 logarithm formulas.

The geometric meaning

You should not memorise these formulas as bare symbols. Each of them has a picture.

The curve $y = \sqrt{9 - x^2}$ is the upper half of a circle of radius $3$. The integral $\int_{-3}^{3} \sqrt{9 - x^2}\,dx$ is the area of that half-circle, which must be $\frac{1}{2}\pi \cdot 3^2 = \frac{9\pi}{2}$. The formula delivers exactly that number.

Check it. Plug x = 3 and x = -3 into \frac{x}{2}\sqrt{9 - x^2} + \frac{9}{2}\sin^{-1}(x/3):

\left[\frac{3}{2}\cdot 0 + \frac{9}{2}\sin^{-1}(1)\right] - \left[-\frac{3}{2}\cdot 0 + \frac{9}{2}\sin^{-1}(-1)\right] = \frac{9}{2}\cdot\frac{\pi}{2} - \frac{9}{2}\cdot\left(-\frac{\pi}{2}\right) = \frac{9\pi}{2}

The formula and the half-circle area agree. That is a strong reason to trust the formula.

First worked example

Time to use the formula on the question that opened this article.

Example 1: $\int_{0}^{2} \sqrt{9 - x^2}\,dx$

Step 1. Identify a. The radical is \sqrt{9 - x^2} = \sqrt{3^2 - x^2}, so a = 3. Why: lining the integrand up with the standard form \sqrt{a^2 - x^2} is the whole first step. Once a is identified, the antiderivative is just a plug-in.

Step 2. Write down the antiderivative.

F(x) = \frac{x}{2}\sqrt{9 - x^2} + \frac{9}{2}\sin^{-1}\!\left(\frac{x}{3}\right)

Why: this is the Part 3 formula with a = 3 and a^2 = 9. No computation — just substitution into the boxed result.

Step 3. Evaluate at x = 2.

F(2) = \frac{2}{2}\sqrt{9 - 4} + \frac{9}{2}\sin^{-1}\!\left(\frac{2}{3}\right) = \sqrt{5} + \frac{9}{2}\sin^{-1}\!\left(\frac{2}{3}\right)

Why: at x = 2, the radical gives \sqrt{5}, and \sin^{-1}(2/3) has no cleaner form — it stays symbolic.

Step 4. Evaluate at x = 0.

F(0) = 0\cdot 3 + \frac{9}{2}\sin^{-1}(0) = 0

Why: both terms vanish at x = 0, so the lower endpoint contributes nothing. This is common when the interval starts at the centre of the circle.

Step 5. Subtract.

\int_{0}^{2} \sqrt{9 - x^2}\,dx = F(2) - F(0) = \sqrt{5} + \frac{9}{2}\sin^{-1}\!\left(\frac{2}{3}\right)

Result: The area is \sqrt{5} + \frac{9}{2}\sin^{-1}\!\left(\frac{2}{3}\right) \approx 2.236 + 4.5 \cdot 0.7297 \approx 5.52 square units.

The shaded strip from $x = 0$ to $x = 2$ under the upper half of $x^2 + y^2 = 9$. The total half-circle has area $\frac{9\pi}{2} \approx 14.14$; the piece from $0$ to $2$ is about $5.52$, which is roughly $39\%$ of it — consistent with the fact that $2/3$ of the radius has been consumed.

The sanity-check paragraph: the full right half of the circle (from x = 0 to x = 3) has area \frac{9\pi}{4} \approx 7.07. Your answer of 5.52 is smaller than that, as it must be, because the interval [0, 2] is a subset of [0, 3]. The picture confirms the number.

Second worked example

The second canonical formula is the \sqrt{x^2 + a^2} one. Unlike the first, this radical has no upper bound — the curve y = \sqrt{x^2 + a^2} is the upper half of a hyperbola and it grows without bound as x moves away from zero.

Example 2: $\int \sqrt{x^2 + 4}\,dx$

Step 1. Identify a. The radical is \sqrt{x^2 + 4} = \sqrt{x^2 + 2^2}, so a = 2 and a^2 = 4. Why: same first move as before. Pattern-matching to the standard form is the only decision you have to make.

Step 2. Apply the formula.

\int \sqrt{x^2 + 4}\,dx = \frac{x}{2}\sqrt{x^2 + 4} + \frac{4}{2}\ln\!\left|x + \sqrt{x^2 + 4}\right| + C

Why: this is the second boxed formula with a = 2. Notice that the constant in front of the log is a^2/2 = 2, not a^2/2 = 4/2 = 2. (Same number, written both ways.)

Step 3. Simplify.

= \frac{x}{2}\sqrt{x^2 + 4} + 2\ln\!\left(x + \sqrt{x^2 + 4}\right) + C

Why: for real x, the expression x + \sqrt{x^2 + 4} is always positive (the radical dominates), so the absolute-value bars can be dropped.

Result: \int \sqrt{x^2 + 4}\,dx = \dfrac{x}{2}\sqrt{x^2 + 4} + 2\ln\!\left(x + \sqrt{x^2 + 4}\right) + C.

The dashed curve is $\sqrt{x^2 + 4}$, which never drops below $2$ and grows like $|x|$ for large $|x|$. The solid red curve is the antiderivative $\frac{x}{2}\sqrt{x^2 + 4} + 2\ln(x + \sqrt{x^2 + 4})$. The antiderivative grows roughly like $x^2/2$ for large $x$ — the right growth for the integral of something that scales like $|x|$.

Notice that the antiderivative has a non-zero value at x = 0: F(0) = 0 + 2\ln(\sqrt{4}) = 2\ln 2 \approx 1.386. That is not a mistake — antiderivatives are only determined up to a constant, and when you subtract F values to compute a definite integral, any constant cancels.

The general case: \int \sqrt{ax^2 + bx + c}\,dx

Once you have the three canonical radicals, the general case follows the same recipe as Part 2. Complete the square inside the radical, shift to a new variable, and recognise which of the three forms you have.

The coefficient a can be positive or negative — the two cases produce different radicals.

Case 1: a > 0. Factor a out, complete the square:

ax^2 + bx + c = a\left[\left(x + \frac{b}{2a}\right)^2 + \frac{4ac - b^2}{4a^2}\right]

Set t = x + \frac{b}{2a} and pull \sqrt{a} out of the radical. Two sub-cases:

Case 2: a < 0. Write a = -|a|, factor the minus out, and complete the square on what is left. The cleanest way is to just run it by hand on each specific problem. The result will be of the form k^2 - t^2, and you use the \sqrt{a^2 - x^2} formula. (If it comes out the other way around, the integrand is imaginary and the integral is not defined over the reals.)

Here is a full example of the a < 0 case. Take \int \sqrt{3 - 2x - x^2}\,dx. Complete the square inside the radical:

3 - 2x - x^2 = -(x^2 + 2x - 3) = -(x^2 + 2x + 1 - 4) = -\left[(x+1)^2 - 4\right] = 4 - (x+1)^2

Set t = x + 1, so dt = dx, and

\int \sqrt{3 - 2x - x^2}\,dx = \int \sqrt{4 - t^2}\,dt = \frac{t}{2}\sqrt{4 - t^2} + 2\sin^{-1}\!\left(\frac{t}{2}\right) + C

Substituting back t = x + 1:

= \frac{x + 1}{2}\sqrt{3 - 2x - x^2} + 2\sin^{-1}\!\left(\frac{x+1}{2}\right) + C

The integrand is defined only when 3 - 2x - x^2 \geq 0, which is -3 \leq x \leq 1 — exactly the interval where the shifted radical \sqrt{4 - t^2} makes sense.

Common confusions

A few things students reliably get wrong the first time they meet these formulas.

Going deeper

If you have the three formulas, the derivation pattern, and one worked example of each, you can handle any Part 3 problem. The rest of this section covers the trig-substitution route, the hyperbolic-substitution route, and why the \ln formula is really an inverse hyperbolic function in disguise.

The trig-substitution route

There is a second way to derive the \int \sqrt{a^2 - x^2}\,dx formula, and it generalises to the hyperbolic cases cleanly. Set x = a\sin\theta, so dx = a\cos\theta\,d\theta and \sqrt{a^2 - x^2} = a\cos\theta. Then

\int \sqrt{a^2 - x^2}\,dx = \int a\cos\theta \cdot a\cos\theta\,d\theta = a^2 \int \cos^2\theta\,d\theta

Use the double-angle identity \cos^2\theta = \frac{1 + \cos 2\theta}{2}:

= \frac{a^2}{2}\int (1 + \cos 2\theta)\,d\theta = \frac{a^2}{2}\left(\theta + \frac{\sin 2\theta}{2}\right) + C = \frac{a^2}{2}\theta + \frac{a^2}{4}\sin 2\theta + C

Now unravel. \theta = \sin^{-1}(x/a). And \sin 2\theta = 2\sin\theta\cos\theta = 2\cdot\frac{x}{a}\cdot\frac{\sqrt{a^2 - x^2}}{a} = \frac{2x\sqrt{a^2 - x^2}}{a^2}. Substituting:

= \frac{a^2}{2}\sin^{-1}\!\left(\frac{x}{a}\right) + \frac{a^2}{4} \cdot \frac{2x\sqrt{a^2 - x^2}}{a^2} + C = \frac{a^2}{2}\sin^{-1}\!\left(\frac{x}{a}\right) + \frac{x}{2}\sqrt{a^2 - x^2} + C

Same answer. The guess-and-solve route and the trig-substitution route are both valid; the guess-and-solve route is shorter because it uses the Part 1 result directly, without detouring through \cos^2\theta.

The hyperbolic route

For \int \sqrt{x^2 + a^2}\,dx, the natural substitution is x = a\sinh\theta, so \sqrt{x^2 + a^2} = a\cosh\theta and dx = a\cosh\theta\,d\theta. Then

\int \sqrt{x^2 + a^2}\,dx = a^2 \int \cosh^2\theta\,d\theta = \frac{a^2}{2}\int(1 + \cosh 2\theta)\,d\theta = \frac{a^2}{2}\theta + \frac{a^2}{4}\sinh 2\theta + C

Since \theta = \sinh^{-1}(x/a) and \sinh^{-1}(u) = \ln(u + \sqrt{u^2 + 1}), this becomes

= \frac{a^2}{2}\ln\!\left(\frac{x}{a} + \sqrt{\frac{x^2}{a^2} + 1}\right) + \frac{x\sqrt{x^2 + a^2}}{2} + C

The first term simplifies: \ln(\frac{x + \sqrt{x^2 + a^2}}{a}) = \ln(x + \sqrt{x^2 + a^2}) - \ln a, and the \ln a is absorbed into the constant. Final answer:

= \frac{x}{2}\sqrt{x^2 + a^2} + \frac{a^2}{2}\ln\!\left|x + \sqrt{x^2 + a^2}\right| + C

The logarithm in the Part 3 formula is exactly \sinh^{-1}(x/a) up to an additive constant. When you see \ln(x + \sqrt{x^2 + a^2}) in an answer, you can read it as an inverse hyperbolic sine.

The connection to Part 1 and Part 2

Look at the three families side by side. Part 1 handles integrands like \frac{1}{\text{quadratic}} and \frac{1}{\sqrt{\text{quadratic}}}. Part 2 extends those to general ax^2 + bx + c by completing the square. Part 3 handles \sqrt{\text{quadratic}} — one power of the radical higher than Part 1's reciprocal-root forms.

The connection between them is direct: if you differentiate the Part 3 formulas, you land back on the Part 1 results. Specifically,

\frac{d}{dx}\left[\frac{x}{2}\sqrt{a^2 - x^2} + \frac{a^2}{2}\sin^{-1}\!\left(\frac{x}{a}\right)\right] = \sqrt{a^2 - x^2}

and a similar identity for the other two. The three families are a tightly linked ladder: each rung is one power of the quadratic above the previous rung.

Why the \frac{x}{2} shows up in every formula

This is worth understanding, because it is not an accident. The radical \sqrt{p(x)}, where p(x) is a quadratic, is a curve whose anti-derivative should have the units of "area." Near any point x_0, the area under the curve from 0 to x_0 should scale roughly like x_0 times the height of the curve at x_0 — which is x_0 \cdot \sqrt{p(x_0)}. The factor of \frac{1}{2} accounts for the fact that the curve is rising or falling over the interval, so on average the height is somewhere between zero and the maximum.

That is the same geometric fact that gives a triangle an area of \frac{1}{2} \cdot \text{base} \cdot \text{height}. The Part 3 formulas are the calculus echo of that half.

Where this leads next