maths writeup