$$\sum_{k=0}^n k^2\cdot{n\choose k} = n\cdot(n+1)\cdot2^{n-2}$$
so, since the question had already provided a hint, I planned on expanding using binomial expansion and then differentiating both sides to get my result.
I am stuck thinking of a suitable polynomial that will start the problem. Is there a way to calculate it rather than think about it intuitively?
Let $F(x)=(1+x)^n=\sum_{k=0}^n {n\choose k}x^k$
Then $$(xF'(x))'=n(n-1)x(1+x)^{n-2}+n(1+x)^{n-1}=\sum_{k=0}^n k^2{n\choose k}x^{k-1}$$
Substituting $x=1$ we get the result