demented vs mentally ill

demented

adj
  • Insane or mentally ill. 

  • a demented idea 

  • Crazy; ridiculous. 

  • Suffering from dementia. 

mentally ill

adj
  • Having a psychological disorder. 

How often have the words demented and mentally ill occurred in a corpus of books? (source: Google Ngram Viewer )