Find a formula (not involving $\sum$) for the function $\mathbb{N} \to \mathbb{N}$ given by:
$$f(n):= \sum\limits_{k = 0}^n {n \choose k} k^2.$$
Current thinking:
To get the formula for $f(n):= \sum\limits_{k = 0}^{n} {n \choose k} {k}$, I differentiated which gives
$$\frac{\mathrm d}{\mathrm dx}(1+x)^n = n(1+x)^{n-1}$$ $$\frac{d}{dx}\sum\limits_{k = 0}^{n} {n \choose k} {k} = \sum\limits_{k = 0}^{n} {n \choose k} {kx^{k-1}}$$
Can I just differentiate twice in a similar manner if I wanted to get $f(n):= \Sigma_{k = 0}^{n} {n \choose k} {k^2}$?
As alluded to in the comments, your current approach that you have added is correct and will get you to the right answer. Complete the process by a multiplication by $x$ and then differentiating by $x$ once more. Finally, plugging in $x=1$ will allow you to see the original sum you were after.
$\frac{d}{dx}\left(nx(1+x)^{n-1}\right) = n(nx+1)(x+1)^{n-2} = \sum\limits_{k=0}^n\binom{n}{k}k^2x^{k-1}$
$$n(n+1)2^{n-2} = \sum\limits_{k=0}^n\binom{n}{k}k^2$$
Continuing from my suggestion: Consider counting how many committees of any size from n people are possible where there is a president of the committee and a treasurer for the committee but the president can be the same person as the treasurer. Consider counting by breaking into cases based on the size of the committee and choosing the president and treasurer from among those picked. Compare to your sum. Find a different way to count this scenario.
The first method of counting yields exactly the sum from your question. For an alternate method of counting, consider choosing the president first from all $n$ available people. Now, break into cases based on whether or not the treasurer is the same person as the president. In the case they are the same person, for the remaining $(n-1)$ people choose whether they are included as a committee member or not for a total of $2^{n-1}$ ways to expand the committee. In the case they are not the same person, choose who that other person was and then for the remaining $(n-2)$ people choose whether they are included or not. This gives an answer of:
$$n2^{n-1}+n(n-1)2^{n-2}$$
As both ways of counting successfully and correctly counted the same scenario, their expressions must be equal.
You can check with a bit of algebra that this is in fact equal to the same answer as the other method.