Example 2

Given f:x1x and g:xpx2+q. If the composite function gf is defined by gf:x3x26x+5, find

  1. the value of p and of q,
  2. the value of g2(1).