Solution:
Concept: The product rule: if u and v are functions of x, then
dxd(uv)=udxdv+vdxdu
For three factors the same idea gives dxd(uvw)=dxduvw+udxdvw+uvdxdw: differentiate one factor at a time and keep the other two as they are.
Step 1 — Name the three factors. We let u=x, v=2x−1 and w=x+2, so that:
dxdu=1
dxdv=2
dxdw=1
Step 2 — Apply the product rule for three factors. We differentiate one factor at a time and keep the other two:
dxdy=1⋅(2x−1)(x+2)+x⋅2⋅(x+2)+x(2x−1)⋅1=(2x−1)(x+2)+2x(x+2)+x(2x−1)
Step 3 — Expand the three products. We multiply out each product separately so that like terms can be collected:
(2x−1)(x+2)=2x2+3x−2
2x(x+2)=2x2+4x
x(2x−1)=2x2−x
Step 4 — Add the three results. We collect the x2 terms, the x terms and the constant separately:
dxdy=(2x2+2x2+2x2)+(3x+4x−x)−2=6x2+6x−2
Step 5 — Check by expanding first. Multiplying out the original product and then using the power rule gives the same derivative:
x(2x−1)(x+2)=2x3+3x2−2x
dxd(2x3+3x2−2x)=6x2+6x−2
Therefore, dxdy=(2x−1)(x+2)+2x(x+2)+x(2x−1), or 6x2+6x−2 in simplified form.