Dimension

The inhomogeneous polynomial kernel K(x,x′)=(1+x⊤x′)2K(x,x')=(1+x^\top x')^2 on R3\mathbb R^3 has a feature map with one coordinate for each monomial of total degree at most 22. How many coordinates does this map have?

The count is (3+22)=(52)=10\binom{3+2}{2}=\binom{5}{2}=10. They are the constant, three linear terms, three squares and three cross products.