Graham Farmelo’s definitive biography humanizes the great physicist, who was given a death sentence at 21, then spent five decades making dazzling discoveries