Can this function be integrated? Can't seem to figure out this integral! I'm trying to integrate this but I think the function can't be integrated? Just wanted to check, and see if anyone is able to find the answer (I used integration by parts but it doesn't work). Thanks in advance; the function I need to integrate is $$\int\frac{x}{x^5+2}dx$$

Probably you'd want to use the calculus of residues to do this.
But below I do it using first-year calculus methods.
The cumbersome part may be the algebra, and that's what I concentrate on here.
\begin{align}
x^5 + 2 & = \left( x+\sqrt[5]{2} \right) \underbrace{\left( x - \sqrt[5]{2} e^{i\pi/5}\right)\left( x - \sqrt[5]{2} e^{-i\pi/5}\right)}_\text{conjugates}\ \underbrace{\left( x - \sqrt[5]{2} e^{i3\pi/5}\right)\left( x - \sqrt[5]{2} e^{-i3\pi/5}\right)}_\text{conjugates} \\[10pt]
& = \left( x+\sqrt[5]{2} \right) \left( x^2 - 2 \sqrt[5]{2} \cos\frac{\pi} 5 + \sqrt[5]{2}^2 \right)\left( x^2 - 2\sqrt[5]{2}\cos\frac{3\pi}5 + \sqrt[5]{2}^2 \right)
\end{align}
Then use partial fractions.
That the polynomials $x^2 - 2\sqrt[5]{2}\cos\frac{\pi} 5 + \sqrt[5]{2}^2$ and $x^2 - 2\sqrt[5]{2}\cos\frac{3\pi} 5 + \sqrt[5]{2}^2$ cannot be factored using real numbers can be seen from the way we factored them above.  So you'll have
$$
\cdots + \frac{Bx+C}{x^2 - 2\sqrt[5]{2}\cos\frac{\pi} 5 + \sqrt[5]{2}^2} + \cdots
$$
etc. and you'll need to find $B$ and $C$.
Let $u=x^2 - 2x\sqrt[5]{2}\cos\frac{\pi} 5 + \sqrt[5]{2}^2$ then $du = (2x + \sqrt[5]{2}\cos\frac{\pi}5)\,dx$ and so
$$
\frac{Bx + C}{x^2 - 2x\sqrt[5]{2}\cos\frac{\pi} 5 + \sqrt[5]{2}^2}\,dx = \underbrace{\frac{\frac B 2 \left( 2x+\sqrt[5]{2}\cos\frac{\pi}5 \right)}{x^2 - 2x\sqrt[5]{2}\cos\frac{\pi} 5 + \sqrt[5]{2}^2}\,dx}_\text{Use the substitution for this part.} + \underbrace{\frac{\left( 1 - \frac B2 \right) \sqrt[5]{2}\cos\frac{\pi} 5}{x^2 - 2x\sqrt[5]{2}\cos\frac{\pi} 5 + 1}\,dx}_\text{See below for this part.}
$$
To integrate $\frac{\left( 1 - \frac B2 \right) \sqrt[5]{2}\cos\frac{\pi} 5}{x^2 - 2x\sqrt[5]{2}\cos\frac{\pi} 5 + \sqrt[5]{2}^2}\,dx$, complete the square:
\begin{align}
& x^2 - 2x\sqrt[5]{2}\cos\frac{\pi} 5 + \sqrt[5]{2}^2 = \left( x^2 - 2x\sqrt[5]{2}\cos\frac{\pi} 5 + \sqrt[5]{2}^2\cos^2\frac{\pi}5 \right) + \sqrt[5]{2}^2 \sin^2\frac{\pi} 5 \\[10pt]
= {} & \left( x - \sqrt[5]{2}\cos\frac{\pi} 5 \right)^2 + \sqrt[5]{2}^2\sin^2 \frac{\pi} 5 \\[10pt]
= {} & \left(\sqrt[5]{2}^2 \sin^2 \frac{\pi} 5 \right) \left( \left( \frac{x-\sqrt[5]{2}\cos\frac{\pi} 5}{\sqrt[5]{2}\sin\frac{\pi} 5} \right)^2 + 1 \right) = (\text{constant})\cdot(w^2 + 1) \\[10pt]
& \text{and } dw = \frac{dx}{\sqrt[5]{2}\sin\frac{\pi}5}.
\end{align}
So you get an arctangent from this term.
