Math & Science ⇒ align and multline
align and multline
I am arranging two equations under "align". The first one being too long has to be fit on two lines. The second can be fit in one line. However, I can not use "multline" under "align" for the first equation. If I write both equations under different "align" commands, the printing is not coming out that good. Can I use a single "align" under which print one equation on multiple lines and other as it is?
Thank you,
Omkar
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
align and multline
align and multline
my problem is that i am trying to splilt up an equation that is surrounded by \exp{...}. as far as i see, i cannot put any \\ in between this braces....
this is how my code looks like...
Code: Select all
\begin{align*}
\exp\left\{-\frac{1}{2(1-\rho^2)\sigma_1^2} \sum_{i=1}^n x_i^2 + \frac{\mu(\sigma_2-\rho(n-1)\sigma_1)} {(1-\rho^2)\sigma_1^2 \sigma_2} \sum_{i=1}^n x_i + \frac{\rho}{(1-\rho^2)\sigma_1\sigma_2} \underset{i\neq j}{\sum_{i=1}^n\sum_{j=1}}x_i y_j \\
+ \frac{\mu(\sigma_1-\rho(n-1)\sigma_2)}{(1-\rho^2)\sigma_1 \sigma_2^2} \sum_{j=1}^n y_j - \frac{1}{2(1-\rho^2)\sigma_2^2} \sum_{j=1}^n y_j^2 \right\}
\end{align*}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
align and multline
Code: Select all
\begin{align*}
\exp\left\{-\frac{1}{2(1-\rho^2)\sigma_1^2} \sum_{i=1}^n x_i^2 + \frac{\mu(\sigma_2-\rho(n-1)\sigma_1)} {(1-\rho^2)\sigma_1^2 \sigma_2} \sum_{i=1}^n x_i + \frac{\rho}{(1-\rho^2)\sigma_1\sigma_2} \underset{i\neq j}{\sum_{i=1}^n\sum_{j=1}}x_i y_j \right. \\
\left. + \frac{\mu(\sigma_1-\rho(n-1)\sigma_2)}{(1-\rho^2)\sigma_1 \sigma_2^2} \sum_{j=1}^n y_j - \frac{1}{2(1-\rho^2)\sigma_2^2} \sum_{j=1}^n y_j^2 \right\}
\end{align*}
Code: Select all
\begin{align*}
\exp\Biggl\{-\frac{1}{2(1-\rho^2)\sigma_1^2} \sum_{i=1}^n x_i^2 + \frac{\mu(\sigma_2-\rho(n-1)\sigma_1)} {(1-\rho^2)\sigma_1^2 \sigma_2} \sum_{i=1}^n x_i + \frac{\rho}{(1-\rho^2)\sigma_1\sigma_2} \underset{i\neq j}{\sum_{i=1}^n\sum_{j=1}}x_i y_j \\
+ \frac{\mu(\sigma_1-\rho(n-1)\sigma_2)}{(1-\rho^2)\sigma_1 \sigma_2^2} \sum_{j=1}^n y_j - \frac{1}{2(1-\rho^2)\sigma_2^2} \sum_{j=1}^n y_j^2 \Biggr\}
\end{align*}
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: align and multline
