Extend the line segment AM until it touches AC, and call that intersection point P. Triangle AMP then forms a pair of similar triangles:
![\Delta AMP\sim\Delta PDM](https://img.qammunity.org/2020/formulas/mathematics/middle-school/xzy7f5gnow0y4g22go9h4rtnwbl4f773y4.png)
From this we know that angles MDP and AMP are congruent, and we already know MDP is a right angle so it follows that
.
(You can ignore most of the labels in the image; I realized moments later after posting that the proof is much simpler than I originally thought)