I'm given the following polynomial
$$ p(x) = x^4 -2x^3 +6x^2-10x+5 \in \mathbb{Q}[x] $$
I need to prove that $(x-1)^2|p(x)$.
Which are the possible ways to prove that?
One way is to do the polynomial long division and check if the remainder is 0.
Are there other ways for example by observing that 1 is a root?
Observing that $1$ is a root proves only that $x-1\mid p(x)$, not that $(x-1)^2\mid p(x)$. However, if you additionally verify that $1$ is a root of the derivative $p'(x)$, that does prove that $(x-1)^2\mid p(x)$. In general, $(x-a)^n$ divides a polynomial $p(x)$ iff $p^{(k)}(a)=0$ for $k=0,\dots,n-1$. (This follows, for instance, from considering the Taylor expansion of $p$ at $a$. Or, it is obvious when $a=0$ since both conditions are equivalent to $p$ having no terms of degree less than $n$, and then you can apply this to $p(x+a)$ to handle general $a$.)