We know that |x|={\begin{matrix}x, & x\geq 0 \\ -x, & x<0\end{matrix}
Hence, |x+1|={\begin{matrix}x+1, & x\geq -1 \\ -(x+1), & x<-1\end{matrix}
The graph of the given functions is

The shaded area is the required area.
Area =∫01(yline−ycurve)dx
Area =∫01(x+1−2x)dx
Using \displaystyle \int {x}^{n}dx=\frac{{x}^{n+1}}{n+1}&\int {a}^{x}dx=\frac{{a}^{x}}{{\mathrm{log}}_{e}a}, we get
Area =[2x2+x−loge22x]01
Area =(21+1−loge22)−(0+0−loge21)
Area =23−loge21 sq units.