There is a website with 100 proofs of the famous theorem of Pythagoras, but when I trawled the net looking for a proof of the converse, they all assume the basic theorem.
Here’s how to do it from scratch, which is considerably more satisfying, and also a simple application of similar triangles and basic algebra: