# equation with 2 ranges

i need to write the equation as n the figure attached plz someone help me out in writting the equattion with the ranges as in the example attached thank you

• Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Zoxume Apr 22 '16 at 16:50

## 2 Answers

You can use an array environment:

$u_i(a_1, x_2, x_3) - u_i(-a_1, x_2, x_3) = 2a_1\varepsilon_{i1}^0 \qquad \begin{array}{c} -a_2 \leq x_2 \leq a_2 \\ -a_3 \leq x_3 \leq a_3 \end{array}$


See, it this MWE gives what you like to achieve:

\documentclass{article}
\usepackage{mathtools}

\begin{document}
\begin{align*}
u_i(a_1,x_2,x_3) - u_i(-a_1,x_2,x_3) = 2a_1\varepsilon_{i1}^0
&\quad  \begin{aligned}
-a_2\leq x_2 & \leq a_2\\
-a_2\leq x_2 & \leq a_2
\end{aligned}   \\
u_i(a_1,x_2,x_3) - u_i(-a_1,x_2,x_3) = 2a_1\varepsilon_{i1}^0
&\quad  \begin{aligned}
-a_2\leq x_2 & \leq a_2\\
-a_2\leq x_2 & \leq a_2
\end{aligned}
\end{align*}
\end{document}


• Why \lefts and \rights only for the first u_i terms? – Zoxume Apr 22 '16 at 17:06
• . ah, they are forgotten ... fro some other test, I will erase it. – Zarko Apr 22 '16 at 17:08
• There is an extra \ left in the first math line causing a \). Can’t fix it myself because edits are permitted for at least 6 characters. – Zoxume Apr 22 '16 at 17:14