step-by-step
$$\frac{d}{da}\left(\frac{\left(a^{6}+2a^{5}-3a^{3}-2a^{4}-a-1\right)}{\left(a^{5}+a^{2}-a+1\right)}\right)$$
es