deranged vs mentally ill

deranged

adj
  • Disturbed or upset, especially mentally. 

  • Insane. 

  • Malfunctioning or inoperative. 

mentally ill

adj
  • Having a psychological disorder. 

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