M = x(6 - x) + 74 + x
M = 6x - x2 + 74 + x
M = 74 + 7x - x2
M = 345/4 - 49/4 + 7/2x + 7/2x - x2
M = 345/4 - 7/2.(7/2 - x) + x.(7/2 - x)
M = 345/4 - (7/2 - x)2 \(\le\frac{345}{4}\)
Dấu "=" xảy ra khi (7/2 - x)2 = 0
<=> 7/2 - x = 0
<=> x = 7/2
Vậy Max M = 345/4 khi x = 7/2