Tutorials › Calculus II › Deriving the Logarithmic Form for a Positive-Sign Radicand

Completing the Square Techniques · Tutorial 262 of 998

Deriving the Logarithmic Form for a Positive-Sign Radicand

Derive the logarithmic formula and apply it correctly to completed-square radicands with positive square and constant terms.

Intermediate 9 min read

What You'll Learn

  • Derive the antiderivative of one over the square root of u squared plus a squared.
  • Explain why the logarithm’s argument is positive for every real u when a is positive.
  • Convert a completed-square radicand into the standard form by scaling and substitution.
  • Apply the formula while retaining the required coefficient in front of the logarithm.
  • Check an antiderivative by differentiating it and identify a common missing-factor error.

Introduction

A reciprocal square root such as \(1/\sqrt{u^2+a^2}\) has no elementary antiderivative that is a power of the radicand. Its antiderivative can instead be written as a logarithm. This form becomes useful when a quadratic under a square root has been completed to a positive multiple of a square plus a positive constant.

The coefficient matters: after completing the square, a change of scale contributes a factor to the antiderivative. We will derive the basic logarithmic formula, extend it to a completed-square radicand, and check the result by differentiation.

The Basic Logarithmic Antiderivative

Formula: If \(a>0\), then for every real \(u\), \[ \int \frac{du}{\sqrt{u^2+a^2}} = \ln\!\left(u+\sqrt{u^2+a^2}\right)+C. \] The logarithm’s argument is positive throughout the real line, so an absolute value is not required.

Here \(C\) denotes an arbitrary constant. The condition \(a>0\) ensures that the radicand is strictly positive and that the expression inside the logarithm never vanishes. In fact, \(\sqrt{u^2+a^2}>|u|\), so \(u+\sqrt{u^2+a^2}>0\) whether \(u\) is positive, negative, or zero.

To see why the formula works, write \(R=\sqrt{u^2+a^2}\). Differentiating \(R\) gives \(R'=u/R\). Therefore, the derivative of the proposed logarithm is

$$ \frac{d}{du}\ln(u+R) = \frac{1+u/R}{u+R} = \frac{(R+u)/R}{u+R} = \frac{1}{R} = \frac{1}{\sqrt{u^2+a^2}}. $$

The cancellation is valid because \(u+R>0\); in particular, the denominator is not zero. This verifies the antiderivative directly. The argument also explains the logarithmic form: differentiating the square root produces a numerator involving \(u\), and the logarithm combines that term with the derivative of \(u\) to give the required reciprocal square root.

Worked Example: Integrating the Basic Form

Find an antiderivative of \(\frac{1}{\sqrt{u^2+9}}\).

Match the radicand to \(u^2+a^2\). Here \(a^2=9\), so \(a=3>0\). Applying the formula gives

$$ \int \frac{du}{\sqrt{u^2+9}} = \ln\!\left(u+\sqrt{u^2+9}\right)+C. $$

Check by differentiation. With \(R=\sqrt{u^2+9}\), we have \(R'=u/R\), and hence

$$ \frac{d}{du}\ln(u+R) = \frac{1+u/R}{u+R} = \frac{R+u}{R(u+R)} = \frac{1}{R} = \frac{1}{\sqrt{u^2+9}}. $$

The derivative matches the integrand.

Adapting the Formula to a Completed Square

Suppose the radicand has the form \(A(x-h)^2+c\), where \(A>0\) and \(c>0\). The positive coefficient \(A\) changes the scale of the squared term, so the basic formula cannot be used by simply replacing \(u\) with \(x-h\). A substitution accounts for that scale.

Formula: For \(A>0\) and \(c>0\), \[ \int \frac{dx}{\sqrt{A(x-h)^2+c}} = \frac{1}{\sqrt A} \ln\!\left(\sqrt A(x-h)+\sqrt{A(x-h)^2+c}\right)+C. \] The logarithm’s argument is positive for every real \(x\).

To obtain the formula, set \(u=\sqrt{A/c}(x-h)\). Then \(dx=\sqrt{c/A}\,du\), and

$$ \sqrt{A(x-h)^2+c} = \sqrt c\,\sqrt{u^2+1}. $$

Consequently, the integral becomes

$$ \int \frac{dx}{\sqrt{A(x-h)^2+c}} = \frac{1}{\sqrt A} \int \frac{du}{\sqrt{u^2+1}}. $$

The basic formula with \(a=1\) gives \(\ln(u+\sqrt{u^2+1})\). Substituting the definition of \(u\) back in, the logarithm’s argument is

$$ u+\sqrt{u^2+1} = \frac{\sqrt A(x-h)+\sqrt{A(x-h)^2+c}}{\sqrt c}. $$

Taking the logarithm of this expression introduces the constant \(-\frac12\ln c\), which is absorbed into the arbitrary integration constant. This yields the stated formula.

For the positivity condition, observe that

$$ \sqrt{A(x-h)^2+c}>\sqrt A\,|x-h|. $$

Thus \(\sqrt A(x-h)+\sqrt{A(x-h)^2+c}>0\) for all real \(x\), including when \(x-h<0\). The original radicand is also positive for every real \(x\), because \(A(x-h)^2\geq 0\) and \(c>0\).

Using the Formula After Completing the Square

A quadratic with a positive leading coefficient can sometimes be rewritten as a positive multiple of a square plus a positive constant. Once it is in that form, identify \(A\), \(h\), and \(c\) before applying the formula. The coefficient \(1/\sqrt A\) is essential.

Worked Example: A Quadratic with a Shifted Square

Find an antiderivative of \(\frac{1}{\sqrt{4x^2+4x+5}}\).

Complete the square:

$$ 4x^2+4x+5 = 4(x^2+x)+5 = 4\left((x+\tfrac12)^2-\tfrac14\right)+5 = 4(x+\tfrac12)^2+4. $$

Thus \(A=4\), \(h=-\tfrac12\), and \(c=4\). The completed-square formula gives

$$ \int \frac{dx}{\sqrt{4x^2+4x+5}} = \frac12\ln\!\left(2(x+\tfrac12)+\sqrt{4x^2+4x+5}\right)+C = \frac12\ln\!\left(2x+1+\sqrt{4x^2+4x+5}\right)+C. $$

To check, let \(q=4x^2+4x+5\). Then \(q'=8x+4=4(2x+1)\). Differentiating the proposed antiderivative gives

$$ \frac12 \frac{2+q'/(2\sqrt q)}{2x+1+\sqrt q} = \frac12 \frac{2+2(2x+1)/\sqrt q}{2x+1+\sqrt q} = \frac{1}{\sqrt q}. $$

This is the original integrand. The logarithm’s argument is positive because \(\sqrt q>|2x+1|\).

Worked Example: A Different Leading Coefficient

Find an antiderivative of \(\frac{1}{\sqrt{9x^2-12x+8}}\).

Complete the square carefully:

$$ 9x^2-12x+8 = 9\left(x^2-\tfrac43x\right)+8 = 9\left((x-\tfrac23)^2-\tfrac49\right)+8 = 9(x-\tfrac23)^2+4. $$

Here \(A=9\), \(h=\tfrac23\), and \(c=4\). Therefore,

$$ \int \frac{dx}{\sqrt{9x^2-12x+8}} = \frac13\ln\!\left(3(x-\tfrac23)+\sqrt{9x^2-12x+8}\right)+C = \frac13\ln\!\left(3x-2+\sqrt{9x^2-12x+8}\right)+C. $$

For a check, put \(q=9x^2-12x+8\), so \(q'=18x-12=6(3x-2)\). The derivative is

$$ \frac13 \frac{3+q'/(2\sqrt q)}{3x-2+\sqrt q} = \frac13 \frac{3+3(3x-2)/\sqrt q}{3x-2+\sqrt q} = \frac{1}{\sqrt q}. $$

Again, the derivative equals the integrand, and the argument is positive because \(\sqrt q>|3x-2|\).

A Reliable Procedure and a Common Pitfall

For an integral with a reciprocal square root, first rewrite the radicand as \(A(x-h)^2+c\). If both \(A\) and \(c\) are positive, the formula applies on the whole real line. Then use the coefficient \(1/\sqrt A\) and the same \(A\) inside the logarithmic expression. Finally, differentiate the result to check it.

1
Complete the square.
Rewrite the radicand as \(A(x-h)^2+c\), showing the algebra.
2
Check the conditions.
Verify that \(A>0\) and \(c>0\), so the radicand is positive for every real \(x\).
3
Apply the scaled formula.
Include the factor \(1/\sqrt A\) and use \(\sqrt A(x-h)\) in the logarithm.
4
Verify by differentiation.
Differentiate the logarithm and confirm that the result is the original reciprocal square root.

A frequent error is to omit the factor \(1/\sqrt A\). In the first completed-square example, that mistake would produce \(\ln(2x+1+\sqrt q)\) instead of \(\frac12\ln(2x+1+\sqrt q)\). Differentiating the incorrect expression gives

$$ \frac{2+q'/(2\sqrt q)}{2x+1+\sqrt q} = \frac{2}{\sqrt q}, \qquad q=4x^2+4x+5, $$

which is twice the required integrand. The correction is to restore the missing factor \(\frac12=1/\sqrt4\). Checking by differentiation is a direct way to catch this scaling error.

Another possible confusion is whether to place absolute-value bars around the logarithm’s argument. In this setting they are unnecessary: when \(c>0\), the square root is strictly larger than the absolute value of the linear term \(\sqrt A(x-h)\). The argument is therefore already positive everywhere. The conditions matter; this formula is specifically for a positive square term and a positive constant term, not for every possible quadratic radicand.

Why the Logarithmic Form Is Useful

The logarithmic expression gives an explicit antiderivative that is easy to verify and preserves the completed-square structure. In practical integration, completing the square identifies the shift \(h\), while the coefficient \(A\) determines the scale factor in front of the logarithm. Keeping those roles separate helps prevent sign and coefficient errors.

The form is also useful for recognizing when this particular formula applies: the radicand must be expressible as \(A(x-h)^2+c\) with \(A,c>0\). The positivity of \(c\) ensures that the square root never vanishes and that the logarithm is defined for every real input. If either condition is not met, this derivation does not establish an antiderivative for that case.

Check Your Understanding

Work through these questions by identifying the completed-square parameters and, where requested, checking your result by differentiation.

  1. Find an antiderivative of \(\frac{1}{\sqrt{(x-3)^2+16}}\).
  2. Complete the square in \(4x^2-8x+7\), then find an antiderivative of its reciprocal square root.
  3. For \(A>0\) and \(c>0\), why is \(\sqrt A(x-h)+\sqrt{A(x-h)^2+c}\) positive for every real \(x\)?
  4. What factor is required in front of the logarithm for \(\frac{1}{\sqrt{25(x+1)^2+9}}\), and why?
  5. Differentiate \(\ln(u+\sqrt{u^2+a^2})\) for \(a>0\) and show that it gives the basic integrand.

Test yourself: Calculus II final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon