[Tex/LaTex] Solve system equation

equations

I want to write the step by step solution of a system equation in LaTeX. But, dispite I can write the system equation, I don't know how to write at the right side of this system equation the steps of the solution. This is the code I used to write the system:

$\left.
\begin{array}{rcl}
     \tan(\alpha) & = & \dfrac{h}{x}  \\ 
     \tan(\beta) & = & \dfrac{h}{d - x} 
\end{array}
\right\}$ 

Thank you very much.

Best Answer

Something like this?

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin{equation}
  \left.\kern-\nulldelimiterspace
  \begin{aligned}
    \tan(\alpha) &= \frac{h}{x}  \\
    \tan(\beta)  &= \frac{h}{d - x}
  \end{aligned}
  \right\}
  \text{First step}
\end{equation}
\end{document}

Result

Package amsmath provides aligned for equations systems inside an equation line. Then also \dfrac is not needed and \frac suffices.

There is also environment rcases of package mathtools, but it is not used here, because of the additional alignment.

Related Question