Methadone belongs to a class of medications called opiate (narcotic) analgesics. Methadone works to treat pain by changing the way…