Ask your own question, for FREE!
Mathematics 6 Online
OpenStudy (baldymcgee6):

How do I make a piecewise funtion using latex?

OpenStudy (baldymcgee6):

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

OpenStudy (helder_edwin):

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

OpenStudy (helder_edwin):

is this what u call picewise function?

OpenStudy (baldymcgee6):

yes, exactly

OpenStudy (helder_edwin):

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

OpenStudy (helder_edwin):

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

OpenStudy (baldymcgee6):

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

OpenStudy (helder_edwin):

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.

OpenStudy (helder_edwin):

can u download that?

OpenStudy (baldymcgee6):

@helder_edwin yes, got the code from the attachment

OpenStudy (baldymcgee6):

thanks for the tip @KingGeorge, works great!

OpenStudy (baldymcgee6):

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

OpenStudy (helder_edwin):

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

OpenStudy (baldymcgee6):

thanks!

OpenStudy (helder_edwin):

u r welcome

OpenStudy (helder_edwin):

this might be of help

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}

OpenStudy (helder_edwin):

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

OpenStudy (baldymcgee6):

thanks so much, worked great

OpenStudy (helder_edwin):

u r very welcome

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!