OpenStudy (baldymcgee6):

How do I make a piecewise funtion using latex?

5 years ago
OpenStudy (baldymcgee6):

or if anyones used something called "smart math", i'm very new to both.

5 years ago
OpenStudy (helder_edwin):

like this? \[ \large f(x)=\begin{cases} x^2+1&\quad\hbox{if ...}\\ 1/x&\quad\hbox{if ......} \end{cases} \]

5 years ago
OpenStudy (helder_edwin):

is this what u call picewise function?

5 years ago
OpenStudy (baldymcgee6):

yes, exactly

5 years ago
OpenStudy (helder_edwin):

\begin{cases} x^2+1&\quad\hbox{if ...}\\ 1/x&\quad\hbox{if...} \end{cases}

5 years ago
OpenStudy (helder_edwin):

can u copy the code. i don't know how to make the code appear

5 years ago
OpenStudy (baldymcgee6):

I can't copy the code I don't think. Thanks guys.

5 years ago
OpenStudy (helder_edwin):
5 years ago

OpenStudy (kinggeorge):

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.

5 years ago
OpenStudy (helder_edwin):

can u download that?

5 years ago
OpenStudy (baldymcgee6):

@helder_edwin yes, got the code from the attachment

5 years ago
OpenStudy (baldymcgee6):

thanks for the tip @KingGeorge, works great!

5 years ago
OpenStudy (baldymcgee6):

@helder_edwin how do you do less than or equal to?

5 years ago
OpenStudy (helder_edwin):

"\leq" gives you \(\leq\) "\geq" gives you \(\geq\)

5 years ago
OpenStudy (baldymcgee6):

thanks!

5 years ago
OpenStudy (helder_edwin):

u r welcome

5 years ago
OpenStudy (helder_edwin):

this might be of help

5 years ago
OpenStudy (baldymcgee6):

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

5 years ago
OpenStudy (helder_edwin):

u have to write "\hbox{if $x\leq0$}" or \[\verb"\hbox{if \(x\leq0\)}"\]

5 years ago
OpenStudy (baldymcgee6):

thanks so much, worked great

5 years ago
OpenStudy (helder_edwin):

u r very welcome

5 years ago