Composite Function (Comparison Method) Example 2

Example 2

Given f:x1x   and g:xp x 2 +q  .  If the composite function gf  is defined by gf:x3 x 2 6x+5  , find
(a) the value of p and of q,
(b) the value of g 2 (1)  .