GeneralProblem with \left

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
RedFox2010
Posts: 3
Joined: Sun Feb 17, 2008 3:22 pm

Problem with \left

Post by RedFox2010 »

This is the code :

Code: Select all

\begin{equation}
	\left\{ \begin{array}{l} B(t) = 	F(t,A(t),J(t)) + \int_{0}^{t} K(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma, \\ 
	A(t) = 	G_A(t,A(t),J(t)) + \int_{0}^{t} H_A(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma\\ 
	J(t) = 	G_J(t,A(t),J(t)) + \int_{0}^{t} H_J(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma\\ 
	\end{array}
	\right.
	\label{cap3_eq1}
\end{equation}\\
This is the error :

ImageImage

where the prb is? Someone can help me?
tnx

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Problem with \left

Post by gmedina »

Hi,

I didn't get any problems compiling your code. Perhaps you didn't load the amsmath package? (For some reason (my browser maybe?) I couldn't see the error that you included). Below I post a complete compilable example using your code and a modified version using the cases environment provided by amsmath, and with some suggested variations:

Code: Select all

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
   \left\{ \begin{array}{l} B(t) =    F(t,A(t),J(t)) + \int_{0}^{t} K(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma,\\
   A(t) =    G_A(t,A(t),J(t)) + \int_{0}^{t} H_A(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma\\
   J(t) =    G_J(t,A(t),J(t)) + \int_{0}^{t} H_J(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma\\
   \end{array}
   \right.
   \label{cap3_eq1}
\end{equation}

\begin{equation}
\begin{cases}
   B(t) &=    F(t,A(t),J(t)) + \displaystyle\int_{0}^{t} K(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma,\\[.7em]
   A(t) &=    G_A(t,A(t),J(t)) + \displaystyle\int_{0}^{t} H_A(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma,\\[.7em]
   J(t) &=    G_J(t,A(t),J(t)) + \displaystyle\int_{0}^{t} H_J(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma.
\end{cases}
\end{equation}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Problem with \left

Post by Juanjo »

I can't reproduce too the errors only with the provided code. Anyway, the \\ command after \end{equation} is completely superfluous and yields a warning (Underfull \hbox...). In addtition to the alternatives given by gmedina, you can try the following one:

Code: Select all

\begin{equation}
  \left\{
  \begin{aligned}
    B(t) &= F(t,A(t),J(t)) + \int_{0}^{t} K(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma,\\
    A(t) &= G_A(t,A(t),J(t)) +\int_{0}^{t} H_A(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma,\\
    J(t) &= G_J(t,A(t),J(t)) +\int_{0}^{t} H_J(t,t-\sigma,A(t),J(t))B(\sigma)d\sigma.
  \end{aligned}
  \right.
\end{equation}
The advantage of the aligned environment over array or cases is that each line is typeset in display mode, avoiding the need of \displaymath and any eventual optional argument of \\.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Post Reply