TITLE: Determine the coefficient of $xy$ in the expansion of $(x+y+2)^7$
QUESTION [5 upvotes]: The problem: Determine the coefficient of $xy$ in the expansion of $(x+y+2)^7$
My approach:
We can rewrite the equation substituting $x+y =j$ 
$$(x+y+2)^7=(j+2)^7$$
This is simpler because we know the coefficients thanks to the formula:
$$(a+b)^{n}=\sum _{{k=0}}^{n}{n \choose k}a^{{n-k}}b^{{k}} $$
With $n=7$  we have $1,7,21,35,35,21,7,1$ as coefficients and the expansion looks like this:
$$j^7+14\cdot j^6+(21\cdot 2^2) j^5+(35\cdot 2^3) j^4+(35\cdot 2^4) j^3+(21\cdot 2^5) j^2+(7\cdot 26)j+2^7$$
Now the only time that $xy$ appears is in the expansion of $j^2$ therefore we have:
$$(21\cdot 2^5) j^2=(21\cdot 2^5) (x+y)^2= (21\cdot 2^5)(x^2+2xy+y^2)=21\cdot 2^5x^2+21\cdot 2^6xy+21\cdot 2^5y^2$$
The coefficient is $21\cdot 2^6$
Is this correct? Is there a simpler proof?

REPLY [2 votes]: If you know derivatives, denoting 
$$f(x,y)=(x+y+2)^7=\sum_{i,j=0}^7 c_{ij}x^iy^j$$
then you are looking for $c_{11}$. It is easy to see that 
$$c_{11}=\frac{\partial^2 f}{\partial x \partial y}(0,0)=7 \cdot 6 \cdot (0+0+2)^5$$
Intuitively: derivating with respect to $x$, and then setting $x=0$ eliminates all the terms which contain any power of $x$ besides the first power. You do then the same for $y$,