I've read many definitions for a transcendental number and some of them say that a transcendental number is a number that is not the root of any integer polynomial, while other say is a number that is not the root of any rational polynomial.
My question is why such restrictions? Can't we just give algebraic polynomial instead?
The set of all roots of integer polynomials (let's call it $S_{\mathbb Z}$) and the set of all roots of rational polynomials (let's call it $S_{\mathbb Q}$) are identical.
This can easily be shown. The fact that $S_{\mathbb Z}\subseteq S_{\mathbb Q}$ is obvious, since any integer polynomial is also an integer polynomial.
The inverse is not obvious, but not hard to show.
Let $x\in S_{\mathbb Q}$. Then, there exists some rational polynomial $p$ such that $p(x)=0$. Let $a_0,\dots a_n$ be the coefficients of $p$. Further, for each $i$, let $a_i=\frac{n_i}{m_i}$ where $n_i, m_i$ are coprime integers.
Now, let $L$ be a common multiple of all $m_i$ (could be the least common multiple of $m_0,\dots m_n$).
Then, $L\cdot p$ is an integer polynomial, and $(L\cdot p)(x)=L\cdot p(x)=L\cdot 0 = 0$, which means $x\in S_{\mathbb Z}$, which means $$S_{\mathbb Q}\subseteq S_{\mathbb Z}.$$
Since $S_{\mathbb Q}\subseteq S_{\mathbb Z}$ and $S_{\mathbb Z}\subseteq S_{\mathbb Q}$, we conclude $S_{\mathbb Q}= S_{\mathbb Z}$