Note

Now test

1|r−r′|=1R

so we can rewrite R as r2−2r⋅r′+r′2=r1−2r⋅r′/r2+r′2/r2.
Now use the Taylor expansion

(1+x)−1/2=1−12x+O(x2)

thus we have

1R=1r(1+r⋅r′r2−r′22r2+O((r′r)2))(r⋅r′r2)2=r2∗r′2/(r4)=r′2/r2

A second-order Taylor series expansion of a scalar-valued function of more than one variable can be written compactly as

T(x)=f(a)+(x−a)T∇f(a)+…

where the x,a are vectors