The correct option is
B a=1,b=0Taking
log of both sides of given equation, we get,
lnf(x)=ln(ax+b)−ln(x−1)−ln(x−4)
Differentiating w.r.t. x we get
f′(x)=f(x)[aax+b−1x−1−1x−4]...........(1)
As (2,−1) is local maxima, so
f(2)=−1 and f′(2)=0
Putting above values in (1) we get
a2a+b−1+12=0
⇒2a=2a+b
⇒b=0.............(2)
Also x=2 is local maxima hence f′′(2)<0
Differentiating (1) we get
f′′(x)=f′(x)[aax+b−1x−1−1x−4]+f(x)[−a2(ax+b)2+1(x−1)2+1(x−4)2]..........(1)
Also f(2)=−1 and f′(2)=0
Hence f′′(2)=[−54+a2(2a+b)2]<0
Putting b=0 from (2) we get
−54+a24a2<0
Which is true for all real values of a, hence a can be any real no.
Also given f(2)=−1
⇒−1=2a−2
⇒a=1
Hence option B is correct.