Consider the expression, g(x)=x2+x−2And, 21(g∘f)(x)=2x2−5x+2 Then,21(g∘f)(x)=4x2−10x+4 And, (f(x))2+f(x)−2=4x2−10x+4 For the function to be linear f(x)=ax+b so,(ax+b)2+(ax+b)−2=4x2−10x+4a2x2+(2ab+a)x+(b2+b−2)=4x2−10x+4By the comparison of coefficients,a2=4And,2ab+a=−10And, b2+b−2=4So,a±2Then, b={−32if a=2if a=−2 These values satisfies above relations, thus, f(x)=2x−3 or −2x+2