Read the following solution process, find the minimum value of Y square + 4Y + 8. Solution: y square + 4Y + 8 = y square + 4Y + 4 + 4 = (y + 2) square + 4 ≥ 4, so the minimum value of Y square + 4Y + 8 is 4. Follow the above solution process, find the minimum value of m square + m + 1 and the maximum value of 4 - (x square) + 2x ~ ~ ~ urgent, everyone help me

Read the following solution process, find the minimum value of Y square + 4Y + 8. Solution: y square + 4Y + 8 = y square + 4Y + 4 + 4 = (y + 2) square + 4 ≥ 4, so the minimum value of Y square + 4Y + 8 is 4. Follow the above solution process, find the minimum value of m square + m + 1 and the maximum value of 4 - (x square) + 2x ~ ~ ~ urgent, everyone help me

M ^ 2 + m + 1 = m ^ 2 + m + 1 / 4 + 3 / 4 = (M + 1 / 2) ^ 2 + 3 / 4, the minimum is 3 / 4, 4-x ^ 2 + 2x = - (x ^ 2-2x-4) = - (x ^ 2-2x + 1-5) = - (x-1) ^ 2 + 5, the maximum is 5