4

I want to define two functions conditionally as in How to write conditional equations with one-sided curly brackets, but I want to write the two equations on the same line. Is there a way for this?

enter image description here

2
  • Two cases environment in an align environment should do it, if I've understood well what you want. – Bernard Feb 4 '20 at 19:07
  • @Bernard I added a picture what I want – probably123 Feb 4 '20 at 19:11
5

No further special constructs are needed for this, just add some space after the first definition with e.g. \qquad:

Sample output

\documentclass{article}

\usepackage{mathtools}

\begin{document}

\begin{equation*}
  w_{n}(x) =
  \begin{dcases*}
    \frac{1}{2^{n+1}(1+\mu(E_{n}))},&if \( x\in E_{n}\),\\
    0,&otherwise,
  \end{dcases*}
  \qquad
  u_{n}(x) =
  \begin{dcases*}
    \frac{\mu(E_{n})}{2^{n+1}(1+\mu(E_{n}))},&if \( x\in E_{n}\),\\
    0,&otherwise.
  \end{dcases*}
\end{equation*}

\end{document}

If a \qquad is too much, you can reduce to a \quad. It is best to make the punctuation part of the cases statements, rather than putting it outside these blocks.

0

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.