Secret trainers

I am confused about the whole master of [school] badge. I am a life wizard and am I supposed to learn every single spell from every single secret trainer or just the life school spells from the trainers. If all of the spells where do I get all of those training points