f(x) is a gradient descent algorithm that converges towards a value of 0.5. It is linear within the interval of [-1, 1], but outside of this interval, the function behaves differently.

