I read a book long time ago, what I remember:
The mages lives in a university, some day they got to tell the people of the town something (I don't remember), and a young girl throws a stone, normally it doesn't hit the mages, but the young girl has magic powers and the stone hit him.
She started to study in the university, receiving bullying from the others, normally fight with some kind of magic whips.
Some other things is that they can share the magic powers, so one can be very powerful if other mages give them the power.
From here the spoilers:
I know that the girl establishes a relationship with the ruler of the university, whom at the first looks like the bad guy, but she discovers that he really is protecting the people, so she helps him, giving them their power.