We know $\sum_{i=1}^n a_ix_i^2$ is a convex polynomial if $a_i\in\mathbb Z_{\geq0}$ holds.
Is $\sum_{i=1}^n a_ix_i^{2d}$ also convex at every $d\in\{1,2,\dots\}$ if $a_i\in\mathbb Z_{\geq0}$ holds?
Is $\sum_{i=1}^n a_ix_i^{2d+1}$ also convex at every $d\in\{1,2,\dots\}$ if $a_i\in\mathbb Z_{\geq0}$ holds?
What is the easiest way to see this.
$\underline{Motivation}:$ I want to maximize polynomials $$\sum_{i=1}^n x_i^{2d}+M\sum_{j=1}^ma_jy_j$$ and $$\sum_{i=1}^n x_i^{2d}+M\sum_{j=1}^ma_jy_j^2$$ over a convex polytope where $M>0$ and $a_j\in\mathbb Z_{\geq0}$ are fixed and I want to know if these are convex since then the problem is in $P$.
You might more generally be interested in sos-convexity