# Function composition calculator | Create a new function by composition of functions

## Function composition calculator

$$f(x)=$$

$$g(x)=$$

The Function Composition Calculator is an excellent tool to obtain functions composed from two given functions, (f∘g)(x) or (g∘f)(x).

To perform the composition of functions you only need to perform the following steps:

1. Select the function composition operation you want to perform, being able to choose between (f∘g)(x) and (g∘f)(x).
2. Enter the functions f(x) and g(x) in their respective fields. You can check below the list of functions that you can use to write the functions.
3. Then you need to press the Calculate button.
The solution explained step by step will automatically be displayed.
4. In the solution, the option of evaluating the resulting composite function for a given value of x is given.

Following is the list of functions that you can use in the function composition calculator:

• sin(x) → sine
• cos(x) → cosine
• tan(x) → tangent
• sec(x) → secant
• csc(x) → cosecant
• cot(x) → cotangent
• asn(x) → arcsine
• acs(x) → arcsine
• atn(x) → arctangent
• asc(x) → arcsecant
• acs(x) → arcsecant
• act(x) → arctangent
• snh(x) → hyperbolic sine
• csh(x) → hyperbolic cosine
• tnh(x) → hyperbolic tangent
• sch(x) → hyperbolic secant
• cch(x) → hyperbolic cosecant
• cth(x) → hyperbolic cotangent
• ash(x) → hyperbolic arcsine
• ach(x) → hyperbolic arcsine
• ath(x) → hyperbolic arctangent
• ln(x) → natural logarithm
• lne(x) → natural logarithm
• lgn(n,x) → logarithm of base n
• log(x) → natural logarithm
• abs(x) → absolute value
• sqt(x) → square root
• sqrt(x) → square root
• cbt(x) → cube root

Arithmetic operators:

• - → subtract/negative sign
• * → multiply
• / → divide
• ^ → exponent

## What is a composite function? | Composite function definition

Function composition, also known by the term composite function, consists of combining two or more functions in such a way that one function becomes the argument of the other. If we have two or more functions that are contained one inside the other, we call them composite functions.

The notation used for function composition is:

(f ∘ g)(x)=f(g(x))

The value of the composite function at x is equal to the function f evaluated at g(x).

## How to do composite functions

We now proceed to explain how to obtain a composite function from two functions using the following example:

Example 01: Determine the composite function (f∘g)(x) if f(x)=x2+1 and g(x)=2x+3.

As we said, the composition (f∘g)(x) implies substituting the independent variable of the function f(x) by the function g(x), that is, (f∘g)(x)=f(g(x)), therefore, in x2+1 we will replace the variable x with the expression 2x+3. The result is as follows:

• (f∘g)(x)=f(g(x))
• (f∘g)(x)=(2x+3)2+1
• (f∘g)(x)=4x2+12x+9+1
• (f∘g)(x)=4x2+12x+10

If we now want to determine the composite function (g∘f)(x), what we do is work with 2x+3, substituting the value of x for x2+1:

• (g∘f)(x)=g(f(x))
• (g∘f)(x)=2(x2+1)+3
• (g∘f)(x)=2x2+2+3
• (g∘f)(x)=2x2+5

## Composite functions worksheet

Here is a worksheet so you can practice composition of functions. The solutions of each exercise are located on the last page of the document.