
David W. answered 10/20/22
Experienced Prof
The function f(x) is a piecewise function. That means that it uses a different function description depending on what piece the value of x falls into.
For the function:
f(x) = -2*x for x<1
f(x) = 2*x for x>=1
When x < 1, we compute f(x) using -2*x. When x>=1, we compute f(x) using 2*x.
Note that the first expression is open-ended (that is, it does not include the endpoint). The second expression, however, includes the endpoint at x=1, so f(1) is computed using the second expression, not the first expression.
If both expressions are closed-ended and evaluate to the same value of f(1), we still have a function. If both functions are closed-ended and evaluate to a different value of f(1), THIS IS NOT A FUNCTION (there are two values of f(1) for one value of x).
Closed-ended line segments end with a point. Open-ended line segments are just a line.