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:
$$y=5x+2$$
To see that this is true, we find by differentiating $f$ with respect to $x$:
$$f'(x)=\left(e^x+x \right)e^x+\left(e^x+1 \right)^2$$
Hence, we find:
$$f'(0)=5$$
and then applying the point-slope formula, we have:
$$y-2=5(x-0)$$
$$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:
$$A_T=\frac{1}{2}\cdot\frac{2}{5}\cdot2=\frac{2}{5}$$
To find the area under the curve, I instructed him to let $x_0$ represent this root, and so we may write:
$$A_C=\int_{x_0}^0 \left(e^x+x \right)\left(e^x+1 \right)\,dx$$
Next, use the substitution:
$$u=e^x+x\,\therefore\,du=\left(e^x+1 \right)\,dx$$
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:
$$A_C=\int_0^1 u\,du=\frac{1}{2}\left[u^2 \right]_0^1=\frac{1}{2}$$
Finally, since the shaded area $A$ is the area under the curve less the area under the tangent line, we may write:
$$A=A_C-A_T=\frac{1}{2}-\frac{2}{5}=\frac{1}{10}$$