A beam is supported at the two ends and is uniformly loaded. The bending moment M at a distance x from one end is given below. Find the point at which M is maximum in each case.