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.
- To calculate each segment of the line given the ratio, the answer is simply
- $`(x_1 + \dfrac{x_2 - x_1}{r}, y_1 + \dfrac{y_2 - y1}{r})`$, where $`r, (x_1,y_1) (x_2,y_2)`$ are the **total** ratio, first point and second point respectively.
- Note that the above is for moving up a line. When moving down, we simply subtract like so:
- For example, from a point like $`(2, 3)`$ to a point ($`5, 6)`$, and having a ratio of $`2:1`$ split at point $`P`$, the coordindates of point $`P`$ is simply
- 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.