Introduction
The integral of a reciprocal square root depends not only on the quadratic’s coefficients, but also on the shape of the quadratic. A completed square may produce a positive sum, a difference of squares, or a bounded difference. Each shape has its own antiderivative and real domain.
For a quadratic \(q(x)=Ax^2+Bx+C\) with \(A\ne 0\), the discriminant \(\Delta=B^2-4AC\) and the completed-square form provide a systematic way to make that choice. The first task is to determine where \(q(x)>0\), since the integrand \(1/\sqrt{q(x)}\) is real and defined only there.
Complete the Square and Identify the Domain
For \(A\ne 0\), define the centre \(h=-B/(2A)\). Completing the square gives
The sign of \(A\) determines whether the parabola opens upward or downward, while \(\Delta\) determines whether it has two, one, or no real roots. Together, these facts determine where the radicand is positive.
| Coefficient and discriminant | Positive-radicand domain | Completed-square shape |
|---|---|---|
| \(A>0,\ \Delta<0\) | All real \(x\) | Positive sum: \(A((x-h)^2+a^2)\) |
| \(A>0,\ \Delta=0\) | \(x\ne h\) | Square: \(A(x-h)^2\) |
| \(A>0,\ \Delta>0\) | \(x<h-a\) or \(x>h+a\) | Difference: \(A((x-h)^2-a^2)\) |
| \(A<0,\ \Delta>0\) | \(h-a<x<h+a\) | Bounded difference: \((-A)(a^2-(x-h)^2)\) |
| \(A<0,\ \Delta\le 0\) | No real \(x\) with \(q(x)>0\) | The radicand is never positive |
In the rows involving \(a\), take \(a=\sqrt{|\Delta|}/(2|A|)>0\). This choice makes the squared length in the completed-square form equal to \(a^2\). The strict inequalities in the domain column matter: at a root, the denominator is zero.
Choosing the Antiderivative
On any interval where \(q(x)>0\), an antiderivative is a function whose derivative equals \(1/\sqrt{q(x)}\). The formulas below are applied separately on each connected interval of the domain. The constant of integration may be different on different intervals.
When \(A>0\) and \(\Delta<0\), the completed square is \(q(x)=A((x-h)^2+a^2)\), with \(a=\sqrt{-\Delta}/(2A)\). An antiderivative is
The two displayed forms differ only by a constant, since \(\operatorname{arsinh}(u/a)=\ln((u+\sqrt{u^2+a^2})/a)\). The logarithm is real for every real \(x\) in this case.
When \(A>0\) and \(\Delta>0\), \(q(x)=A((x-h)^2-a^2)\), where \(a=\sqrt{\Delta}/(2A)\). The real domain consists of the two outside intervals, and on either one,
When \(A<0\) and \(\Delta>0\), the completed square is \(q(x)=(-A)(a^2-(x-h)^2)\), where \(a=\sqrt{\Delta}/(2|A|)\). Its positive domain is \(h-a<x<h+a\), and there
Here \(\arcsin\) is the principal inverse sine, with values in \([-\pi/2,\pi/2]\). Its argument lies strictly between \(-1\) and \(1\) on the integrand’s domain.
Why the Forms Work
The formulas follow by differentiating the corresponding expressions in the completed-square variable \(u=x-h\). For \(u^2+a^2\), differentiating the logarithmic expression gives the reciprocal square root:
For \(u^2-a^2\), the same calculation applies wherever \(|u|>a\). The expression inside the absolute value is nonzero on both outside intervals, so the logarithm is defined there. For the bounded form, the chain rule gives the inverse-sine derivative. Including the constants from the coefficient \(A\) then produces the stated formulas.
Write \(q(x)=A(x-h)^2-\Delta/(4A)\), with \(h=-B/(2A)\).
Use the signs of \(A\) and \(\Delta\) to determine where \(q(x)>0\); exclude every point where \(q(x)=0\).
A positive sum gives a logarithmic or \(\operatorname{arsinh}\) form; a difference of squares gives a logarithm; a bounded difference gives an \(\arcsin\) form.
Differentiate the proposed expression on the interval in question and simplify it to \(1/\sqrt{q(x)}\).
Worked Examples
Worked Example: Positive Sum with No Real Roots
Evaluate \(\int dx/\sqrt{2x^2+4x+5}\) and state its real domain.
Here \(A=2\), \(B=4\), and \(C=5\), so
Since \(A>0\) and \(\Delta<0\), the radicand is positive for all real \(x\). Completing the square gives
Thus \(a=\sqrt{3/2}\), and the logarithmic form gives
To check, put \(u=x+1\). The derivative of the logarithm is \(1/\sqrt{u^2+3/2}\), so the derivative of the whole expression is
Worked Example: Bounded Radicand
Evaluate \(\int dx/\sqrt{9-4x^2}\) and state its real domain.
The coefficients are \(A=-4\), \(B=0\), and \(C=9\). Hence
Because \(A<0\) and \(\Delta>0\), the radicand is positive exactly when \(-3/2<x<3/2\). Indeed, \(9-4x^2=4((3/2)^2-x^2)\). The inverse-sine formula gives
Differentiating,
The derivative agrees with the integrand throughout the open interval; the endpoints are excluded because the radicand vanishes there.
Worked Example: Two Outside Intervals
Evaluate \(\int dx/\sqrt{x^2-4x+3}\), identifying both intervals on which the formula applies.
Here \(A=1\), \(B=-4\), \(C=3\), and
The completed square is \(x^2-4x+3=(x-2)^2-1\), which is positive when \(x<1\) or \(x>3\). Therefore, on either interval,
To verify it, let \(u=x-2\). The derivative of the logarithm is
This calculation holds on both intervals \(u<-1\) and \(u>1\). The absolute value makes the logarithm real on both, but it does not join the intervals into one domain: the integrand is undefined between the roots.
A Double Root Requires Special Care
If \(A>0\) and \(\Delta=0\), then \(q(x)=A(x-h)^2\). Its square root is \(\sqrt A\,|x-h|\), not \(\sqrt A(x-h)\) on the entire real line. The domain consists of the two intervals \(x<h\) and \(x>h\). On each interval, the antiderivative can be written as
The constants are independent because the domain is disconnected. For example, if \(q(x)=4(x-1)^2\), the integrand is \(1/(2|x-1|)\). On \(x<1\), the correct derivative is that of \(-\tfrac12\ln|x-1|\), namely \(1/(2(1-x))\), which equals \(1/(2|x-1|)\).
Degenerate Cases
The classification above assumes \(A\ne0\), so that the radicand is genuinely quadratic. If \(A=0\), the expression is linear or constant instead. For \(B\ne0\), on the interval where \(Bx+C>0\),
If \(A=B=0\) and \(C>0\), the integrand is the constant \(1/\sqrt C\), with antiderivative \(x/\sqrt C+K\). If the constant radicand is nonpositive, there is no real domain for the integrand.
Summary
For a genuine quadratic, completing the square and checking the signs of \(A\) and \(\Delta\) determines both the antiderivative type and its domain. A positive sum leads to a logarithmic or \(\operatorname{arsinh}\) expression, a difference of squares with \(A>0\) leads to a logarithm on two outside intervals, and a bounded difference with \(A<0\) leads to an inverse-sine expression between its roots. A double root must be handled separately on either side of the excluded point.
Check Your Understanding
For each question, identify the real domain before selecting or checking an antiderivative.
- For \(q(x)=x^2+2x+5\), what are \(h\), \(\Delta\), and the real domain of \(1/\sqrt{q(x)}\)? Which form applies?
- For \(q(x)=4-x^2\), determine the interval on which the integrand is real and choose the appropriate inverse-trigonometric form.
- For \(q(x)=x^2-6x+8\), find the two domain intervals and state the logarithmic antiderivative form.
- Why must the antiderivative for \(1/\sqrt{4(x-1)^2}\) be written separately on \(x<1\) and \(x>1\)?
- Differentiate \(\frac{1}{\sqrt2}\operatorname{arsinh}(x/\sqrt2)\) and identify the corresponding radicand.