First we plot the points A(1,3) and B(−4,1) in the xy-plane. From the point A(1,3), we draw a line parallel to Y-axis and from the point B(−4,1), we draw a line parallel to X-axis. The point of intersection of two lines is on C, which is right angled at C. ∴ The coordinate of C will be (1,1). ∴ Equation of line AC passing through A(1,3) and C(1,1) is y−y1=x2−x1y2−y1(x−x1) ∴y−3=1−11−3(x−1) ⇒y−3=0−2(x−1)⇒x=1
Equation of line BC is y−1=1+41−1(x−1) ⇒y−1=1+40(x−1) ⇒y−1=0⇒y=1
Hence, the legs of a triangle are x=1 and y=1.