Question

$$x^{3}-xpx^{2}-2x^{2}+4px+6x-p+d-6$$

Evaluate

$-px^{3}+x^{3}-2x^{2}+4px+6x+d-p-6$

Differentiate w.r.t. x

$6+4p-4x+3x^{2}-3px^{2}$