The hypotenuse of an isosceles right angled triangle has its ends at the points $(1,3)$ and $(-4,1)$. Find the equation of the legs (perpendicular sides) of the triangle.
My Approach,
Since the triangle us an isosceles right angles triangle, it has three angles $90°$, $45°$ and $45°$ respectively.
Also, the equation of the hypotenuse is given by: $$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$$
I am stuck at here. Please help me to complete it.

For an isosceles right angled triangle, the perpendicular from the vertex opposite the hypotenuse to the hypotenuse bisects the hypotenuse. Moreover, its length is equal to half the length of the hypotenuse.
So, it is easy to find the third vertex. By the mid-point formula, the mid-point of the hypotenuse is, $$x_m=\frac{1-4}{2}=-\frac{3}{2}$$ $$y_m=\frac{3+1}{2}=2$$
Now, find the distance between this and any end point. The length of the perpendicular is the same distance. Moreover, the slope of the perpendicular is the negative of the reciprocal of the slope of the hypotenuse, a property of perpendicular lines. So, the equation of the perpendicular can be found and the third vertex can be found.
Using the two point form of the equation of a line, the equations of the legs can also be found.