The following code generates

    S_{12} =\frac{S_{1,21}\, S_{2,21}}{2\, S_{1,22}\, S_{2,22}\, C_{12}} \left(\sqrt{\frac{\begin{aligned}
                {S_{1,21}}^2\, {S_{2,21}}^2 - S_{1,11}\, S_{1,22}\, {S_{2,21}}^2 - {S_{1,21}}^2\, S_{2,11}\, S_{2,22}\\
                + S_{1,22}\, {S_{2,21}}^2\, C_{11} + 4\, S_{1,22}\, S_{2,22}\, {C_{12}}^2 + {S_{1,21}}^2\, S_{2,22}\, C_{22}\\
                + S_{1,11}\, S_{1,22}\, S_{2,11}\, S_{2,22} - S_{1,11}\, S_{1,22}\, S_{2,22}\, C_{22}\\
                - S_{1,22}\, S_{2,11}\, S_{2,22}\, C_{11} + S_{1,22}\, S_{2,22}\, C_{11}\, C_{22}
                \left({S_{1,21}}^2 + S_{1,22}\, C_{11} - S_{1,11}\, S_{1,22}\right)\, \left({S_{2,21}}^2 + S_{2,22}\, C_{22} - S_{2,11}\, S_{2,22}\right)
                \end{aligned}}} - 1 \right)

enter image description here

How to get rid of blank space in the lower area of the brackets?


1 Answer 1


Here's my suggestion: split the formulas. Find better names instead of $A$ and $B$.



S_{12} =
\frac{S_{1,21} S_{2,21}}{2 S_{1,22} S_{2,22} C_{12}}
\left(\sqrt{\frac{A}{B}} - 1 \right)
A &=
  {S_{1,21}}^2 {S_{2,21}}^2 - S_{1,11} S_{1,22} {S_{2,21}}^2 - {S_{1,21}}^2 S_{2,11} S_{2,22}\\
  S_{1,22} {S_{2,21}}^2 C_{11} + 4 S_{1,22} S_{2,22} {C_{12}}^2 + {S_{1,21}}^2 S_{2,22} C_{22}\\
  S_{1,11} S_{1,22} S_{2,11} S_{2,22} - S_{1,11} S_{1,22} S_{2,22} C_{22}\\
  S_{1,22} S_{2,11} S_{2,22} C_{11} + S_{1,22} S_{2,22} C_{11} C_{22} \\[1ex]
B &=
  ({S_{1,21}}^2 + S_{1,22} C_{11} - S_{1,11} S_{1,22})
  ({S_{2,21}}^2 + S_{2,22} C_{22} - S_{2,11} S_{2,22})


enter image description here

I also suggest


instead of {S_{1,21}}^2 that makes the exponent hanging from nowhere.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .