Text this: Magnetohydrodynamic channel flow and variational principles