# 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

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
-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

• Why \lefts and \rights only for the first u_i terms? – Zoxume Apr 22 '16 at 17:06
• 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