\(A=\dfrac{\dfrac{\sqrt{2}}{2}\left(cosa-sina\right)+\dfrac{\sqrt{2}}{2}\left(cosa+sina\right)}{\dfrac{\sqrt{2}}{2}\left(cosa-sina\right)-\dfrac{\sqrt{2}}{2}\left(cosa+sina\right)}\)
\(=\dfrac{2cosa}{-2sina}=-cota\)
\(B=\dfrac{\sqrt{2}cosa-2.\dfrac{\sqrt{2}}{2}\left(cosa-sina\right)}{-\sqrt{2}sina+2.\dfrac{\sqrt{2}}{2}\left(cosa+sina\right)}\)
\(=\dfrac{\sqrt{2}sina}{\sqrt{2}cosa}=tana\)