The Stack Overflow podcast is back! Listen to an interview with our new CEO.

You can nest an aligned environment in cases. I used dcases from mathtools to have the contents in \displaystyle. Beware that for multicolumn aligned equations, each column but the first has to be introduced by an ampersand, in addition to the ampersands for the alignment points, so that here (4 columns), we need 7&: \documentclass{article} \...

Only top voted, non community-wiki answers of a minimum length are eligible