Problem:
Perform the following integration: $$ \int \dfrac{ dx } {x^2 + x + 1} $$
Answer: $$ \int \dfrac{ dx } {x^2 + x + 1} $$ Let $I$ be the integral we are trying to evaluate. \begin{align*} I &= \int \dfrac{ dx } {\left( x + \dfrac{1}{2}\right) ^2 + \dfrac{3}{4} } \end{align*} Now we use the substitution $u = x + \dfrac{1}{2}$. \begin{align*} I &= \int \dfrac{ du } {u^2 + \dfrac{3}{4} } \\ I &= \left( \dfrac{3}{4} \right) \int \dfrac{ du } {\left( \dfrac{4 }{ 3} \right) u^2 + 1 } \end{align*} Now let $v = \left( \dfrac{ \sqrt{3} }{2 }\right) u$. We have: \begin{align*} dv &= \left( \dfrac{ \sqrt{3} }{2 } \right) du \\ du &= \left( \dfrac{ 2 }{ \sqrt{3} } \right) dv \\ I &= \left( \dfrac{3(2)}{2\sqrt{3} }\right) \int \dfrac{ dv } { \left( \dfrac{4}{3} \right) \left( \dfrac{3}{4}\right) v^2 + 1 } \\ % I &= \left( \dfrac{3(2)}{2\sqrt{3} }\right) \int \dfrac{ dv }{ v^2 + 1 } \\ I &= \sqrt{3} \int \dfrac{ dv }{ v^2 + 1 } \\ I &= \sqrt{3} \arctan\left( v \right) + C \end{align*} Hence the answer is: $$ I = \sqrt{3} \arctan\left( \left( \dfrac{ \sqrt{3} }{2} \right) \left( x + \dfrac{1}{2} \right) \right) + C $$
However, an online integral calculator gets: $$ I = \dfrac{ 2 \arctan\left( \dfrac{ 2x+1 }{ \sqrt{3} } \right) } { \sqrt{3} } + C $$ Where did I go wrong?
Here is an updated answer. I believe it is right. I am hoping somebody can confirm that.
$$ \int \dfrac{ dx } {x^2 + x + 1} $$ Let $I$ be the integral we are trying to evaluate. \begin{align*} I &= \int \dfrac{ dx } {\left( x + \dfrac{1}{2}\right) ^2 + \dfrac{3}{4} } \end{align*} Now we use the substitution $u = x + \dfrac{1}{2}$. \begin{align*} I &= \int \dfrac{ du } {u^2 + \dfrac{3}{4} } \\ I &= \left( \dfrac{4}{3} \right) \int \dfrac{ du } {\left( \dfrac{4 }{ 3} \right) u^2 + 1 } \end{align*} Now let $v = \left( \dfrac{ 2 }{ \sqrt{3} }\right) u$. We have: \begin{align*} dv &= \left( \dfrac{ 2 }{ \sqrt{3} } \right) du \\ du &= \left( \dfrac{ \sqrt{3} }{ 2 } \right) dv \\ I &= \left( \dfrac{4}{3}\right) \left( \dfrac{ \sqrt{3} }{2}\right) \int \dfrac{ dv }{ v^2 + 1 } \\ % I &= \left( \dfrac{ 2\sqrt{3} }{3}\right) \arctan( v ) \\ % \end{align*} Hence the answer is: $$ I = \left( \dfrac{ 2\sqrt{3} }{3}\right) \arctan\left( \left( \dfrac{2}{ \sqrt{3} }\right) \left( x + \dfrac{1}{2} \right) \right) \\ $$
An online integral calculator gets: $$ I = \dfrac{ 2 \arctan\left( \dfrac{ 2x+1 }{ \sqrt{3} } \right) } { \sqrt{3} } + C $$ The answers are equivalent.