Concept used — distance formula and the converse of Pythagoras' theorem
For P(x1,y1) and Q(x2,y2),
PQ2=(x2−x1)2+(y2−y1)2
If, in a triangle, the square of the longest side equals the sum of the squares of the other two sides, the angle opposite the longest side is 90∘ (converse of Pythagoras' theorem). Working with squared lengths avoids square roots.
Step 1 — Name the points. Let A(4,4), B(3,5) and C(−1,1).

Step 2 — Find AB2. Take A(4,4) as (x1,y1) and B(3,5) as (x2,y2).
AB2=(3−4)2+(5−4)2=(−1)2+12=1+1=2
Step 3 — Find BC2. Take B(3,5) as (x1,y1) and C(−1,1) as (x2,y2).
BC2=(−1−3)2+(1−5)2=(−4)2+(−4)2=16+16=32
Step 4 — Find AC2. Take A(4,4) as (x1,y1) and C(−1,1) as (x2,y2).
AC2=(−1−4)2+(1−4)2=(−5)2+(−3)2=25+9=34
Step 5 — Compare. The longest side is AC (since 34 is the largest square). The other two give
AB2+BC2=2+32=34=AC2
Answer: by the converse of Pythagoras' theorem, △ABC is right-angled at B (the vertex opposite the longest side AC). Hence proved.
Note: always test the longest side against the other two; AB2+AC2=36=32 would wrongly suggest there is no right angle.