I was helping some highschool students with factorization exercises. They had alternatives to choose the correct factor. Then one of them said to me:
We use a calculator and evaluate some prime numbers in the quotient by the polynomial and the possible answer, the one with a integer result is the correct.
This seems right, but there's something I don't understand, because, in case of having two options with integer result, they choose the one with lower absolute value.
Can someone explain me or mention a theorem that validates their argument?
For example:
One factor of $\ 6y-3x^2-6x+3y^2$ is: a) $x+y$ b) $y-x$ c) $x-y-2$ d) $x+y-2$
They use $x=11$ and $y=7$, then the polynomial $\ 6y-3x^2-6x+3y^2=-240$ and the alternatives are: a) $x+y=18$, dividing $-240\div18=-\frac{40}{3}$ b) $y-x=-4$, dividing $-240\div-4=60$ c) $x-y-2=2$, dividing $-240\div2=-120$ d) $x+y-2=16$, dividing $-240\div16=-15$
So finally, they choose as the correct answer the option D).
I know that $\ 6y-3x^2-6x+3y^2=3(y-x)(x+y-2)$, but that's my questions, why using a value on the polynomial they get an integer as the value of the quotient?
Hint $\ y-x\mid 6(y-x)+3(y^2-x^2)\ $ so a correct answer is b).
Re: your method: suppose $\,g\mid f,\,$ i.e. $\,f(x,y) = g(x,y) h(x,y)\,$ for polynomials with integer coeff's.
Then $\ f(m,n) = g(m,n) h(m,n)\ $ so $\,f(m,n)/g(m,n) = h(m,n)\,$ is an integer. Thus, if this fraction is not an integer then $\,g\,$ does not divide $\,f.\,$ For example, if $\,f\,$ is the given polynomial, then evaluating $\,f/g\,$ at $\,x=2,\ y = 5\,$ for each of the listed possible factors $\,g\,$ yields the values $\, 81/7,\ 27, -81/5,\ 81/5.\ $ This excludes all but the second choice b) as a possible factor.
Remark $\ $ This divisibility test works because polynomial evaluation is a ring homomorphism, so preserves divisibility. More generally suppose $\,h: R \to R'\,$ is a $\rm\color{#c00}{multiplicative}$ map between rings (or multiplicative monoids), i.e. $\,\color{#c00}{h(rs) = h(r)h(s)}\,$ for all $\,r,s\in R.\,$ Then $\,b\mid a\,\Rightarrow\, h(b)\mid h(a)\ $ since
$$b\mid a\,\Rightarrow\ bc = a\,\Rightarrow\, \color{#c00}{\underbrace{h(bc)}_{\large h(b)\,h(c)}}\!\! = h(a)\,\Rightarrow\, h(b)\mid h(a)\qquad$$
If divisibility testing in $R'$ is simpler than that in $R,\,$ then this yields a useful divisibility criterion.
For example, consider invertibles (units). If $\,ab = 1\,$ then $\,h(a)h(b) = 1,\,$ i.e. $\,a\mid 1\,\Rightarrow\, h(a)\mid 1.\,$ Therefore: $\,a\,$ invertible $\,\Rightarrow\,h(a)\,$ invertible. When $\,a = A\,$ is a square matrix over a field and $\,h\,$ is the (multiplicative) determinant map, this specializes to: $\,A\,$ invertible $\,\Rightarrow\, \det(A)\ne 0.\,$ Hence this well-known linear algebra result is a special case of a general divisibility criterion.