All formulas

Mathematics

System of equations - formula in LaTeX

A system of two equations joined by a brace on the left. The cases environment aligns rows to the left. If the equals signs must line up exactly, use aligned inside \left\{ and \right. instead, with & before each equals sign. Both need the amsmath package.

{a1x+b1y=c1a2x+b2y=c2\begin{cases} a_1 x + b_1 y = c_1 \\ a_2 x + b_2 y = c_2 \end{cases}

LaTeX code

$$
\begin{cases} a_1 x + b_1 y = c_1 \\ a_2 x + b_2 y = c_2 \end{cases}
$$

Got this formula in your notes or on a whiteboard? Snap a photo and CamteX turns it into LaTeX. Try it free

What the symbols mean

x,yx, y
unknowns
a1,b1,c1a_1, b_1, c_1
coefficients of the first equation
a2,b2,c2a_2, b_2, c_2
coefficients of the second equation

A math formula - one of the most frequently typed in assignments, lecture notes and calculus or algebra homework.

Worked example

Adding the equations cancels y, which gives x = 2 straight away and y = 1 from the second equation. The solution sits on the same line as the system, after an arrow.

{2x+y=5x−y=1⇒3x=6,x=2,y=1\begin{cases} 2x + y = 5 \\ x - y = 1 \end{cases} \quad\Rightarrow\quad 3x = 6, \quad x = 2, \quad y = 1

Other ways to write it

LaTeX commands in this formula

x_{0}
subscript; wrap several characters in braces

How to use this formula in LaTeX?

  1. Copy the code with the button above - $$…$$ is centered display math.
  2. Paste it into the CamteX editor, Overleaf or any LaTeX document.
  3. Inside a sentence, use single $…$ instead of double.
  4. The formula needs the amsmath package - CamteX templates include it in the preamble.

Related formulas - Mathematics

Drawing formulas is faster than typing them.

Draw a formula, table or chart - CamteX AI turns it into ready LaTeX and inserts it into your document.

Try it free