I found a photo from Facebook (now removed) with the following content:
When integrating by parts, students often struggle with how to break up the original integrand into $u$ and $dv$. $\color{blue}{\rm LIATE}$ is an acronym that is often used to determine which part of the integrand should become $u$. Here's how it works: let $u$ be the function from the original integrand that shows up on the list below.
- Logarithmic functions e.g. $(\ln x)$
- Inverse trigonometric functions e.g. $(\tan^{-1}x)$
- Algebraic functions e.g. $(x^{3} + x - 2)$
- Trigonometric functions e.g. $(\cos x)$
- Exponential functions e.g. $(e^{x})$
In general, we want to let $u$ be a function whose derivative $du$ is both relatively simple and compatible with $v$. Logarithmic and inverse trigonometric functions appear first in the list because their derivatives are algebraic, so if $v$ is algebraic, $v\,du$ is algebraic and an integration with "weird" functions is transformed into one that is completely algebraic. Note that the LIATE approach does not always work, but in many cases it can be helpful.
I tried to use this approach on a relatively simple integral, which is
$$\int (\ln x)^{2}\,dx.$$
I am quite confused whether $u$ should be $\ln x$ or $(\ln x)^{2}$. Is there a more refined way to integrate by parts?
Edit to avoid confusion: I found the antiderivative of $(\ln x)^{2}$, but I am asking for an "easier" way.
Yes, here is a general rule that I like to follow. First I will say out some notation: $$I[f]=\int fdx,\,\,\,D[f]=\frac{d}{dx}f$$ and in general we can say: $$\int fg\,dx=fI[g]-D[f]I^2[g]+D^2[f]I^3[g]-...$$ So in general you have this $+,-$ pattern and you are differentiating the first function and integrating the second function.
Here is an example: $$\int \underbrace{x^2}_{\color{red}{D}}\underbrace{e^{-ax}}_{\color{blue}{I}}\,dx$$ $$=\color{red}{\left[x^2\right]}\color{blue}{\left[\frac{e^{-ax}}{-a}\right]}-\color{red}{\left[2x\right]}\color{blue}{\left[\frac{e^{-ax}}{a^2}\right]}+\color{red}{\left[2\right]}\color{blue}{\left[\frac{e^{-ax}}{-a^3}\right]}-\color{red}{\left[0\right]}\color{blue}{\left[\frac{e^{-ax}}{a^4}\right]}$$ now we can stop at this point because if we just keep differentiating $0$ we still get $0$.
You may also wish to think of it as this: $$\int \underbrace{f}_{D}\underbrace{g}_{I}\,dx=D_0I_1-D_1I_2+D_2I_3-...$$