The true story of a scientist who discovered the equation for altruism—and gave himself away