given data shows us that triangle with sides a,b,c is a right triangle.(because you've stated "similar triangles")

alter your given equations

use these equations to show

which finally provides us to conclude for any right triangle, the proved equation is true.