I have a formula in LaTeX attached below. But I could not justify the position of $+\infty$
symbol. I want it appear just after the $\{$
and aligns to the left of the second term.
The LaTeX Code:
${{R}_{1}}\left( {{x}_{pi}},{{G}_{q}},{{x}_{qj}} \right)=\,\left\{ \begin{matrix}
+\infty & p=q \\
\underset{l=1}{\overset{d}{\mathop \sum }}\,({{x}_{pi}}\left[ l \right]-{{x}_{qj}}\left[ l \right])\left( 2\left( {{x}_{qj}}\left[ l \right]-{{{\bar{x}}}_{q}}\left[ l \right] \right)+({{x}_{pi}}\left[ l \right]-{{x}_{qj}}\left[ l \right])(\left| {{G}_{q}} \right|-1)/|{{G}_{q}}| \right) & p\ne q \\
\end{matrix} \right.$
Best Answer
I would use a
cases
environment (from theamsmath
package):I removed some superfluous
\left
,\right
constructs and replaced one of them with\bigl
,\bigr
.