Exercise 7.7 · Q4:
Integrate the function
Let .
Put . Then .
Using ,
.
Want the reason behind every step, the basics and the checks?
Complete the square: , a square minus a positive number. After the root is with , and formula 7.6.2 (i) applies:
Compared with Q3 the only changes are the minus sign in front of the log and a domain with a gap in it.
- Given
- The integrand .
- To find
- , and where the answer is valid.
- Plan
- (1) Complete the square. (2) Find the domain. (3) Put . (4) Recall how 7.6.2 (i) is derived. (5) Apply it with and return to . (6) Differentiate back.
Basics you need
Derived in the textbook (Section 7.6.2) by parts, with the constant function 1 as the second function, using formula 7.4 (4): . Lesson: integration by parts
wherever , whether is positive or negative (standard formula (xii), Section 7.2). Basics: logarithms and 1/x
Solution
Complete the square
Half the coefficient of is 2, and :
The leftover is negative, so the shape is "square minus " with : formula 7.6.2 (i).Completing the square, as in Section 7.4 (7). Basics: completing the squareThe domain has two pieces
We need , that is :
Numerically, or (to three decimals). Between these values the quadratic is negative and the integrand does not exist.
means or . The roots of are ; the upward parabola is non-negative outside them. Because the domain has a gap, the constant may even be chosen differently on the two pieces.Put
Then and
A shift has derivative 1, so . The domain becomes , exactly where is real.Integration by substitution, Section 7.3.1. Basics: substitutionHow formula 7.6.2 (i) is derived
For , , let . By parts (first function the root, second function 1), and writing :
With 7.4 (4) and solving for :
This is the textbook's own derivation in Section 7.6.2. The derivative of is , so the product rule term is . The part comes with a minus sign this time, which is why the log is subtracted.Integration by parts, Section 7.6; formula 7.4 (4). Lesson: integration by partsApply it with and return to
With , . Putting back and :
Here the modulus really matters. On the left piece, is negative and , so is negative there. It is never 0: that would need , and squaring gives , impossible. So the log is defined on the whole domain.Formula 7.6.2 (i). Lesson: integration by partsCheck: differentiate the answer
Write , , so where . Then
So the derivative of our answer is, over the denominator ,
, and with . The rule holds for negative as well, so the check covers both pieces. It needs , so it applies at every point of the domain except the two end points ; there the integrand is 0 and the answer's one-sided slope is 0 as well.Product rule; chain rule; standard formula (xii), Section 7.2. Basics: logarithms and 1/x
valid for and for . (Textbook answer: , the same.)
By Section 7.8, for our answer , on any interval where the integrand is continuous. The middle column is a computer's sum of very many thin strips, found without our answer. One interval is taken on each piece of the domain:
| Interval | Sum of thin strips | |
|---|---|---|
- Plus sign in front of the log. For the log term is subtracted; gives derivative .
- Dropping the modulus. On the expression inside the log is negative.
- Claiming the domain is all real . Between and the quadratic is negative.
- Leftover negative after completing the square, with : formula 7.6.2 (i), log term subtracted.
- Formulas (i) and (ii) are one pattern: equals plus , plus , with in (ii) and in (i).
- Find the domain; when it has two pieces, check one interval on each.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Completing the square | Steps 1, 2 | Section 7.4 (7); Example 23 (Basics: completing the square) |
| Substitution | Step 3 | Section 7.3.1 |
| Step 4 | Formula 7.4 (4) | |
| formula | Steps 4, 5 | Formula 7.6.2 (i), Section 7.6.2 |
| Step 6 | Standard formula (xii), Section 7.2 | |
| Numerical check | Section 7.8 (Lesson: definite integrals) |
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 →