A = -x2 + 5x + 10
= -( x2 - 5x + 25/4 ) + 65/4
= -( x - 5/2 )2 + 65/4 ≤ 65/4 ∀ x
Dấu "=" xảy ra khi x = 5/2
=> MaxA = 65/4 <=> x = 5/2
B = -3x2 + 9x + 8
= -3( x2 - 3x + 9/4 ) + 59/4
= -3( x - 3/2 )2 + 59/4 ≤ 59/4 ∀ x
Dấu "=" xảy ra khi x = 3/2
=> MaxB = 59/4 <=> x = 3/2