Writing linear equations in all forms