Question
Question: Prove that the equation to the circle of which the points $(x_1,y_1)$ and $(x_2,y_2)$ are the ends o...
Prove that the equation to the circle of which the points (x1,y1) and (x2,y2) are the ends of a chord of a segment containing an angle θ is (x−x1)(x−x2)+(y−y1)(y−y2)=±cotθ[(x−x1)(y−y2)−(x−x2)(y−y1)]=0.

The equation of the circle is (x−x1)(x−x2)+(y−y1)(y−y2)=±cotθ[(x−x1)(y−y2)−(x−x2)(y−y1)].
Solution
Let P(x,y) be any point on the circumference of the circle, and let A=(x1,y1) and B=(x2,y2) be the endpoints of the chord. The angle subtended by the chord AB at point P is ∠APB=θ. The slope of PA is mPA=x−x1y−y1 and the slope of PB is mPB=x−x2y−y2. Using the formula for the angle between two lines, tanθ=1+mPAmPBmPA−mPB, and simplifying, we get tanθ=(x−x1)(x−x2)+(y−y1)(y−y2)(y−y1)(x−x2)−(y−y2)(x−x1). Let S=(x−x1)(x−x2)+(y−y1)(y−y2) and N=(y−y1)(x−x2)−(y−y2)(x−x1). Then tanθ=SN, which implies Stanθ=±N. Substituting back the expressions for S and N, we get [(x−x1)(x−x2)+(y−y1)(y−y2)]tanθ=±[(y−y1)(x−x2)−(y−y2)(x−x1)]. Multiplying by cotθ, we obtain (x−x1)(x−x2)+(y−y1)(y−y2)=±cotθ[(y−y1)(x−x2)−(y−y2)(x−x1)]. The term (x−x1)(y−y2)−(x−x2)(y−y1) is related to the signed area. The equation can be written as (x−x1)(x−x2)+(y−y1)(y−y2)=±cotθ[(x−x1)(y−y2)−(x−x2)(y−y1)]. The ± sign accounts for the two possible segments where the angle θ can be subtended.