I have the following code:
\begin{equation}
\frac {\partial C}{\partial {z_k}}= \begin{cases}
- \frac {1} {y_i} {y_i} (1-{y_i}) = y_{i} - 1 & k = i \\
\frac {1} {y_i} {y_{i}^{2}} = y_{i} & k \ne i \\
\end{cases}
\end{equation}
It works fine, but what I want to achieve is to align the =
from the first case and the second case. I did not manage to do that.
Any advice?
Thank you!
Best Answer
I can be done, using
aligned
instead, but I am not sure which exact alignment is desirable. Probably the best is to use a second cases for the simplification.