Math & ScienceBreaking long equation across multiple brackets?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
badsanta
Posts: 1
Joined: Sun Oct 20, 2013 5:00 pm

Breaking long equation across multiple brackets?

Post by badsanta »

Hey guys. Please could you help, I have been trying to split a long equation across multiple lines. I have managed to break across the + signs, now I need to break across square brackets.

Code: Select all

\documentclass{article}
\usepackage{amsmath,amssymb}

\long\def\comment#1{}
\setlength{\textheight}{9.0in}
\setlength{\columnsep}{0.375in}
\setlength{\textwidth}{6.8in}
\setlength{\topmargin}{0.0625in}
\setlength{\headheight}{0.0in}
\setlength{\headsep}{0.0in}
\setlength{\oddsidemargin}{-.15in}
%\setlength{\evensidemargin}{0.75in}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0.12in}
\makeatletter

\begin{document}
The equation below is the one I want to split by breaking in between the big square brackets.
\begin{align}
 &= \int D_n k \left\{ \left[ \frac{2}{M_\rho ^2D_1} + \frac{2}{M_\rho ^2D_3} - \frac{4p^2}{M_\rho ^2D_1D_3} - \frac{4p^2}{D_1D_2D_3}  \right]k_2^\nu + \right. \nonumber\\ 
   & \left. + \left[ - \frac{1}{M_\rho ^2 D_3} + \frac{1}{2D_1 D_2} - \frac{3}{2D_2 D_3} + \left(2+\frac{p^2}{M_\rho ^2} \right)\frac{1}{D_1D_3} + \frac{D_2}{2M_\rho ^4D_3}- \frac{D_2}{2M_\rho ^4D_1} + \left(\frac{p^2}{2M_\rho ^4} - \frac{1}{M_\rho ^2} \right)\frac{D_2}{D_1D_3} + \right. \left. + \left(4m_\pi ^2 - M_\rho ^2 + \frac{1}{2}p^2 \right)\frac{1}{D_1 D_2 D_3} \right] p^\nu	+\right. \nonumber\\ & \left.+ k^\nu \left[ \frac{1}{M_\rho ^2D_1} + \frac{1}{M_\rho ^2D_3} - \frac{1}{D_1 D_2} - \frac{1}{D_2D_3} + \left( 4 - \frac{2p^2}{M_\rho ^2} \right)\frac{1}{D_1D_3} + \left( \frac{p^2}{M_\rho ^4} - \frac{2}{M_\rho ^2} \right)\frac{D_2}{D_1D_3} + \left( 8m_\pi ^2 - 2M_\rho ^2 - 3p^2 \right)\frac{1}{D_1D_2D_3} \right] \right\} 
\end{align}

Below is me breaking between the square brackets
\begin{align}
&\left[ - \frac{1}{M_\rho ^2 D_3} + \frac{1}{2D_1 D_2} - \frac{3}{2D_2 D_3} + \left(2+\frac{p^2}{M_\rho ^2} \right)\frac{1}{D_1D_3} + \frac{D_2}{2M_\rho ^4D_3}- \frac{D_2}{2M_\rho ^4D_1} + \left(\frac{p^2}{2M_\rho ^4} - \frac{1}{M_\rho ^2} \right)\frac{D_2}{D_1D_3} + \right. \nonumber\\ &\left. + \left(4m_\pi ^2 - M_\rho ^2 + \frac{1}{2}p^2 \right)\frac{1}{D_1 D_2 D_3} \right] p^\nu
\end{align}

\end{document}
But when I put the code for (2) back into (1) I get lots of errors. Any ideas on what to do? I don't want to move the left margin anymore.

Recommended reading 2024:

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

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

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

Breaking long equation across multiple brackets?

Post by Stefan Kottwitz »

Hi,

welcome to the forum!
badsanta wrote: But when I put the code for (2) back into (1) I get lots of errors. Any ideas on what to do? I don't want to move the left margin anymore.
It works when I put the lines from (2) into (1). Perhaps show the code, which produces the error, it's possible that you would make something different to what I understand that you did.

Stefan
LaTeX.org admin
Post Reply