Harry wanted lessons on dealing with Dementors.
Harry specifically wanted to learn how to cope with the Dementors’ effect on him, since Dementors were assigned to guard Hogwarts after Sirius Black escaped from Azkaban.
“You made that Dementor on the train back off,’ said Harry suddenly.
‘There are – certain defences one can use,’ said Lupin. ‘But there was only one Dementor on the train. The more there are, the more difficult it becomes to resist.’
‘What defences?’ said Harry at once. ‘Can you teach me?’
‘I don’t pretend to be an expert at fighting Dementors, Harry – quite the contrary …’
‘But if the Dementors come to another Quidditch match, I need to be able to fight them –’
Lupin looked into Harry’s determined face, hesitated, then said, ‘Well … all right. I’ll try and help.”
- Harry Potter and the Prisoner of Azkaban, Chapter 10 (The Marauder’s Map)
Equally important as learning the Patronus Charm was being able to actually cast it without passing out in the presence of a Dementor.
“Lupin grasped the lid of the packing case and pulled.
A Dementor rose slowly from the box, its hooded face turned towards Harry, one glistening, scabbed hand gripping its cloak. The lamps around the classroom flickered and went out. The Dementor stepped from the box and started to sweep silently towards Harry, drawing a deep, rattling breath. A wave of piercing cold broke over him –
‘Expecto patronum!’ Harry yelled. ‘Expecto patronum! Expecto –’
But the classroom and the Dementor were dissolving … Harry was falling again through thick white fog, and his mother’s voice was louder than ever, echoing inside his head – ‘Not Harry! Not Harry! Please – I’ll do anything –’
‘Stand aside – stand aside, girl –’
‘Harry!’
Harry jerked back to life. He was lying flat on his back on the floor. The classroom lamps were alight again. He didn’t have to ask what had happened.”
- Harry Potter and the Prisoner of Azkaban, Chapter 12 (The Patronus)
By the third try, he was actually able to stay conscious and produce a Patronus.
“He pulled off the lid of the case for the third time, and the Dementor rose out of it; the room fell cold and dark –
‘EXPECTO PATRONUM!’ Harry bellowed. ‘EXPECTO PATRONUM! EXPECTO PATRONUM!’
The screaming inside Harry’s head had started again – except this time, it sounded as though it was coming from a badly tuned radio. Softer and louder and softer again … and he could still see the Dementor … it had halted … and then a huge, silver shadow came bursting out of the end of Harry’s wand, to hover between him and the Dementor, and though Harry’s legs felt like water, he was still on his feet … though for how much longer, he wasn’t sure …”
- Harry Potter and the Prisoner of Azkaban, Chapter 12 (The Patronus)