• Nakafa

    Nakafa

    Learn free and with quality.
Subject
    • Grade 10
    • Grade 11
    • Grade 12
Exercises
Holy
  • Quran
Articles
  • Politics
  • Community
  • About

Command Palette

Search for a command to run...

Function Composition and Inverse Function

Properties of Function Composition

Properties of Function Composition

Function composition, which involves combining functions sequentially, has several important properties we need to know. Let's study these properties using the following example functions:

f(x)=2x+1f(x) = 2x + 1f(x)=2x+1
g(x)=x2+4g(x) = x^2 + 4g(x)=x2+4
h(x)=1x+1h(x) = \frac{1}{x+1}h(x)=x+11​

Non-Commutative Property

The first and most common property is that the order in which functions are composed matters. Changing the order of functions usually results in a different composite function.

In general, (f∘g)(x)(f \circ g)(x)(f∘g)(x) is not equal to (g∘f)(x)(g \circ f)(x)(g∘f)(x).

Example:

Let's compare (g∘f)(x)(g \circ f)(x)(g∘f)(x) and (f∘g)(x)(f \circ g)(x)(f∘g)(x).

  1. Calculating (g∘f)(x)(g \circ f)(x)(g∘f)(x):

    (g∘f)(x)=g(f(x))=g(2x+1)(g \circ f)(x) = g(f(x)) = g(2x+1)(g∘f)(x)=g(f(x))=g(2x+1)
    g(2x+1)=(2x+1)2+4=(4x2+4x+1)+4=4x2+4x+5g(2x+1) = (2x+1)^2 + 4 = (4x^2 + 4x + 1) + 4 = 4x^2 + 4x + 5g(2x+1)=(2x+1)2+4=(4x2+4x+1)+4=4x2+4x+5
  2. Calculating (f∘g)(x)(f \circ g)(x)(f∘g)(x):

    (f∘g)(x)=f(g(x))=f(x2+4)(f \circ g)(x) = f(g(x)) = f(x^2+4)(f∘g)(x)=f(g(x))=f(x2+4)
    f(x2+4)=2(x2+4)+1=(2x2+8)+1=2x2+9f(x^2+4) = 2(x^2+4) + 1 = (2x^2 + 8) + 1 = 2x^2 + 9f(x2+4)=2(x2+4)+1=(2x2+8)+1=2x2+9

Since 4x2+4x+5≠2x2+94x^2 + 4x + 5 \neq 2x^2 + 94x2+4x+5=2x2+9, it is proven that (g∘f)(x)≠(f∘g)(x)(g \circ f)(x) \neq (f \circ g)(x)(g∘f)(x)=(f∘g)(x). This property also applies to other compositions, for example (f∘h)(x)≠(h∘f)(x)(f \circ h)(x) \neq (h \circ f)(x)(f∘h)(x)=(h∘f)(x) and (g∘h)(x)≠(h∘g)(x)(g \circ h)(x) \neq (h \circ g)(x)(g∘h)(x)=(h∘g)(x).

Associative Property

If we compose three or more functions, the order of performing the composition does not affect the final result, as long as the order of the functions remains the same.

Mathematically, for functions fff, ggg, and hhh, the following holds:

((f∘g)∘h)(x)=(f∘(g∘h))(x)((f \circ g) \circ h)(x) = (f \circ (g \circ h))(x)((f∘g)∘h)(x)=(f∘(g∘h))(x)

This means we can compose fff with ggg first, and then compose the result with hhh. Alternatively, we can compose ggg with hhh first, and then compose fff with the result. The outcome will be the same.

Example:

Let's check if ((f∘g)∘h)(x)=(f∘(g∘h))(x)((f \circ g) \circ h)(x) = (f \circ (g \circ h))(x)((f∘g)∘h)(x)=(f∘(g∘h))(x).

  1. Calculating ((f∘g)∘h)(x)((f \circ g) \circ h)(x)((f∘g)∘h)(x):

    We already know (f∘g)(x)=2x2+9(f \circ g)(x) = 2x^2 + 9(f∘g)(x)=2x2+9.

    ((f∘g)∘h)(x)=(f∘g)(h(x))=(f∘g)(1x+1)((f \circ g) \circ h)(x) = (f \circ g)(h(x)) = (f \circ g)(\frac{1}{x+1})((f∘g)∘h)(x)=(f∘g)(h(x))=(f∘g)(x+11​)
    (f∘g)(1x+1)=2(1x+1)2+9=2(x+1)2+9(f \circ g)(\frac{1}{x+1}) = 2\left(\frac{1}{x+1}\right)^2 + 9 = \frac{2}{(x+1)^2} + 9(f∘g)(x+11​)=2(x+11​)2+9=(x+1)22​+9
  2. Calculating (f∘(g∘h))(x)(f \circ (g \circ h))(x)(f∘(g∘h))(x):

    First, find (g∘h)(x)(g \circ h)(x)(g∘h)(x):

    (g∘h)(x)=g(h(x))=g(1x+1)(g \circ h)(x) = g(h(x)) = g(\frac{1}{x+1})(g∘h)(x)=g(h(x))=g(x+11​)
    g(1x+1)=(1x+1)2+4=1(x+1)2+4g(\frac{1}{x+1}) = \left(\frac{1}{x+1}\right)^2 + 4 = \frac{1}{(x+1)^2} + 4g(x+11​)=(x+11​)2+4=(x+1)21​+4

    Now, compose fff with this result:

    (f∘(g∘h))(x)=f((g∘h)(x))=f(1(x+1)2+4)(f \circ (g \circ h))(x) = f((g \circ h)(x)) = f\left(\frac{1}{(x+1)^2} + 4\right)(f∘(g∘h))(x)=f((g∘h)(x))=f((x+1)21​+4)
    f(1(x+1)2+4)=2(1(x+1)2+4)+1=2(x+1)2+8+1=2(x+1)2+9f\left(\frac{1}{(x+1)^2} + 4\right) = 2\left(\frac{1}{(x+1)^2} + 4\right) + 1 = \frac{2}{(x+1)^2} + 8 + 1 = \frac{2}{(x+1)^2} + 9f((x+1)21​+4)=2((x+1)21​+4)+1=(x+1)22​+8+1=(x+1)22​+9

Since both results are the same (2(x+1)2+9\frac{2}{(x+1)^2} + 9(x+1)22​+9), the associative property is proven to hold: ((f∘g)∘h)(x)=(f∘(g∘h))(x)((f \circ g) \circ h)(x) = (f \circ (g \circ h))(x)((f∘g)∘h)(x)=(f∘(g∘h))(x).

This associative property also applies to other combinations of function order, such as ((h∘f)∘g)(x)=(h∘(f∘g))(x)((h \circ f) \circ g)(x) = (h \circ (f \circ g))(x)((h∘f)∘g)(x)=(h∘(f∘g))(x) and ((g∘f)∘h)(x)=(g∘(f∘h))(x)((g \circ f) \circ h)(x) = (g \circ (f \circ h))(x)((g∘f)∘h)(x)=(g∘(f∘h))(x).

Identity Element

There is a special function called the identity function, denoted by I(x)I(x)I(x), which is defined as I(x)=xI(x) = xI(x)=x. This function does not change its input.

If a function fff is composed with the identity function III (from either the left or the right), the result is the function fff itself.

(f∘I)(x)=f(I(x))=f(x)(f \circ I)(x) = f(I(x)) = f(x)(f∘I)(x)=f(I(x))=f(x)
(I∘f)(x)=I(f(x))=f(x)(I \circ f)(x) = I(f(x)) = f(x)(I∘f)(x)=I(f(x))=f(x)

Example:

With f(x)=2x+1f(x) = 2x + 1f(x)=2x+1:

  • (f∘I)(x)=f(I(x))=f(x)=2x+1(f \circ I)(x) = f(I(x)) = f(x) = 2x + 1(f∘I)(x)=f(I(x))=f(x)=2x+1
  • (I∘f)(x)=I(f(x))=I(2x+1)=2x+1(I \circ f)(x) = I(f(x)) = I(2x+1) = 2x + 1(I∘f)(x)=I(f(x))=I(2x+1)=2x+1

Both result in the function f(x)f(x)f(x) again.

Previous

Function Composition

Next

Inverse Function

  • Properties of Function CompositionExplore function composition properties: non-commutative order, associative grouping, and identity elements. Master (f∘g) rules with proofs.
On this page
  • Properties of Function Composition
    • Non-Commutative Property
    • Associative Property
    • Identity Element
  • Comments
  • Report
  • Source code