Thay [imath]x=1[/imath], ta có: [imath]a+b=f(1)=2 \Rightarrow b=2-a[/imath]
Thay [imath]x=3[/imath], ta có: [imath]3a+b=f(2)=8[/imath]
[imath]\Rightarrow 3a+2-a=8 \Rightarrow a=3 \Rightarrow b =2-3=-1[/imath]
Thay [imath]x=1[/imath], ta có: [imath]a+b=f(1)=2 \Rightarrow b=2-a[/imath]
Thay [imath]x=3[/imath], ta có: [imath]3a+b=f(2)=8[/imath]
[imath]\Rightarrow 3a+2-a=8 \Rightarrow a=3 \Rightarrow b =2-3=-1[/imath]