nonessential vs optional

nonessential

noun
  • Something that is not essential. 

adj
  • Not required; not essential. 

optional

noun
  • Something that is not compulsory, especially part of an academic course. 

  • In various programming languages, a kind of variable that is assigned a specific data type but may or may not hold an actual value. 

adj
  • Not compulsory; left to personal choice; elective. 

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