Let the required circle through origin be
x2+y2+2gx+2fy=0.....(1)
Condition of orthogonality gives
2gg1+2ff1=c1.....(2)
2gg2+2ff2=c2....(3)
Eliminating the unknowns 2g and 2f from (1),(2) and (3), we get
∣∣
∣
∣∣xyx2+y2g1f1−c1g2f2−c2∣∣
∣
∣∣=0
Above is the required equation of circle.