I started to learn first-order logic and I am confused with the sentence below:
It is wrong to say "For all y in range of a function f, P(y) holds" as $\forall f(x)[P(f(x))]$ . It is because f(x) is not a variable.
In Wikipedia, the word "variable" appears out of nowhere and I could not figure out why $f(x)$ cannot be a variable.
My idea is that if we say "$\forall f(x)$" then $f(x)$ will be considered as a symbol without meaning rather than "value of a function $f$".
Apologies for bad grammars, as I am not a native speaker.
The definition of First-Order Logic (also Wiki's one) starts with the definition of the syntax: alphabet, formula, etc.
(Individual) variables are part of the alphabet:
An expression like $f(x)$ is a term; terms are: either (individual) variables, or constants, or built using function symbols.
FOL is called "first-order" because w can only quantify over individual variables: $∀x(x=x)$.
In Second- (and Higher-) order we can quantify also over predicate and function symbols: $∀f \varphi(f)$.