Mathematical trouble

I put all the trouble inside the video: