$$\int_0^1 \frac{dx}{x^2+2x+5}\; $$
Is there a way to solve this integral without performing u-substitution and using the common integral for arctan?
$$\int_0^1 \frac{dx}{x^2+2x+5}\; $$
Is there a way to solve this integral without performing u-substitution and using the common integral for arctan?
Hint:
$$\frac1{x^2+2x+5}=\frac1{8i}\left(\frac1{x+1-4i}-\frac1{x+1+4i}\right)$$
Now use complex logarithms and the complex definition of arctan.
Alternatively, we can use the geometric series:
$$\frac1{x^2+2x+5}=\frac{1/4}{1+\frac{(x+1)^2}4}=\sum_{n=0}^\infty(-1)^n\frac{(x+1)^{2n}}{4^{n+1}}$$
And now it's a simple integration term by term, though this does not lend you closed forms nicely.
Remark: You should probably use arctangents when you can, because things get messy otherwise.
While it's trivial to transform this series into something much simpler, as we can see here
$$\int_0^1 \frac{dx}{x^2+2x+5}$$
$$=\int_0^1 \frac{dx}{(x+1)^2+4}$$
$$=\int_1^2 \frac{dx}{x^2+4} \operatorname*{=}^{x \to 1/x} \int_{1/2}^{1} \frac{dx}{4x^2+1}$$
The important thing is that the answer to your integral is $\frac{1}{2}\arctan(2)-\frac{\pi}{8}$
Note that there is NO simpler closed form for $\arctan(2)$
(except perhaps in terms of complex logarithms which is more of a technicality)