If $\mathbf { f }$ be a real valued function such that $\mathbf { f } \left( \mathbf { x } ^ { \mathbf { 2 } } + \mathbf { 1 } \right) = \mathbf { x } ^ { \mathbf { 4 } } + \mathbf { 5 } \mathbf { x } ^ { \mathbf { 2 } } + \mathbf { 2 }$, then $\int _ { 0 } ^ { 3 } f ( x ) d x$ is equal to
(A) 16
(B) $\frac { 31 } { 2 }$
(C) $\frac { 33 } { 2 }$
(D) 14