Want the reason behind every step, the basics and the checks?
The one idea this problem is built on
Completing the square turns the denominator into "a constant minus a square": x+4−x2=417−(x−21)2. The shift t=x−21 gives ∫a2−t2dt with a=217, a standard logarithm formula. The denominator stays positive on [0,2], so the formula applies on the whole interval.
Given, to find, and the plan
Given
The integrand x+4−x21 on [0,2].
To find
The exact value of the integral, and a decimal.
Plan
(1) Complete the square and check the denominator is never 0 on [0,2]. (2) Substitute t=x−21 and change the limits. (3) Use ∫a2−t2dt. (4) Evaluate and simplify the logarithms to the book's form. (5) Check by differentiating an antiderivative in x, and numerically.
The denominator is 0 at x=21±17, about −1.56 and 2.56. Both lie outside [0,2] (the figure shows the one at 2.56), so the fundamental theorem can be used. The bound shows this without decimals.
Then dt=dx. Write a=217, so a2=417 and the denominator is a2−t2.
New limits. When x=0,t=−21. When x=2,t=23.
∫02x+4−x2dx=∫−2123a2−t2dt.
Why it is valid on the whole interval.t=x−21 is a shift: increasing, with derivative 1. Every t in [−21,23] has ∣t∣≤23<a≈2.06, so a2−t2>0 throughout.
After completing the square the expression depends on x only through x−21; naming it t gives exactly the shape of a standard formula.
In decimals: 421+517≈10.4038820, its logarithm is about 2.342179009, and dividing by 17≈4.123105626 gives I≈0.5680618. (Nine decimals are kept here because 2.3421790 divided by 4.1231056 would round to 0.5680619.)
(17+3)2=17+617+9 and (17+1)2=17+217+1. In the product, 317⋅17=51. Dividing 168+4017 and 32 by 8 gives 421+517.
y=x+4−x21 is lowest, 174, at x=21 and equals 21 at x=2. It blows up at x≈2.56 (dashed), where the denominator is 0, outside [0,2]. The shaded area is about 0.568.
The integrand stays between 174≈0.235 and 21 on an interval of length 2, so the area is between 0.47 and 1. The value 0.568 fits.
A numerical integration of x+4−x21 over [0,2] gives 0.5680618. The two rationalised fractions: 413+317≈6.3423292 and 89+17≈1.6403882; their product is about 10.4038820, the same as 421+517≈10.4038820.
Common mistakes
Sign errors when completing the square.x+4−x2=−(x2−x−4); handle the minus before completing the square, or the result is (x−21)2−417 with the wrong sign.
Using the x2−a21 formula. The denominator is a2−t2 (formula (2)), not t2−a2 (formula (1)); the two answers differ by a sign.
Forgetting to check the zeros of the denominator. If the interval had reached the zero x=21+17≈2.56, the integral would not exist as a definite integral of a continuous function.
What to take away
A quadratic denominator: complete the square, shift, then use one of the formulas of Section 7.4.
Before using a log formula on [a,b], check that the denominator has no zero in [a,b].
Combine logarithms and rationalise surds to reach the book's form.
Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →