It is known that if you integrate by parts (twice) say $\int e^{x}cos(x) dx$ you get the original integral again.
Are there any examples of integrals $\int f(x) dx$ where you need to integrate by parts at least 3 times (or more) to get the original integral?
Hint:
If you integrate something, it doesn't matter if it is an integration by parts of any other method, the integrate of a function is independent of the actually used method to calculate it.
Check the complex numbers. Integration by substitution works also for them:
$\int e^{kx} dx=\frac{1}{k}\int e^{kx} dx$
$k$ is a parameter.
If you do this 3 times, you will get $\frac{1}{k^3}\int e^{kx} dx$.
If you want to get back the same, you have to find a $k$, for which $\frac{1}{k^3}=1$. If k is real, then the only possible value is $k=1$. Although in this case it wont't an integration by parts any more.
If we allow complex values, then $k=e^{\frac{2 \pi}{3} i}$ and $k=e^{- \frac{2 \pi}{3} i}$ will be also a solution.
Of course they are complex functions, which may not be allowed by your teacher. But it is already two of them.
You can combine these two complex functions very easily, to get your final, real result.