I have a multi-line equation that I want to have matching sized parentheses. The advice I read online was to use \left( equation \right. \\ left. rest-of-equation \right)
. However, this syntax leaves first half of the equation unaware of what is in the second half. For example, if you include a square root term after the break, the second parenthesis will be larger than the opening parenthesis. When you are using the aligned
environment to split a long equation this can look somewhat offputting.
Compare the top equation to the bottom one. The parentheses match in size for the bottom equation, but the left hand parentheses for the top one is noticeably smaller.
Top Code:
\begin{aligned}[t]
\gamma_{\text{u}} + \frac{1}{108}
\left(57\gamma_{\text{er}} \right. &+ 38\gamma_{\text{se}}\\ & {}\pm
\left.\sqrt{2601 \gamma_{\text{er}}^2 + 3648
\gamma_{\text{er}}\gamma_{\text{se}} + 1444 \gamma_{\text{se}}^2}
\right)
\end{aligned}
Bottom Code:
\begin{aligned}[t] \gamma_{\text{u}} + \frac{1}{16}
\left(9\gamma_{\text{er}} + 6\gamma_{\text{se}} \pm \sqrt{49
\gamma_{\text{er}}^2 + 76 \gamma_{\text{er}}\gamma_{\text{se}} + 36
\gamma_{\text{se}}^2} \right) \end{aligned}
Best Answer
You could also put all parts on all lines and hide the ones that don't belong with
\vphantom{...}
. That way, they'll contribute to the height, but not take up space, and your parens should match. (Me personally, I find that clutters the source too much and I'm not too fond of\left
and\right
anyway, so I do\bigg
et al. manually in these situations.)I also vaguely recall seeing a re-implementation that works across multiple lines, and that appears to be in
breqn
.