How do I make a piecewise funtion using latex?
or if anyones used something called "smart math", i'm very new to both.
like this? \[ \large f(x)=\begin{cases} x^2+1&\quad\hbox{if ...}\\ 1/x&\quad\hbox{if ......} \end{cases} \]
is this what u call picewise function?
yes, exactly
\begin{cases} x^2+1&\quad\hbox{if ...}\\ 1/x&\quad\hbox{if...} \end{cases}
can u copy the code. i don't know how to make the code appear
I can't copy the code I don't think. Thanks guys.
To copy the code, right click the math, move to "Show Math As" and then click on "TeX Commands" Then copy paste the text that appears in the new window.
can u download that?
@helder_edwin yes, got the code from the attachment
thanks for the tip @KingGeorge, works great!
@helder_edwin how do you do less than or equal to?
"\leq" gives you \(\leq\) "\geq" gives you \(\geq\)
thanks!
u r welcome
this might be of help
\large f(x)=\begin{cases} 2-x &\quad\hbox{if x < -1}\\ x^3 + x^2 +3 &\quad\hbox{if x \leq 0 }\\x/(x^2+1) &\quad\hbox{if x > 0 } \end{cases}
u have to write "\hbox{if $x\leq0$}" or \[\verb"\hbox{if \(x\leq0\)}"\]
thanks so much, worked great
u r very welcome
Join our real-time social learning platform and learn together with your friends!