Composition Of Functions

## Description

A composition of functions $h(x)$ is written as

(1)
$$h(x)=f(g(x)).$$

Consider when $f(x)=3x-1$ and when $g(x)= 2 + x^2$. The Sage cell below shows the composition $h(x) = f(g(x)) = 3(2 + x^2) - 1$ when $x = 2$.

## Sage Cell

#### Code

f(x) = 3*x - 1
g(x) = 2 + x^2
h(x) = f(g(x))
h(2)


None

## Tags

Primary Tags—Precalculus: Functions

Secondary Tags—Functions: Compositions and combinations of functions

None.