Do the Math: How to Survive in 'The Martian' (Infographic)
Spoiler Alert! Here's the complicated math problems Mark Watney has to solve, to survive in "The Martian."
Credit: by Karl Tate, Infographics Artist

The Ares III mission was supposed to last 31 sols (a sol is a 24.5-hour Martian day). Just to be safe, NASA sent 68 sols’ worth of food, for six people. For Watney alone, that will last 300 sols, extended to 400 if he rations.

Watney needs 1,500 calories every day. He has 400 sols’ supply of food already. So how many calories does Watney need to generate per day during the entire time period to stay alive for 1,400 days total?
Fortunately, Watney has a supply of potatoes. He can use his own feces as fertilizer on the sterile Martian soil, to grow the vegetables.
Soil needs 0.3 gallons of water per cubic foot (40 liters per cubic meter). Watney needs a total of 163.26 gallons (618 liters) of water. The Hab has only 79.25 gallons (300 liters) available.
Water can be manufactured by burning hydrogen and oxygen. 
Watney only has about half the oxygen he would need to make enough water. How to make more oxygen?
The  abandoned descent stage from the Ares III Mars Ascent Vehicle (MAV) includes machinery to create oxygen from the Martian atmosphere. Watney can make oxygen, but he still needs hydrogen.
Hydrogen can be manufactured by burning hydrazine rocket fuel. The problem is that hydrazine is highly flammable.
Watney's answer: By burning the remaining 77 gallons (292 liters) of fuel left in the MAV, Watney can make enough hydrogen and oxygen to manufacture enough water to grow enough potatoes to stay alive.

Embed: Paste the code below into your site.