7

For a system of equations, I would like to have a notation with a left curly bracket. Usually, I am using

\begin{equation}
\left\{ 
\begin{array}{ll} 
f(x)=&x^2+\ldots\\
g(x)=&x^3+\ldots\end{array}\right.
\end{equation}

But this makes a strange empty space between the "=" and the right-hand sides which i do not like since.

Is there a way to improve this easily?

3
  • You should consider the package systeme. Commented Feb 28, 2021 at 11:17
  • Welcome to TeX.SE.
    – Mico
    Commented Feb 28, 2021 at 11:27
  • @F.Pantigny This seems to be nice. However, if I have, for example, a left hand side as $z_k'$ it is not displayed.
    – C.D.
    Commented Feb 28, 2021 at 11:34

2 Answers 2

11

I suggest you (a) employ an aligned environment instead of an array enviroment and (b) change both instances of =& to &=.

enter image description here

\documentclass{article}
\usepackage{amsmath} % for 'aligned' env.
\begin{document}

\begin{equation}
\left\{ \begin{aligned} 
  f(x) &= x^2+\ldots\\
  g(x) &= x^3+\ldots
\end{aligned} \right.
\end{equation}
\end{document}
1
  • 2
    Fantastic, thanks a lot!
    – C.D.
    Commented Feb 28, 2021 at 11:36
2

When dealing with a system of equations I usually prefer to use the "cases" environment. result example

\documentclass{article}
\usepackage{amsmath}
\begin{document}

 \begin{equation}
  \begin{cases} 
    f(x) = x^2+\ldots\\
    g(x) = x^3+\ldots
  \end{cases}
 \end{equation}
\end{document}
1
  • 3
    This adds unwanted horizontal spaces at the right.
    – egreg
    Commented Jan 15, 2023 at 16:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .