What happens when the body gets so low in weight is it starts to go on auto destruct. There's no appetite, food can even seem poison or bad for you in a perverse way. (I suppose a bit like the way in extreme cold, when suffering from hyperthermia, people cand get a rush of feeling hit and take their clothes off.) In extremes, the person can start exercising obsessively to lose even more weight and self destruct. So your son being tired is a very good sign, help him to sleep as much as he can and gain weight. He can't put on muscle when underweight, so the sleep is good, and a good sign tgat he wants to get better.
So when the doctor said that you just need to get him to eat, then that is the doctor's orders and a medical necessity. Food is medicine. This is his tratment and you are the practitioner!
He needs 3 (or 4) full, big meals a day, plus 2 desserts and 3 (or 4) snacks. He needs 3000 calories a day for normal weight for a boy hus height and in top of that he needs to GAIN weight, so see that as a minimum.
Can he come home for lunch so you can cook him a lunch and a hot pudding and sit with him while he eats it? (This is hard but is the best and quickest way to get his weight up.) If not, can you drive to school and make him eat all his lunch with you in the car. This is a medical necessity, liaise with the doctor and the school. They won't want it to turn into an emergency either.
Pull him out of competitive sports and have him take lifts everywhere until he has got to the BMI average for his height and age. If he is still just as tired in 2 or 3 weeks, take him back to the doctir to check for an underlying cause.
This is what I've had to do with DD. This is all the advice, in a nutshell, that we have had from a year of weekly trips to the eating disorder unit. 'Make her eat.'
You can't make him eat! All you can do is tell him that if he doesn't make himself do it he will end up in hospital being tube fed, and possibly doing permanent damage to vital organs if he tries to be sporty.
You provide the food. Lots of high calorie snacks and big carby dinners and stodgy puds. Don't forget fruit and prunes and drinks, obviously!
Good luck and keep us posted.