I've written a multiline function using LaTex, but then I can't seem to work out how to plot it.
f(x) =
\begin{cases}
\frac{12}{7}(1+x)^2 & \quad \text{for} \; -1< x \leq 0\\
\frac{12}{7}(1-x)^3 & \quad \text{for} \; 0< x < 1\\
0 & \quad \text{otherwise}
\end{cases}
I don't know where to go from here!
Any help is greatly appreciated.
Thank you