Step 1: Identify the coordinates of the endpoints of the diameter.
Given the endpoints of the diameter are A(x1,y1)=(2,4) and B(x2,y2)=(−2,6).
Step 2: Use the diameter form of the equation of a circle.
The equation of a circle with endpoints of a diameter (x1,y1) and (x2,y2) is given by:
(x−x1)(x−x2)+(y−y1)(y−y2)=0
Step 3: Substitute the given coordinates into the equation.
Substitute x1=2, y1=4, x2=−2, and y2=6:
(x−2)(x−(−2))+(y−4)(y−6)=0
(x−2)(x+2)+(y−4)(y−6)=0
Step 4: Expand and simplify the equation.
Expand the first product (x−2)(x+2):
x2−(2)2=x2−4
Expand the second product (y−4)(y−6):
y2−6y−4y+(−4)(−6)=y2−10y+24
Substitute these expanded forms back into the equation:
(x2−4)+(y2−10y+24)=0
x2+y2−10y−4+24=0
x2+y2−10y+20=0
The equation of the circle is x2+y2−10y+20=0.