$$1^2 + 2^2\binom{n}{1} +\ldots+(n+1)^2\binom{n}{n}=?$$ I tried this splitting $$\sum_{k=0}^n (k+1)^2 \binom{n}{k}=\sum_{k=0}^n (k^2+2k+1) \binom{n}{k}= n^2 \cdot 2^n + 2n \cdot 2^n + 2^n $$
It didn't work for most cases , I then just tried $$2^n \cdot (n+1)^2 $$ but it also didn't work . So I'm most likely doing it completely wrong or I'm approaching it in the wrong way. Thank you in advance.
Splitting it up is a good way to start. Then use the binomial theorem $$(1+x)^n=\sum_{k=0}^n\binom nk x^k$$
Differentiate both sides to get $$n(1+x)^{n-1}=\sum_{k=0}^n\binom nk kx^{k-1}$$ and set $x=1$. Then multiply both sides of the last equation by $x$ and differentiate again.