Find all polynomials with real-valued coefficients for which the following property $$P(x+1)=P(x)+2x+1$$ holds for all $x \in \mathbb{R}.$
This seems to be a functional equation, so the initial approach would be to try some values. For $x=0$ we would have that $$P(1)=P(0)+1.$$
For $x=1$ $$P(2)=P(1)+3.$$
For $x=2$ $$P(3) = P(2)+5.$$
Now if I would know something about $P(0)$ that would seem to be helpful. If I assume that $P(0)=0$ I would get that
$$P(1)=1$$ $$P(2)=4$$ $$P(3)=9.$$
From here it would seem that $P(n)=n^2,$ however I’m not sure if I can make the assumption that $P(0)=0$ or can I?
You can solve even more general problem:
Problem. For given polynomial $Q(x)$ find all polynomials $P(x)$ such that $P(x+1)-P(x)=Q(x)$.
Solution. Firstly, note that if $Q(x)\equiv 0$, then the only solution is $P(x)\equiv c$ for some real $c$. Now, suppose that $Q(x)=q_mx^m+\ldots+q_1x+q_0$, where $q_i\in\mathbb{R}$ and $q_m\neq 0$. If $P(x)=p_kx^k+\ldots+p_1x+p_0$ and $p_k\neq 0$, then we have $$ P(x+1)-P(x)=Q(x), $$ which is equivalent to $$ p_k((x+1)^k-x^k)+\ldots+p_1((x+1)-x)=q_mx^m+\ldots+q_1x+q_0, $$ or $$ \binom{k}{k-1}p_{k}\cdot x^{k-1}+\left(\binom{k}{k-2}p_{k}+\binom{k-1}{k-2}p_{k-1}\right)\cdot x^{k-2}+\ldots+\left(\binom{k}{0}p_{k}+\binom{k-1}{0}p_{k-1}+\ldots+\binom{1}{0}p_{1}\right)\cdot 1=q_mx^m+\ldots+q_1x+q_0 $$ Since it holds for all $x$ we have $m=k-1$ and the following linear system: $$ \begin{cases} \binom{k}{k-1}p_{k}&=q_{k-1} \\ \binom{k}{k-2}p_{k}+\binom{k-1}{k-2}p_{k-1}&=q_{k-2} \\ \ldots \\ \binom{k}{0}p_{k}+\binom{k-1}{0}p_{k-1}+\ldots+\binom{1}{0}p_{1}&=q_0 \end{cases} $$ From this system we can find $p_{k},p_{k-1},\ldots,p_{1}$. Hence, the resulting polynomial $P(x)$ will be unique up to constant $p_0$ (and that's because $P(x+1)-P(x)=(P(x+1)+c)-(P(x)+c)$).
Applying this for your problem we obtain that $P(x)=x^2+c$.