I have a question concerning equations in Latex. Let's assume there is a simple piecewise function as below (the actual one has terms which are much longer):
As each line runs on for quite a bit, I would like to split the selector over two lines however still aligned with the case. Is this possible?
\begin{equation}
\label{eqn:c(n)}
{
c(n) = \begin{cases}
f(x)), & $if n=0 where x=1$ \\[1em]
f(x), & $if n\textgreater0 where x=c(n-1)+n$ \\
\end{cases}
}
\end{equation}
This is what I have so far.
Best Answer
I would like to suggest that you employ a
cases
environment (provided by theamsmath
package) and embed in it twoarray
environments.