If $f$ and $g$ are polynomial functions so that $(f+g)(x)=4$ and $(f\circ g)(x)=7-4x$, what is the sum of the possible values for $g(2)$?
$1)2\qquad\qquad\qquad2)3\qquad\qquad\qquad3)-3\qquad\qquad\qquad4)-2$
To solve this problem First I realized that $f$ and $g$ should be linear polynomials in to have $(f\circ g)(x)=-4x+7$. Hence $f(x)=ax+b$ and $g(x)=cx+d$.
$$(f+g)(x)=(a+c)x+(b+d)=4$$ $$(f\circ g)(x)=(ac)x+(ad+b)=-4x+7$$ Hence, $$a+c=0$$ $$b+d=4$$ $$ac=-4$$ $$ad+b=7$$ Then got two cases:
First, $a=2\quad, c=-2,\quad d=3,\quad b=1\quad \Rightarrow g(x)=-2x+3\Rightarrow g(2)=-1$
Second, $a=-2\quad,c=2,\quad d=-1,\quad b=5\quad \Rightarrow g(x)=2x-1\Rightarrow g(2)=3$
So the first choice is correct.
I wonder can we solve this problem with other approaches? ( Looing for approaches with less calculations and more elegance! )