Vitaliy V. answered 11/12/21
Math and Statistics Tutor with 30+ years of experience
Let f(x) = ax+b, then f(f(x)) = f(ax+b) = a(ax+b)+b = a2x + (ab+b) = 4x +5
a2 = 4, (a+1)b = 5
So, a = 2, b = 5 / (2+1) = 5/3
Or a = -2, b = 5 / (-2+1) = -5
There are 2 solutions:
f1(x) = 2x + 5/3 and f2(x) = -2x - 5