The hypotenuse of an isosceles right angled triangle has its ends at the points $(1,3)$ & $(-4,1)$. Find the equation of the legs (perpendicular sides) of the triangle.
My Attempt,
From the given information, I found the equation of the hypotenuse, using.. $$y-y_1=\frac {y_2-y_1}{x_2-x_1} (x+x_1)$$ $$y-3=\frac {1-3}{-4-1} (x-1)$$ $$y-3=\frac {-2}{-5} (x-1)$$ $$-5y+15=-2x+2$$ $$2x-5y+13=0$$,
...

If triangle has its vertices on a circle and one side is a diameter of the circle, then the angle opposite that side is a right angle.
The center of the circle is $C=\left(-\frac{3}{2},2\right)$ and the radius is $\frac{\sqrt{29}}{2}$ so its equation can be found. The slope of the perpendicular bisector of the segment $AB$ has slope $-\frac{5}{2}$ and contains $C$. The line intersects the circle at $E$ and at $D$ but all that is wanted is the slope of $EA$ and $BE$ which can be found by finding the coordinates of $E$. The slope of $DA$ is the same as $BE$ and the slope of $DB$ is the same as the slope of $EA$.
However, that way is considerably messy. It is probably easier to use trigonometry.
The line $AB$ makes an angle $\theta=\arctan\left(\frac{2}{5}\right)$ with the horizontal. The side $AD$ makes an angle $45^\circ+\arctan\left(\frac{2}{5}\right)$ so its slope is $\tan\left(45^\circ+\arctan\left(\frac{2}{5}\right)\right)=\frac{7}{3}$. Since $EA$ is perpendicular to $AD$ it has slope $-\frac{3}{7}$.
Note: This uses the identity $\tan(X+Y)=\dfrac{\tan X+\tan Y}{1-\tan X\tan Y}$.
The equation of the lines containing the four sides satisfying the conditions of the problem are
These simplify as follows: