If we apply the Sum Rule and note that `q^2` is a constant, we find
Now, `(D-x)^2` is a function of a function to which we can apply the Chain Rule. Specifically, if we write `v=w^2` and `w=D-x`, then `v=(D-x)^2`. The Chain Rule tells us
And, since the adding the constant `q^2` does not change the derivative,
Now, if we write `u=q^2+(D-x)^2` and `z=sqrt(u)`, then
In the previous section, we calculated the derivative of `y=sqrt(p^2+x^2)`:
Finally, we find that