I read this paper: http://people.cs.uchicago.edu/~niyogi/papersps/NiySmaWeiHom.pdf .
I have a problem with the proof of the Lemma 4.1. I don't know how to get the following formula $A=b\sin(\theta)+\sqrt{\epsilon^{2}-b^{2}\cos^{2}(\theta)}$.
I suppose that I should use some formulas with trigonometry and Pythagorean theorem, but I don't see it.
Please, help me with my problem.
Use the orthogonal projection of $q$ onto $T_p^{\perp}$ to split $A$ into two line segments. The bottom one has length $b\sin \theta$, while for the top one you need to apply Pythagoras' Theorem.
Credits: Fig. 1 from the linked paper.