Let, g(x)=ax+b
Now function f(x) in continuous at x=0
⇒x→0+limf(x)=f(0)
⇒x→0lim(2+x1+x)x1=b
⇒0=b
⇒g(x)=ax
Now, for x>0
f(x)=(2+x1+x)x1
⇒logf(x)=log(2+x1+x)x1
⇒logf(x)=xlog(1+x)−log(2+x)
⇒f(x)1×f′(x)=x2x(1+x1−2+x1)−[log(1+x)−log(2+x)]
⇒f′(x)=f(x)x2x(1+x1−2+x1)−[log(1+x)−log(2+x)]
⇒f′(1)=f(1)12(21−31)−[log(2)−log(3)]
⇒f′(1)=3261−log(32)
And, f(−1)=g(−1)=−a
⇒a=32log(32)−91
Now, finding g(3)=3a+0
⇒g(3)=2log(32)−31
⇒g(3)=log(9⋅e314)