I would like to draw the following figure in LaTeX, but I am unable to get any satisfying result with the packages tikz, smartidagram or even graphicx.

I am grateful for any tip and suggestion.

Thank you!

enter image description here

  • 3
    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. Note this is a Q&A site, not a please do this for me service. What do you have so far, even though you already said that you tried different options.
    – albert
    Nov 20, 2018 at 16:40

2 Answers 2


tikz-cd is a convenient package for drawing commutative diagrams relatively easily. It provides macros to facilitate the creation of diagrams instead of using tikz directly which can be quite cumbersome.


\begin{tikzcd}[column sep=small]
& \mathrm{M/M/1} \arrow[dl,leftrightarrow] \arrow[dr,leftrightarrow] & \\
\lambda_k = \lambda\\[.5em]
\mu_k = \mu
\end{array}\right\} \arrow[rr,leftrightarrow] & & 
A(t) = 1-e^{-\lambda t}\\[.5em]
B(x) = 1-e^{-\mu x}


enter image description here


Welcome to TeX.SE! There are zillions of ways of producing something of this type. Here is one.

\[\begin{array}{rcl} & \tikzmarknode{M}{M}/M/\tikzmarknode{1}{1} & \\[8mm]
   \mathstrut\lambda_k  =\tikzmarknode{l}{\lambda}\\
   \mathstrut\mu_k  =\mu
  & \quad  \quad & \tikzmarknode{rs}{\mathstrut}
      \mathstrut\tikzmarknode{A}{A}(t)     =1-\mathrm{e}^{-\lambda t}\\
      \mathstrut B(t)     =1-\mathrm{e}^{-\mu t}
\begin{tikzpicture}[remember picture,overlay]
\draw [latex-latex] (M) -- (l);
\draw [latex-latex] (1) -- (A);
\draw [latex-latex] (ls) -- (rs);

enter image description here

I really hope you find enough motivation and patience to explore these options by yourself. You'll see it's worth it.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.