Causing the COST Function

Have you ever wondered why does the cost function under gradient descent really looks like the way it does? If…