 He attended Soho Academy in London in 1786 and Eton College from 1789 to 1792.Following his father's intention that he follow a legal career, he went to the University of Edinburgh in 1793.Shortly after his father's death he went to the University of Leipzig to study law, but soon dropped out of the course and visited Dresden and Berlin before returning to London in the summer of 1796.