Let f(x)=x−axn−an, x=a. Quotient rule: (vu)′=v2u′v−uv′.
Here u=xn−an and v=x−a. Since an is a constant, u′=nxn−1, and v′=1.
f′(x)=(x−a)2nxn−1(x−a)−(xn−an)⋅1
Multiply out the numerator: nxn−1⋅x=nxn.
=(x−a)2nxn−naxn−1−xn+an
=(x−a)2(n−1)xn−naxn−1+an
∴f′(x)=(x−a)2(n−1)xn−naxn−1+an.