The endpoints of a diameter of a circle are

Recall that the equation of a circle is given by

Where (h, k) are the coordinates of the center of the circle and r is the radius of the circle.
The coordinates of the center of the circle (h, k) can be found using the midpoint formula.

So, the center of the circle is at (-1, 3)
The radius of the circle can be found using the distance formula
![\begin{gathered} r=\sqrt{\left( {x_2 - x_1 } \right)^2 + \left( {y_2 - y_1 } \right)^2 } \\ r=\sqrt[]{({-3-1_{}})^2+({2_{}-4})^2} \\ r=\sqrt[]{({-4_{}})^2+({-2})^2} \\ r=\sqrt[]{16^{}+4^{}} \\ r=\sqrt[]{20} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/t7vy4n9q2ddw5u29j4651prjpdxo5f2u03.png)
So, the radius of the circle is √20
Finally, let us write the equation of the circle
![\begin{gathered} (x-h)^2+(y-k)^2=r^2 \\ (x-(-1))^2+(y-3)^2=(\sqrt[]{20}^{})^2 \\ (x+1)^2+(y-3)^2=20^{} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/n5ytcknh4krlp7dgsw7rpuipxd59d19deo.png)
Therefore, the equation of the circle is
