The death of Arthur Hallam, Alfred Lord Tennyson’s good friend, had profound effects on the poet’s work.