Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Possible Duplicate:
Weird and difficult integral: $\sqrt{1+\frac{1}{3x}} \, dx$

So a couple of weeks ago I ran by accident with this integral. This is by no means homework, I just want to solve it out of curiosity. After asking for help and struggling for like 10 hours total I finally managed to reach something that makes some sense. However, the result is not the same as wolframalpha (integration or differentiate the primitive), and I was wondering where did I go wrong. Any help will be very much appreciated!

My work was:

$$\int \sqrt{1+\frac{1}{3x}} \, \, dx$$

$$u^2 = 3x$$

$$2u \: du = 3 \:dx \rightarrow \frac{2}{3} u \: du = dx$$

$$\frac{2}{3}\int \sqrt{1+\frac{1}{u^2}} \, \, u \: du$$

$$\frac{2}{3}\int \sqrt{u^2 + 1} \, \, \: du$$

$$ \tan(s) = u \rightarrow du = \sec^2(s) ds$$

$$\frac{2}{3}\int \sqrt{\tan^2(s) + 1} \, \, \: \sec^2(s) \: ds$$

Given that

$$\tan(s) + 1 = \sec^2(s)$$


$$\frac{2}{3}\int \sqrt{\sec^2(s)} \, \, \: \sec^2(s) \: ds$$

$$\frac{2}{3}\int\sec^3(s) \: ds$$


$$\frac{2}{3} \frac{1}{2} (\tan(s) \sec(s) + \log(\tan(s)+\sec(s)))$$

Given that

$$\tan(s) + 1 = \sec^2(s)$$


$$\sec(s) = \sqrt{\tan(s) + 1}$$


$$\frac{1}{3} (\tan(s) \: \sqrt{\tan(s) + 1} + \log(\tan(s)+\sqrt{\tan(s) + 1}))$$


$$\frac{1}{3} (u \: \sqrt{u + 1} + \log(u+\sqrt{u + 1}))$$


$$ u = \sqrt{3x}$$


$$\frac{1}{3} (\sqrt{3x} \: \sqrt{\sqrt{3x} + 1} + \log(\sqrt{3x}+\sqrt{\sqrt{3x} + 1}))$$

You could do some algebra but by now it's too different from wolfram alpha. So anyway.. where did I go wrong?

Thanks a ton everyone!! =)

share|cite|improve this question

marked as duplicate by Did, Arkamis, Thomas, DonAntonio, Austin Mohr Nov 2 '12 at 19:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

What does WolframAlpha say? Your calculation seems right., maybe they are the same in different format. – Berci Nov 2 '12 at 15:20
Have you tried taking the derivative and checking if it matches the original function? – Dan Shved Nov 2 '12 at 15:21
Yes I did and they don't match =( – Damieh Nov 2 '12 at 15:25
I changed $sec$, $tan$, and $log$ to $\sec$, $\tan$, and $\log$. This not only makes them non-italicized but also provides proper spacing in expressions like $x\sin x$. – Michael Hardy Nov 2 '12 at 16:06

1 Answer 1

up vote 2 down vote accepted

In your first change of variable $u^2=3x$, $u^2$ is non-negative but in the original integral $x$ can take negative values.

share|cite|improve this answer
+1! Yes, I know that but why is the result so different from wolframalpha then? =( – Damieh Nov 2 '12 at 15:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.