The following code generates:
You can see that the first and the second line are centered on the right side of the left brace.
How can I stick to the current code implementing "\begin{matrix}" and achieve:
aligning "a(E)" in both lines to the left
aligning "if" to the left
so that two "a"s and "i"s can be aligned together.
\text{when} \left\{\begin{matrix}
a(E)'=\infty, &\text{if }E=\bar{L} \\
a(E)'=0, &\text{if }E=0
\end{matrix}\right.