If f(x)=ax+b, where, a and b are integers, f(−1)=−5 and f(3)=3, then a and b are equal
(a) a=−3,b=−1
(b) a=2,b=−3
(c) a=0,b=2
(d) a=2,b=3
The correct option is (b):a=2,b=−3
Given, f(x)=ax+b
f(−1)=−5 [Given]
⇒a(−1)+b=−5
⇒−a+b=−5……(i)
And, f(3)=3 [Given]
⇒3a+b=3……(ii)
On subtracting eq.(i) from (ii), we get
3a+b−(−a+b)=3+5
⇒3a+b+a−b=8
⇒a=2
On putting a=2 in eq.(i), we get
−2+b=−5
⇒b=−5+2=−3