First of all, we compute the points of interest, i.e. the points where the curve cuts the x axis: since the expression is already factored, we have
![x(x-1)(x+2) = 0 \iff x=0\ \lor\ x-1=0\ \lor\ x+2=0](https://img.qammunity.org/2020/formulas/mathematics/middle-school/opftd2h2osnjcvzfpmgv2giad8rdb392hs.png)
Which means that the roots are
![x=0\ \lor\ x=1\ \lor\ x=-2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/di3ixn03vgfnj6vxee2suvevfkzhg1vq4e.png)
Next, we can expand the function definition:
![y = x(x-1)(x+2) = x^3 + x^2 - 2x](https://img.qammunity.org/2020/formulas/mathematics/middle-school/u49yv0i15ky2b5pbr56zifrmfdmrmv8you.png)
In this form, it is much easier to compute the derivative:
![y' = 3x^2+2x-2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/s7hisopdvsgwl28ttp32atoe5nep142rfs.png)
If we evaluate the derivative in the points of interest, we have
![y'(-2) = 6,\quad y'(0)=-2,\quad y'(1)=3](https://img.qammunity.org/2020/formulas/mathematics/middle-school/bg6zk8yvm1yhwzmfrgtdvpasnvi93qei1h.png)
This means that we are looking for the equations of three lines, of which we know a point and the slope. The equation
![y-y_0=m(x-x_0)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/6w6yur8t5xhwjpm9jh8idl3enr7834bz5s.png)
is what we need. The three lines are:
This is the tangent at x = -2
This is the tangent at x = 0
This is the tangent at x = 1