What is the indefinite integral $\displaystyle\int (2x+9)e^x\,\mathrm dx$?
Attempt:
Integration by parts seems obvious.
$u = 2x + 9, \mathrm du = 2$
$\mathrm dv = e^x, v = e^x$
$uv - \int v\,\mathrm du$
$(2x+9)e^x - \int 2e^x$
$(2x+9)e^x - 2e^x$
This is wrong but I don't see why.
As the comment mention, the result is not wrong; we can verify this by differentiation (using the product rule):
$$\frac{\mathrm d}{\mathrm dx}(2x+7)e^x = (2x+7)e^x + 2e^x = (2x+9)e^x$$
(Note that $(2x+9)e^x - 2e^x = ((2x+9)-2))e^x = (2x+7)e^x$.)
However, it is important to stress that for a function $u = u(x)$, one has:
$$\mathrm d u = u'(x) \,\mathrm dx$$
as opposed to simply $u'(x)$. When you get further in your mathematical studies, you will get to know that:
I hope that instigates some curiosity as to what these mysterious $\mathrm dx$s are, and what the intuition behind them should be.