Machine Learning Note

I am working on the Andrew Ng's course on Machine Learing. I have a question on the week2 session.

Is there anybody can tell me why there is a 1/2m in front of the cost function.

Machine Learning Note