How do you write the equation of a circle given endpoints of a diameter (-4,1) and (4,-5)?
- The center of the circle will be the midpoint of the diameter;
- The length of the radius will be half the length of the diameter.
The coordinates of the midpoint of the diameter are given by the average of the coordinates of the endpoints, so
The length of the diameter is given by Pytagora's theorem, so we have
Now that we know everything we need, we can write the equation using the fact that a circle of radius
In our case,
Which we can expand as