Applications of the line equation: altitudes, medians, side perpendicular bisectors in a triangle