A million-dollar donation is helping Australian teachers inspire disadvantaged students in maths and science class.