Using the geometric mean theorem,

Using Pythagoras on triangle
,

Triangles
and [ted]CBD[/tex] are similar because corresponding angles are congruent and pairs of corresponding sides have proportional lengths.
To determine this, use the complementary angles.