To get the center, just find a $`x, y`$ such that $`x - x_c = 0`$ and $`y - y_c = 0`$
## Triangle Centers
## Centroid
The centroid of a triangle is the common intersection of the 3 medians. The centroid is also known as the centre of mass or centre of gravity of an object (where the mass of an object is concentrated).
- Alternatively, only for checking your work, let the centroid be the point $`(x, y)`$, and the 3 other points be $`(x_1, y_1), (x_2, y_2), (x_3, y_3)`$ respectively, then the
centroid is simply at $`(\dfrac{x_1 + x_2 + x_3}{3}, \dfrac{y_1+y_2+y_3}{3})`$
## Circumcentre
The circumcentre ($`O`$) of a triangle is the common intersection of the 3 perpendicular bisectors of the sides of a triangle.
1. Find the equation of the perpendicular bisectors of two sides. **A perpendicular (right) bisector is perpendicular to a side of the triangle and passes through the midpoint of that side of the triangle**.
2. Find the point of intersection of the two lines using elimination or substitution.
## Orthocentre
The orthocenter of a triangle is the common intersection of the 3 lines containing the altitudes.
- $`(x_1 + \dfrac{p(x_2 - x_1)}{r}, y_1 + \dfrac{p(y_2 - y_1)}{r})`$, where $`r, (x_1,y_1) (x_2,y_2), p`$ are the **total** ratio, first point, second point and the amount of steps respectively.
- Note that the above is for moving up a line. When moving down from the upper point, we simply subtract like so:
- The shortest distance is always a straightline, thus, the shortest distance from a point to a line must be **perpendicular.**
- Thus, you can mind the slope of the line, then get the **negative reciprocal** (perpendicular slope), then find the equation of the perpendicular line.
- After you have the 2 lines, proceed by using subsitution or elimination to find the **point of intersection**.
- Then apply **distance formula** to find the shortest distance.