# Composite Function (Comparison Method) Example 2

Example 2

Given $f:x↦1-x$   and $g:x↦p{x}^{2}+q$  .  If the composite function gf  is defined by $gf:x↦3{x}^{2}-6x+5$  , find
(a) the value of p and of q,
(b) the value of ${g}^{2}\left(-1\right)$  .