This is from James Stewart's Multivariable Calculus book, page 651 question 33. Find the area enclosed by the x-axis and the curve $x=1+e^t$, $y=t-t^2$.
The answer given has the following steps that I do not understand. It's supposed to be integration by parts. $$\int_0^1(t-t^2)e^tdt$$ $$=\int_0^1te^tdt-\int_0^1t^2e^tdt=\int_0^1te^tdt-[t^2e^t]_0^1+2\int_0^1te^tdt$$
My confusion is on $[t^2e^t]_0^1$, which is supposed to be $[f(x)g(x)]_a^b$ of the integration by part formula. Isn't $f(x)=t-t^2$ and $g(x)=1+e^t$?
Please advice.