Trig sub in quadratic - completing the square
Compute the integral:
Solution
(1) Notice square root of a quadratic.
Complete the square to obtain Pythagorean form.
Find constant term for a complete square:
Add and subtract desired constant term:
Simplify:
(2) Perform shift substitution.
Set
Infer
Plug into integrand:
(3)
Trig sub with
.
Identify triangle:

Use substitution
Infer
Plug in data:
(4) Compute trig integral.
Use ad hoc formula:
(5) Convert trig back to
First in terms of
Then in terms of
Plug everything in:
(6) Simplify using log rules.
Log rule for division gives us:
The common denominator
The new term
So we write our final answer thus: