Răspuns :

p+q=1
2p+q=-1
faci sistem
p=1-g
2(1-q)=-1
2-2g=-1
-2q=-3
q=2/3
p=1-2/3
f(1)=1 =>x=1=>p1+q=1=> p+q=1
f(2)=-1=>x=2=>p2+q=-1=>2p+q=-1
p+q=1       /(-1)
2p+q=-1

 -p-q=-1
2p+q=-1
p    /=-2 ∈ R
p+q=1=>-2+q=1=>q=1+2=>q=3∈ R