Dayaan M. answered 20d
Experienced Math and Computer Science Tutor - Helping Students Excel
In order to choose the right trig substitution, look at the form under the square root. We have 9 + 25x^2, which is a constant PLUS a square, and that pattern always calls for tangent, because the identity 1 + tan^2 = sec^2 is what will collapse the root.
We want 25x^2 to turn into 9tan^2, so we set:
5x = 3tan(theta), which means x = (3/5)tan(theta) and dx = (3/5)sec^2(theta) d(theta)
Now the root simplifies beautifully:
sqrt(9 + 25x^2) = sqrt(9 + 9tan^2(theta)) = 3sqrt(1 + tan^2(theta)) = 3sec(theta)
And the x^2 on the bottom becomes (9/25)tan^2(theta). Substituting everything in:
integral of [3sec(theta) times (3/5)sec^2(theta)] / [(9/25)tan^2(theta)] d(theta)
The constants work out to (9/5)(25/9) = 5, so this is:
5 times the integral of sec^3(theta)/tan^2(theta) d(theta)
Now here is the useful move. Rewrite that in terms of sine and cosine, since sec^3/tan^2 is (1/cos^3)(cos^2/sin^2), which is 1/(cos(theta) sin^2(theta)). Then use the fact that sin^2 + cos^2 = 1 to split it into two pieces we already know:
1/(cos sin^2) = (sin^2 + cos^2)/(cos sin^2) = sec(theta) + cos(theta)/sin^2(theta)
The first piece integrates to ln|sec(theta) + tan(theta)|. The second is a plain u-substitution with u = sin(theta), giving -1/sin(theta), which is -csc(theta). So:
5[ln|sec(theta) + tan(theta)| - csc(theta)] + C
Remember, we are not done until we get back to x. From our substitution, tan(theta) = 5x/3 and sec(theta) = sqrt(9 + 25x^2)/3. For csc, use sin = tan/sec, which gives sin(theta) = 5x/sqrt(9 + 25x^2), so csc(theta) = sqrt(9 + 25x^2)/(5x). Substituting back and folding the constant -5ln(3) into C:
So, our final answer is 5ln|sqrt(9 + 25x^2) + 5x| - sqrt(9 + 25x^2)/x + C.
It is always worth checking an integral by differentiating it. The log term gives 25/R and the second term gives 9/(Rx^2), where R is sqrt(9 + 25x^2). Adding those gives (25x^2 + 9)/(Rx^2), and since 25x^2 + 9 is just R^2, that reduces to R/x^2, which is exactly what we started with.