A function is simply a rule that tells you how to associate every (feasible) input with its correspondant output. So, in this case, your function/rule of association is

which can be read as:
"Given any number
, the correspondant output is that same number squared, plus three times that number itself, plus one".
This rule holds for every possible input
, and of course the result will change depending on which input you will feed the function.
In this case, we're interested in feeding the function the number
. Let's use the verbose definition first, to understand better what's happening. It translates to
"Given the input
, the correspondant output is negative two squared, plus three times negative two, plus one".
Which, in formula, is written as
