0

The third row of the piecewise function does dot align with the first two rows

f(x) =
\begin{cases}
2x   & -2<x \\
2 & -2\le x\le  1 \\
3x^2 & 1<x\\
\end{cases}
\]

How can I resolve this issue

2
3

With the help of \phantom:

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
f(x) =
\begin{cases}
2x   & -2<x \\
2 & -2\le x\le  1 \\
3x^2 & \phantom{-}1<x\\
\end{cases}
\]

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.