
Let A, B, C and P have position vectors a, b, c and
p=α+β+γαa+α+β+γβb+α+β+γγc,
where α, β, γ are the barycentric coordinates of P. Then D has position vector
β+γβb+β+γγc,
so the circles on diameters BC and AD have equations
(r−b)⋅(r−c)=0and(r−a)⋅(r−β+γβb−β+γγc)=0,
respectively; alternatively, but equivalently, the latter reads
β(r−a)⋅(r−b)+γ(r−a)⋅(r−c)=0.
Any linear combination of the two is the equation of a circle or straight line through a and a′. In particular, the linear combination formed by multiplying the first equation by βγ and the second by α, and adding, is
αβ(r−a)⋅(r−b)+βγ(r−b)⋅(r−c)+γα(r−c)⋅(r−a)=0.
The symmetry of this equation shows that this circle (or, possibly, straight line) also passes through b, b′ and c, c′. Finally, notice that αβ+βγ+γα is positive when P lies inside the triangle ABC, so the locus is indeed a circle centered at the point whose barycentric coordinates are α(β+γ), β(γ+α), γ(α+β), respectively.