This is a very elementary question, but one I haven't happened to have crossed for a while I guess. I'm helping my niece out with some basic math and we were going through polynomials in her math book. In my head, I always see polynomial as expression involving terms such as $ax^ny^m$.
By wikipedia:
A polynomial expression is an expression that can be built from constants and symbols called variables or indeterminates by means of addition, multiplication and exponentiation to a non-negative integer power.
Now my niece has a task, where she needs to identify whether an expression is, or is not a polynomial and she has two examples:
$$x+y-z\;\;\;\;(1)$$ and $$x+y+z\;\;\;\;(2)$$
Now the math book says that $(1)$ is not a polynomial, but $(2)$ is and this was a bit confusing to myself as well. So is the only reason why $(1)$ is not a polynomial simply because $(1)$ has the $-1$ multiplier in front of variable $z$ (or they also could be constants?) so it's subtraction and not addition as in the definition? Is it that simple? Or is there something wrong with the book?
UPDATE: I added the screenshots from the book with translations. In the book they use symbols $a,b,c$ in place of $x,y,z$ I used in the question.

Sorry that it's in Finnish, I don't know if you can find electronic version of this. I can provide a picture tomorrow of the actual definitions and the task itself (have to add translation as well)
– jjepsuomi Nov 16 '22 at 20:26