Find the value of the variable x1 that maximizes the functio
     Find the value of the variable x_1 that maximizes the function f(x_1) =-(4 - x_1) + 2x_1 + 3 sure  to check the second-order condition.  
  
  Solution
f(x1) = -(4 - x1)2 + 2x1 + 3
or
f(x1) = -(42 + x12 - 2*4*x1) + 2x1 + 3
= -16 - x12 + 8x1+ 2x1 + 3
= - x12 + 10x1+ 3
For maximization, the first order condition is the first derivative should equal to Zero.
d(- x12 + 10x1+ 3) /dx1 = 0
=> -2x1 + 10 = 0
=> 2x1 = 10
=> x1 = 10/2 = 5
For maximization, the second order condition is the second derivative should less than Zero
d(-2x1 + 10) / dx1 = -2 (Note: -2 is less than zero
Therefore, at x1 = 5 ,both first and second order condition is fulfilled.

