Linear equations added at end of document