From Iain T. Adamson's Introduction to Field Theory, p.26:
In elementary books on algebra, polynomials are usually defined to be "expressions of the form $$f(x) ≡ a_0 + a_1x + a_2x^2 + … + a_nx^n$$
where $a_0$, …, $a_n$ are numbers". This definition is open to at least two objections. First, it gives no indication as to the logical status of the symbol $x$—and to say that $x$ is a "variable" or an "indeterminate" simply begs further questions. Secondly, when one comes to define addition and multiplication of polynomials, it is difficult to avoid the feeling that these operations are at least partially defined already—for the polynomials are written with addition signs between their terms, and these terms contain powers of $x$. To avoid these objections we proceed in what may appear to be a more abstract way; in reality we are simply exploiting the well-known fact that in elementary algebra the powers of $x$ act essentially only as "place-holders" while the coefficients are the really important constituents. These remarks may already have suggested to the sophisticated reader that we might define polynomials to be simply finite sequences of coefficients such as $(a_0, a_1, …, a_n)$. For technical reasons—in fact, to enable us to deal conveniently with polynomials of different degrees, which would correspond to sequences of different lengths—we prefer to deal with "essentially finite" infinite sequences. We now proceed with the formal development.
Let $R$ be a commutative ring with identity element $e$. We denote by $P(R)$ the set of infinite sequences $(a_0, a_1, …, a_n, …)$ of elements of $R$, each of which has the property that only finitely many of the members $a_i$ of the sequence are non-zero; thus for each sequence $a = (a_0, a_1, a_2, …)$ in $P(R)$ there is an integer $N_a$ such that $a_i = 0$ for all integers $i > N_a$. It is important to be clear that two sequences are equal if and only if corresponding members are equal, i.e. if $a = (a_0, a_1, a_2, …)$ and $b = (b_0, b_1, b_2, …)$ then $a = b$ if and only if $a_i = b_i (i = 0, 1, 2, …)$.
We introduce an operation of addition in $P(R)$ by setting
$$(a_0, a_1, a_2, …)+(b_0, b_1, b_2, …) = (a_0 + b_0, a_1 + b_1, a_2 + b_2, …).$$
It is easily verified that under this law of composition $P(R)$ forms an abelian group. The zero element is clearly the sequence $z = (0, 0, 0, …)$ each of whose members is the zero of $R$; the additive inverse of $(a_0, a_1, a_2, …)$ is $(-a_0, -a_1, -a_2, …)$.
Next we introduce an operation of multiplication in $P(R)$ by setting
$$(a_0, a_1, a_2, …)(b_0, b_1, b_2, …) = (c_0, c_1, c_2, …),$$
where
$$c_n = \sum_{i=0}^n a_i b_{n−i},\quad (n = 0, 1, 2, …).$$
Then it is a routine matter to verify that this multiplication is associative and commutative, and also distributive with respect to the addition. That is to say, $P(R)$ is a commutative ring under the laws of composition we have defined. Further, $P(R)$ has an identity element, namely the sequence $(e, 0, 0, …)$ where $e$ is the identity element of $R$.
Consider now the mapping $κ$ of $R$ into $P(R)$ defined by setting $κ(a_0) = (a_0, 0, 0, …)$ for all elements $a_0$ of $R$. It is easy to see that $κ$ is a monomorphism; we call it the canonical monomorphism of $R$ into $P(R)$. Then $R$ and its image $κ(R)$ under $κ$ are isomorphic; they differ, of course, in the nature of their elements, but have exactly the same structure. We frequently find it convenient to blur the distinction between $R$ and $κ(R)$ and to use the same symbol $a_0$ for both an element of $R$ and for its image under $κ$ in $P(R)$; when we do this, we say that we are identifying $R$ with its image under $κ$ and regarding $R$ as a subring of the ring $P(R)$. It will be found in practice that very little confusion is likely to arise from this identification procedure; but any confusion which does arise can be resolved by a return to the strictly logical notation.
We now introduce a name for the special sequence $(0, e, 0, 0, …)$ in $P(R)$: we call it $X$. By induction we can prove at once that, for every positive integer $n$, $X^n$ is the sequence $(c_0, c_1, c_2, …)$ for which $c_n = e$ and $c_i = 0$ whenever $i \ne n$. Then if $f = (a_0, a_1, …, a_N, 0, 0, …)$ is any sequence in $P(R)$, with $a_n = 0$ for all integers $n > N$, we have
$$ f = (a_0, 0, 0, …) + (0, a_1, 0, …) + … + (0, …, 0, a_N, 0, …)$$
$$ = κ(a_0) + κ(a_1)X + … + κ(a_N)X^N.$$
Carrying out the identification of $R$ and $κ(R)$ described in the last paragraph, we see that we have expressed $f$ in the form
$$f = a_0 + a_1X + … + a_NX^N.$$
This provides justification for calling the elements of $P(R)$ polynomials and for describing $P(R)$ as the ring of polynomials with coefficients in $R$.