The function f(x) takes a numerical input x and returns a value that is twice the input outside of the interval [-10, 10]. Within this interval, the function squares the input.

