Let $x_0$ be the point such that $f(x_0) = 0$, so that $e^{x_0} + x_0 = 0$ (because the other factor in $f(x)$ is always positive). The shaded area is given by \(\displaystyle A = \int_{x_0}^0f(x)\,dx - \tfrac25,\) the $\frac25$ being the area of the triangle comprising the unshaded area under the curve. So we have to evaluate $$\int_{x_0}^0f(x)\,dx = \int_{x_0}^0(e^{2x} + (x+1)e^x + x)\,dx = \Bigl[\tfrac12e^{2x} + e^x + \tfrac12x^2\Bigl]_{x_0}^0 = \tfrac12\Bigl[( e^x + x)^2\Bigl]_{x_0}^0 = \tfrac12(1-0) = \tfrac12.$$ Thus $A = \frac12 - \frac25 = \frac1{10}.$
This problem was originally posted about a year ago on another forum, and the student was confused by not having a lower limit of integration. He knew zero was the upper limit, but was unable to determine the root of the curve.
He had already determined the equation of the tangent line to be:
\(\displaystyle y=5x+2\)
To see that this is true, we find by differentiating $f$ with respect to $x$:
and then applying the point-slope formula, we have:
\(\displaystyle y-2=5(x-0)\)
\(\displaystyle y=5x+2\)
And so the area under the tangent line and bounded by the axes is a right triangle whose base is the magnitude of the $x$-intercept, or $\dfrac{2}{5}$, and whose altitude is $2$, which means the area under the line is:
Since $f\left(x_0 \right)=0$, then we must have $e^{x_0}+x_0=0$ as well, because the other factor $e^x+1$ has no real roots. And so our definite integral becomes: