I realize this question has been asked many times, but I am fairly new at Mathematica and the other answers are very complex, and certainly too complicated for this simple code I am trying to write.
I want to restrict the function below to be between -1 and 1. I do not want to restrict the plot; I want to restrict the function itself.
f[x_] := -(x + c)^2
Is there a simple way I can do this?



ConditionalExpressionthanCondition– Artes Jan 15 '18 at 19:55f[x_]:=If[-1<=x<=1, -(x+c)^2, Nothing]. – Alexei Boulbitch Jan 15 '18 at 20:20