Answer:

Explanation:
In a right angled triangle, if a perpendicular is drawn from a vertex of the right angle then triangles on both sides of the perpendicular are similar.
In ΔPDY, ∠D = 90° and DM ⊥ PY
So, ΔPMD ≈ ΔDMY
If two triangles are similar then their corresponding sides are proportional.

Put

So,

According to Pythagoras theorem, square of hypotenuse is equal to sum of squares of the other two sides.
In ΔDMY,

Put

