Problem doing a trig substitution to integrate $\int \frac{dx}{x\sqrt{a^2+x^2}}$

87 Views Asked by At

$$\int \frac{dx}{x\sqrt{a^2+x^2}}$$

doing trig substitution with $x = a\tan\theta$ gives me:

$$\frac{1}{a}\ln\left(\tan\frac{\theta}{2}\right)$$

Now I know that $\tan \theta = \dfrac{x}{a}$ which gives a triangle with base $a$ and a height of $x$ but I don't know how to change the variables back in terms of $x$ because of the parameters that tangent receives.

Book answer: $$\frac{1}{a}ln\left(\frac{x}{a + \sqrt{a^2+x^2}}\right)$$

Doing half angle formula I get:

$$\frac{1}{a}ln\left( \frac{\sqrt{a^2+x^2} -a}{x} \right)$$

2

There are 2 best solutions below

0
On BEST ANSWER

We know $\tan \theta = \dfrac{x}{a}$ $(1)$. We will use the fact that $\tan{\frac{\theta}{2}}=\frac{1-\cos\theta}{sin\theta}=\frac{1-\sqrt{1-\sin^2{\theta}}}{\sin\theta}$ $(2)$. Now we shall represent $\sin\theta$ as a function of $\tan\theta$, since we know that $\tan \theta = \dfrac{x}{a}$, that way we can represent $\tan\theta$ as a function of $x$. $$\tan \theta=\frac{\sin \theta}{\cos\theta}\implies\tan^2\theta=\frac{\sin^2 \theta}{\cos^2\theta}=\frac{\sin^2 \theta}{1-\sin^2\theta}$$

I'll leave it to you to show that $\sin^2\theta=\frac{\tan^2\theta}{1+\tan^2\theta}\stackrel{(1)}{=}\frac{x^2}{a^2+x%2}$. Now if we plug this into $(2)$ we get the following: $$\tan\frac{\theta}{2}=\frac{1-\sqrt{1-\frac{x^2}{a^2+x^2}}}{\sqrt{\frac{x^2}{a^2+x^2}}}=\frac{1-\sqrt{\frac{a^2}{a^2+x^2}}}{\sqrt{\frac{x^2}{a^2+x^2}}}=\frac{\sqrt{a^2+x^2}-a}{x}=\frac{(\sqrt{a^2+x^2}-a)(\sqrt{a^2+x^2}+a)}{x(\sqrt{a^2+x^2}+a)}=\frac{x}{a+\sqrt{a^2+x^2}}$$ Now you can simply put this into your antiderivative and you'll get the correct solution.

When doing this yourself you need to be careful about the sign of all the functions you're taking root of or squaring.

0
On

Too long for a comment: Assuming $a > 0$ (without loss of generality) and, for the moment, $x > 0$, substituting $x = a u$, $dx = a \,du$ transforms the integral to the standard form $$\frac{1}{a} \int \frac{du}{u \sqrt{1 + u^2}} = -\frac{1}{a} \operatorname{arcsch} u + C = - \frac{1}{a} \operatorname{arcsch} \frac{x}{a} + C.$$ Now, $$-\operatorname{arcsch} u = -\log \frac{\sqrt{1 + u^2} + 1}{u} = \log \frac{u}{\sqrt{1 + u^2} + 1} = \log \frac{x}{\sqrt{a^2 + x^2} + a},$$ so this solution agrees with that given in the text, but n.b. that antiderivative is only defined for $x > 0$. To extend the antiderivative to all of $\Bbb R \setminus \{0\}$, we can write $$- \frac{1}{a} \operatorname{arcsch} \frac{|x|}{a} + C = \frac{1}{a} \log \frac{|x|}{\sqrt{a^2 + x^2} + a} + C.$$