For x∈ℝ, two real valued functions f(x) and g(x) are such that, g(x)=x+1 and fog(x)=x+3-x. Then f(0) is equal to [2023]
(*)
For x∈R, f(x) and g(x) are real-valued functions.
g(x)=x+1 and fog(x)=x+3-x
fog(x)=x+3-x⇒f(g(x))=x+3-x
=(x+1)2-3(x+1)+5
=[g(x)]2-3[g(x)]+5 (∵g(x)=x+1)
So, f(x)=x2-3x+5
∴f(0)=0-3×0+5=5
Note: But if we consider the domain of the composite function fog(x), then f(0) will not be defined as g(x) can’t be equal to zero.