How completing the square writes an irreducible quadratic with negative discriminant as a shifted and scaled copy of 1 plus u squared, so that a shift and scale substitution leads to the inverse tangent antiderivative.
Chapter 10
Trigonometric substitution, partial fractions and completing the square
The denominator of 1/(x2+4x+8) has discriminant 16−32=−16, so it has no real roots and does not factor into real linear pieces, and partial fractions with linear denominators do not apply. Completing the square writes it as (x+2)2+4, a shifted and scaled copy of 1+u2, and 1/(1+u2) is exactly the derivative of the inverse tangent. This page explains completing the square, irreducible quadratics and the discriminant test, the inverse tangent antiderivative and the substitution u=(x+2)/2, and it evaluates the integral from 0 to 2 to 21(arctan2−π/4).
Key terms
Completing the square
Definition For real numbers a=0, b and c and every real x,
ax2+bx+c=a(x+2ab)2+c−4ab2.
The identity follows by expanding the square, and it changes the form of the quadratic, not its value. With h=−b/(2a) and k=c−b2/(4a) it reads a(x−h)2+k, so the graph is a parabola with vertex (h,k). For a=1 the rule is to add and subtract the square of half the coefficient of x.
In plain words Half the coefficient of x, squared, is the constant that completes a perfect square. Put it inside the square and take it back outside, and the expression keeps its value for every x while its center becomes visible.
Example For the integral of this page, half of 4 is 2, and (x+2)2=x2+4x+4, so x2+4x+8=(x+2)2+4. This is at least 4 for every real x, so the integrand is continuous on [0,2]. Factoring out 4 gives 4(1+((x+2)/2)2), and the substitution u=(x+2)/2 has dx=2du and moves the bounds 0 and 2 to 1 and 2. Hence
with the inverse tangent in radians and taking values in (−π/2,π/2). The value is about 0.1609. In the original variable the antiderivative is F(x)=21arctan((x+2)/2), and the chain rule confirms it,
F′(x)=1+(x+2)2/41/4=(x+2)2+41.
As a rough check, the integrand decreases on [0,2] from 1/8 to 1/20, so over this interval of length 2 the integral lies between 1/10 and 1/4.
Irreducible quadratic
Definition A quadratic ax2+bx+c with real coefficients and a=0 is irreducible over the real numbers if it cannot be written as a product of two linear factors with real coefficients. This happens exactly when it has no real root, which is the case exactly when b2−4ac<0. Over the complex numbers every quadratic factors, and an irreducible real quadratic has two complex conjugate roots. In a partial fraction decomposition, an irreducible quadratic factor gets a numerator of the form Bx+C.
In plain words An irreducible quadratic never meets the x-axis, so it cannot be split into real linear factors. Its reciprocal integrates to an inverse tangent, and a linear numerator adds a logarithm of the quadratic.
Example The quadratic x2+4x+8 is irreducible. Its roots are the complex numbers −2±2i, and x2+4x+8=(x+2−2i)(x+2+2i). By contrast x2+4x+3=(x+1)(x+3) is reducible. For a linear numerator, split off a multiple of the derivative 2x+4 of the quadratic,
x2+4x+8x+4=x2+4x+821(2x+4)+x2+4x+82.
The first part integrates to 21ln(x2+4x+8), with no absolute value because the quadratic is positive, and the second to arctan((x+2)/2). So the antiderivatives on the whole real line are 21ln(x2+4x+8)+arctan((x+2)/2)+C.
Negative discriminant
Definition The discriminant of ax2+bx+c, with a=0, is Δ=b2−4ac. Completing the square gives
ax2+bx+c=a(x+2ab)2−4aΔ.
If Δ<0, the second term −Δ/(4a) is not 0 and has the sign of a, and the first term is 0 or has the sign of a. So the quadratic is never 0 and has the sign of a for every real x. Its value −Δ/(4a) at x=−b/(2a) is the minimum when a>0 and the maximum when a<0. If Δ=0, the quadratic is a(x+b/(2a))2, with one repeated real root, and if Δ>0, it has the two distinct real roots (−b±Δ)/(2a).
In plain words A negative discriminant means that the quadratic has no real roots and keeps one sign. Its reciprocal is then continuous on the whole real line, so an integral of the reciprocal over any interval has no singularity.
Example For x2+4x+8, the discriminant is 16−32=−16. The minimum value is 16/4=4, at x=−2, where the integrand 1/(x2+4x+8) has its highest point 1/4. The interval [0,2] lies to the right of this peak, where the integrand decreases. For 2x2−4x+5, the discriminant is 16−40=−24, and the minimum value is 24/8=3, at x=1. For x2+4x+3, the discriminant is 16−12=4>0, and the roots are −1 and −3.
Inverse tangent antiderivative
Definition For every real u, the inverse tangent arctanu, also written tan−1u, is the unique angle θ in the open interval (−π/2,π/2) with tanθ=u, measured in radians. It is differentiable on the whole real line, with
dudarctanu=1+u21,
because u=tanθ gives du/dθ=sec2θ=1+tan2θ=1+u2, which is positive, and the derivative of an inverse function is the reciprocal of this rate. Consequently, for a constant a>0 and on the whole real line,
∫u2+a2du=a1arctanau+C.
In plain words The function 1/(1+u2) is the rate of change of an angle. Its integral from p to q is the change in the angle whose tangent is u, from arctanp to arctanq.
Example Since arctan1=π/4,
∫121+u2du=arctan2−4π≈1.1071−0.7854≈0.3218.
The value arctan2 is not a standard angle, so it stays in the exact answer. The angles must be in radians. In degrees the same difference would be about 18.43, which is not the integral.
Shift and scale substitution
Definition For constants h and k>0, the substitution u=(x−h)/k, with x=h+ku and dx=kdu, turns (x−h)2+k2 into k2(1+u2). A definite integral from x=p to x=q becomes an integral from u=(p−h)/k to u=(q−h)/k, and on the whole real line
∫(x−h)2+k2dx=k1arctankx−h+C.
In plain words The shift moves the center of the quadratic to u=0, and dividing by k makes the constant term 1. The width factor dx=kdu and the height factor 1/k2 combine into the single factor 1/k in front. Forgetting the width factor is the most common slip.
Example Completing the square gives x2−2x+10=(x−1)2+9, so h=1 and k=3. With u=(x−1)/3, the bounds 1 and 4 become 0 and 1, and
∫14x2−2x+10dx=31∫011+u2du=31⋅4π=12π,
which is about 0.2618. Leaving out dx=3du would give π/36, three times too small. As a check, the integrand decreases on [1,4] from 1/9 to 1/18, so over this interval of length 3 the integral lies between 1/6 and 1/3. The integral from 0 to 2 above is the case h=−2 and k=2.
Check yourself
Evaluate the integral below.
∫−11x2+2x+5dxShow the answer
Completing the square gives x2+2x+5=(x+1)2+4, which is at least 4, so the integrand is continuous everywhere. With u=(x+1)/2 and dx=2du, the bounds −1 and 1 become 0 and 1, and
∫−11x2+2x+5dx=42∫011+u2du=21⋅4π=8π,
which is about 0.3927. The integrand decreases from 1/4 to 1/8 on this interval of length 2, so the value lies between 1/4 and 1/2, and it does.
Evaluate the integral below, taking care with the leading coefficient.
∫014x2+4x+2dxShow the answer
The discriminant is 16−32=−16<0, so the quadratic is irreducible. Completing the square with the leading coefficient factored out gives 4x2+4x+2=4(x+21)2+1=(2x+1)2+1. With u=2x+1 and dx=21du, the bounds 0 and 1 become 1 and 3, so
which is about 0.2318. The integrand decreases from 1/2 to 1/10 on an interval of length 1, consistent with the value. Dropping the factor 21 that comes from dx would give about 0.4636, twice the correct value.
Someone completes the square in x2+4x+3 and writes arctan(x+2)+C as the antiderivative of 1/(x2+4x+3). What went wrong? Evaluate the integral of 1/(x2+4x+3) from 0 to 1.
Show the answer
The discriminant is 16−12=4>0, so the quadratic is reducible, and completing the square gives (x+2)2−1, a difference rather than a sum. The inverse tangent form needs (x−h)2+k2 with k>0. Differentiating the claimed answer exposes the error, since the derivative of arctan(x+2) is 1/((x+2)2+1)=1/(x2+4x+5). Partial fractions apply instead. From x2+4x+3=(x+1)(x+3) and 1=A(x+3)+B(x+1), the value x=−1 gives A=1/2 and the value x=−3 gives B=−1/2. The poles −1 and −3 lie outside [0,1], where both factors are positive, so
May we count page visits to understand which courses and learning features are useful? Cloudflare collects visit and performance statistics, without your account details or answers. Your choice does not affect access. Details