Do \(f\left(1\right)=g\left(2\right)\) nên:
\(2.1^2+a.1+4=2^3-5.2-b\)
\(\Rightarrow a+6=-2-b\)
\(\Rightarrow a=-b-8\) (1)
Do \(f\left(-1\right)=g\left(5\right)\) nên:
\(2.\left(-1\right)^2+a.\left(-1\right)+4=5^3-5.5-b\)
\(\Rightarrow-a+6=100-b\)
\(\Rightarrow a=b-94\) (2)
(1);(2) \(\Rightarrow-b-8=b-94\)
\(\Rightarrow2b=94-8\)
\(\Rightarrow b=43\)
\(\Rightarrow a=43-94=-51\)