The sides of a triangle are on the lines $2x+3y+4=0$, $ \ \ x-y+3=0$, and $5x+4y-20=0$. Find the equations of the altitudes of the triangle.
Should I find the vertices first? Or is there a direct way? Actually, I tried finding the vertices, using the substitution method but I find it hard to turn it into an equation.
Plan: For the given equation of line as $$ax + by + c = 0 \tag{1}$$ you can find the general equation of perpendicular lines as $$bx - ay + d = 0 \tag{2}$$ for some $d\in \mathbb R$. Now, you just need to find the values of $d$.
In order to find $d$, find the vertex point (the intersection of the other two sides than $(1)$) and plug that into $(2)$ (because the perpendicular line should pass through that vertex). Since $a$ and $b$ are known values you can derive the value of $d$ from there.
Solution: Take the third equation, for example. $$5x+4y-20=0 \tag{1}$$ Then, the general equation of perpendicular lines is $$4x-5y+d = 0 \tag{2}$$ Now, we will find the intersection of the other two lines than $(1)$. $$\begin{cases} 2x + 3y + 4 = 0 \\ x - y + 3 = 0\end{cases} \implies (x,y) = \left(-\frac{13}{5} , \frac{2}{5}\right)$$ Now plug this into $(2)$ to get $$4\left(-\frac{13}{5}\right) - 5 \left(\frac{2}{5}\right) + d = 0 \\ d= \frac{62}{5}$$ Thus, the equation of altitude to the side which is given by $(1)$ is $$\boxed{4x-5y + \frac{62}{5} = 0}$$ You can find the other two altitudes with the same method.