The orthocenter of a triangle is the intersection of the triangle's three altitudes. This is shown below:
To find the orthocenter of the triangle, we need to find the equation of the lines of the triangle and find the lines perpendicular to each of them. We will only need to do this for two sides.
The equation of a line is given to be:
where m is the slope and b is the intercept.
The slope is calculated to be:
Two lines are perpendicular if the product of their slopes is equal to -1, such that:
Therefore, the slopes of perpendicular lines are inverse reciprocals of each other.
Equation of Line AB:
The slope of the line is:
This means that the line is a vertical line. Therefore, the equation of the line is