While writing the response, you can insert LaTeX code pretty much in the same way you include it while writing a report or paper. Inline \cos\alpha^2+\sin\alpha^2=1 by inserting the LaTeX math between two $ symbols or displayed
\cos\alpha^2+\sin\alpha^2=1
by inserting the LaTeX math between two pairs $$ of symbols.