Answer:
[tex]\huge\boxed{a=9 ; b = -8}[/tex]
Step-by-step explanation:
[tex]f(x) = \frac{ax+b}{x}[/tex]
Putting x = 1
=> [tex]f(1) = \frac{a(1)+b}{1}[/tex]
Given that f(1) = 1
=> [tex]1 = a + b[/tex]
=> [tex]a+b = 1[/tex] -------------------(1)
Now,
Putting x = 2
=> [tex]f(2) = \frac{a(2)+b}{2}[/tex]
Given that f(2) = 5
=> [tex]5 = \frac{2a+b}{2}[/tex]
=> [tex]2a+b = 5*2[/tex]
=> [tex]2a+b = 10[/tex] ----------------(2)
Subtracting (2) from (1)
[tex]a+b-(2a+b) = 1-10\\a+b-2a-b = -9\\a-2a = -9\\-a = -9\\a = 9[/tex]
For b , Put a = 9 in equation (1)
[tex]9+b = 1\\Subtracting \ both \ sides \ by \ 9\\b = 1-9\\b = -8[/tex]