Latex piecewise function

How to write Latex piecewise function with left operator or cases environment.

First of all, modifiy your preamble adding

\usepackageamsfonts>

Latex piecewise function with left operator

\begin y = f(x) = \lvert x \rvert = \left\ \begin ll> -x & \quad x \leq 0 \\ x & \quad x \geq 0 \end \right. \end 

\[\begin y = f(x) = \lvert x \rvert = \left\< \begin -x & \quad x \leq 0 \\ x & \quad x \geq 0 \end \right. \end\]

Latex piecewise function with cases environment

\begin g(x)=\begin x \quad &\textif> \, x \in \mathbbQ> \\ -x \quad &\textif> \, x \notin \mathbbQ> \\ \end \end 

If you found this post or this website helpful and would like to support our work, please consider making a donation. Thank you!

Articles in the same category

2024 Math-linux.com. Knowledge base dedicated to Linux and applied mathematics.