Doctoral students in mathematics are questioning their career paths and considering leaving the field altogether.