Question

$$x^{2}-\frac{2}{p}(p^{\gamma}+1)x+4$$

Evaluate

$-2xp^{\gamma -1}+x^{2}-\frac{2x}{p}+4$

Differentiate w.r.t. x

$\frac{2\left(px-p^{\gamma }-1\right)}{p}$