\begin{align*}
\int_\psi^\varphi (x^2-1) e^{2x} \mathrm{d}x
= \frac{1}{4} \Bigl[ \bigl(2\overbrace{x(x-1)}^{1}-1\bigr) e^{2x} \Bigr]_\psi^\varphi
= \frac{1}{4} \Bigl[ e^{2x} \Bigr]_\psi^\varphi = \frac{e^{1+\sqrt{5}} - e^{1-\sqrt{5}}}{4}
\end{align*}