TeX source:
D\left(\left(x^{2}+1\right)(7 x-3)\right)=D\left(7 x^{3}-3 x^{2}+7 x\right)=21 x^{2}-6 x+7