Augustus de Morgan, when asked about his age, remarked:
I was $x$ years old in the year $x^2$.
He died in $1871$. Examining possible squares, we find $41^2 = 1681$, $42^2 = 1764$, $43^2 = 1849$, $44^2 = 1936$. Clearly, the only one which makes sense in this problem would be $43^2 = 1849$. So de Morgan was $43$ in $1849$. Therefore, he was born in $1806$.
Is there a systematic way to answer such a question without trial and error?