Math & ScienceA system of equations to be aligned to the left?!

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Sam
Posts: 62
Joined: Fri Nov 30, 2007 1:43 pm

A system of equations to be aligned to the left?!

Post by Sam »

Dear All,

I am having a trouble on a small issue that is messing my Latex document.

I am not quite sure why the following equation does not align to the left? even if I change the right to left

Thanks for your help.

\begin{equation}
\left\{
\begin{aligned}
\dot{x}_{1} = x_{2}\\
\dot{x}_{2} = tr1 \cdot x_{2} + tr2 \cdot u_{1} + tr3 \cdot u_{2} + g\\
\dot{x}_{3} = x_{4}\\
\dot{x}_{4} = tr4 \cdot x_{4} + tr5 \cdot u_{1} + tr6 \cdot u_{2}\\
\end{aligned}
\right
\end{equation}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

A system of equations to be aligned to the left?!

Post by Stefan Kottwitz »

Hi Sam,

insert & to mark the equal sign where it should be aligned:

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{equation}
\left\{
\begin{aligned}
\dot{x}_{1} &= x_{2}\\
\dot{x}_{2} &= tr1 \cdot x_{2} + tr2 \cdot u_{1} + tr3 \cdot u_{2} + g\\
\dot{x}_{3} &= x_{4}\\
\dot{x}_{4} &= tr4 \cdot x_{4} + tr5 \cdot u_{1} + tr6 \cdot u_{2}
\end{aligned}
\right.
\end{equation}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Also the left sides are aligned, next to the big brace.

Stefan
LaTeX.org admin
Post Reply