
Valentin P. answered 06/21/19
Algebra tutor, PhD in Math.
You can wrute 2 equation based on the given values of the function at x = a and x=b:
2a = ma + b and 2b = mb + b.
Subtract the 2nd equation from the 1st one:
2(a-b) = m(a-b)
If a≠b then m=2.
Substitute m=2 into the 2nd equation:
2b = 2b + b
So b= 0.
The function is F(x)=2x
Note that this is true only if a≠b.