that's just the distance between 2 points
the distance between (x1,y1) and (x2,y2) is

we can find the distance between S and Q or P and R
S and Q is (0,0) and (a,b)


distance between P and R is between(0,b) and (a,0)




so the lengths of diagonals are congruent