f(x)=x2+x21+4x+x4
To find local minima of the function let's make some transformations:
f(x)=x2+x21+4x+x4=(x+x1)2+4(x+x1)−2
Consider a new variable y=x+x1. Then
f(y)=y2+4y−2
This is quadratic function that reaches minimum at y=−2. The value of the function equals to (−2)2+4(−2)−2=−6.
To find corresponding x let's solve the equation:
x+x1=−2x2+2x+1=0(x+1)2=0x=−1
Thus the function reaches minimum at point x=−1, minimal value equals to −6.