# How do you find g(f(5)) if f(x)=x+1 and g(x)=3x-2?

Jan 14, 2017

The answer is $= 16$

#### Explanation:

This is a composition of functions

$f \left(x\right) = x + 1$

$g \left(x\right) = 3 x - 2$

$g \left(f \left(x\right)\right) = g \left(x + 1\right) = 3 \left(x + 1\right) - 2$

$= 3 x + 3 - 2 = 3 x + 1$

Therefore,

$g \left(f \left(5\right)\right) = 3 \cdot 5 + 1 = 15 + 1 = 16$