# [Tex/LaTex] How to define a piecewise function in latex

equationsmath-mode

I just saw this question but it doesn't answer mine. How do I define a function something like

f(x) = { bla bla if x<0
bla bla if x>0

The above question doesn't answer how to write f(x) before the bracket

\documentclass{article}
$f(x) = \begin{cases} 0 & x\leq 0 \\ \frac{100-x}{100} & 0\leq x\leq 100 \\ 0 & 100\leq x \end{cases}$