CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download
Views: 36
Image: ubuntu2204
Kernel: Python 3 (system-wide)

Function Composition and Its Properties

Function composition is a fundamental concept in mathematics, particularly in the study of functions. It involves creating new functions by applying one function to the results of another.

Basic Concepts

Definition

Given two functions f(x)f(x) and g(x)g(x), the composition of ff and gg, denoted as (fg)(x)(f \circ g)(x), is defined as f(g(x))f(g(x)).

Properties

  • Non-Commutativity: Generally, (fg)(x)(gf)(x)(f \circ g)(x) \neq (g \circ f)(x).

  • Domain Considerations: The domain of (fg)(x)(f \circ g)(x) is determined by the domain of gg and the range of gg that lies within the domain of ff.

Examples

Example 1

Let f(x)=x2+3f(x) = x^2 + 3 and g(x)=xg(x) = \sqrt{x}.

Part (a)

Find (fg)(x)(f \circ g)(x).

Solution:

(fg)(x)=f(g(x))=[g(x)]2+3=(x)2+3=x+3(f \circ g)(x) = f(g(x)) = [g(x)]^2 + 3 = (\sqrt{x})^2 + 3 = x + 3
  • Domain: Since g(x)g(x) is x\sqrt{x}, its domain is [0,)[0, \infty). Thus, the domain of (fg)(f \circ g) is also [0,)[0, \infty).

Part (b)

Find (gf)(x)(g \circ f)(x).

Solution:

(gf)(x)=g(f(x))=f(x)=x2+3(g \circ f)(x) = g(f(x)) = \sqrt{f(x)} = \sqrt{x^2 + 3}
  • Domain: The domain of f(x)f(x) is (,)(-\infty, \infty), and since x2+30x^2 + 3 \geq 0 for all xx, the domain of (gf)(x)(g \circ f)(x) is also (,)(-\infty, \infty).

Example 2

Express h(x)=(x+1)2h(x) = (x + 1)^2 as a composition of simpler functions.

Solution:

  • Consider g(x)=x+1g(x) = x + 1 and f(x)=x2f(x) = x^2.

  • Then, h(x)=[g(x)]2=f(g(x))h(x) = [g(x)]^2 = f(g(x)).

  • Thus, h=fgh = f \circ g.

Example 3

Express sin(x3)\sin(x^3) as a composition of two functions.

Solution:

  • Let g(x)=x3g(x) = x^3 (inside function) and f(x)=sin(x)f(x) = \sin(x) (outside function).

  • Then, sin(x3)=f(g(x))\sin(x^3) = f(g(x)).

Decomposing Functions into Compositions

  • A function can often be expressed as a composition of two or more simpler functions.

  • The process involves identifying an "inside function" and an "outside function".

  • This method is particularly useful in calculus and algebra for simplifying complex functions.

Table of Function Compositions

FunctionCompositionInside (g(x)g(x))Outside (f(x)f(x))
(x2+1)10(x^2 + 1)^{10}f(g(x))f(g(x))x2+1x^2 + 1x10x^{10}
sin3(x)\sin^3(x)f(g(x))f(g(x))sin(x)\sin(x)x3x^3
tan(x5)\tan(x^5)f(g(x))f(g(x))x5x^5tan(x)\tan(x)
43x\sqrt{4 - 3x}f(g(x))f(g(x))43x4 - 3xx\sqrt{x}
8+x8 + \sqrt{x}f(g(x))f(g(x))x\sqrt{x}8+x8 + x

Note: Expressing functions as compositions can vary. For example, (x2+1)10(x^2 + 1)^{10} can also be expressed differently as shown in the given solutions.


In conclusion, understanding function composition is essential in mathematical analysis, allowing for the simplification and manipulation of complex expressions.

Graphical Transformations of Functions

Graphical transformations allow us to use basic function graphs to understand and construct graphs of more complex functions. By applying simple operations such as addition, subtraction, and composition, we can visualize the changes to the graph of a function.

Composition of Functions

Consider the function y=x+1xy = \sqrt{x} + \frac{1}{x}. To sketch this function, we can use the individual graphs of y=xy = \sqrt{x} and y=1xy = \frac{1}{x}, and add the corresponding yy-coordinates for each x0x \geq 0.

image.png

Example

To illustrate this with an example, if we want to sketch the graph of the function y=x1xy = \sqrt{x} - \frac{1}{x}, we would perform the following steps:

  1. Plot the graph of y=xy = \sqrt{x}.

  2. Plot the graph of y=1xy = \frac{1}{x}.

  3. For each x0x \geq 0, subtract the yy-value of 1x\frac{1}{x} from the yy-value of x\sqrt{x}.

  4. The resulting points give the graph of y=x1xy = \sqrt{x} - \frac{1}{x}.

Translations of Functions

Translating a function involves shifting the graph horizontally and/or vertically. This can be done by adding or subtracting a constant to the function's output (vertical shift) or its input (horizontal shift).

Table of Translations

Operation on y=f(x)y = f(x)New EquationGeometric Effect
Add a positive constant cc to f(x)f(x)y=f(x)+cy = f(x) + cShifts the graph up by cc units
Subtract a positive constant cc from f(x)f(x)y=f(x)cy = f(x) - cShifts the graph down by cc units
Add a positive constant cc to xxy=f(x+c)y = f(x + c)Shifts the graph left by cc units
Subtract a positive constant cc from xxy=f(xc)y = f(x - c)Shifts the graph right by cc units

image-3.png

Examples

  1. To sketch y=x3y = \sqrt{x} - 3, shift the graph of y=xy = \sqrt{x} to the right by 3 units.

  2. For y=x+3y = \sqrt{x} + 3, shift the graph of y=xy = \sqrt{x} to the left by 3 units.

  3. The graph of y=x24x+5y = x^2 - 4x + 5 can be obtained by completing the square to write the function as y=(x2)2+1y = (x - 2)^2 + 1 and then shifting the graph of y=x2y = x^2 right by 2 units and up by 1 unit.

image-4.png

By using these principles, we can construct the graphs of many functions from the basic graphs of y=x2y = x^2, y=xy = \sqrt{x}, and y=1xy = \frac{1}{x}.

image-2.png

Function Transformations and Symmetry

Function transformations include operations such as reflections, translations, stretches, and compressions, which modify the graph of a function in various ways.

Reflections

  • Reflection about the y-axis: If you replace xx with x-x in the function f(x)f(x), the new function f(x)f(-x) will reflect the graph of f(x)f(x) about the y-axis.

  • Reflection about the x-axis: If you multiply the function f(x)f(x) by 1-1, the new function f(x)-f(x) will reflect the graph of f(x)f(x) about the x-axis.

image.png

image-3.png

Translations

  • Vertical Translations: Adding or subtracting a constant from f(x)f(x) shifts the graph vertically.

  • Horizontal Translations: Adding or subtracting a constant from xx shifts the graph horizontally.

image-2.png

Stretches and Compressions

  • Vertical Stretches and Compressions: Multiplying f(x)f(x) by a constant cc stretches or compresses the graph vertically depending on whether c>1c > 1 or 0<c<10 < c < 1.

  • Horizontal Stretches and Compressions: Multiplying xx by a constant cc compresses or stretches the graph horizontally depending on whether c>1c > 1 or 0<c<10 < c < 1.

image-4.png

Symmetry

  • Symmetry about the x-axis: A function is symmetric about the x-axis if for every point (x,y)(x, y), the point (x,y)(x, -y) is also on the graph.

  • Symmetry about the y-axis: A function is symmetric about the y-axis if for every point (x,y)(x, y), the point (x,y)(-x, y) is also on the graph.

  • Symmetry about the origin: A function is symmetric about the origin if for every point (x,y)(x, y), the point (x,y)(-x, -y) is also on the graph.

image-5.png

Even and Odd Functions

  • Even Functions: A function ff is even if f(x)=f(x)f(-x) = f(x). Its graph is symmetric about the y-axis.

  • Odd Functions: A function ff is odd if f(x)=f(x)f(-x) = -f(x). Its graph is symmetric about the origin.

image-6.png

Examples

  1. To sketch y=32xy = 3\sqrt{2 - x}:

    • Reflect y=3xy = 3\sqrt{x} about the y-axis to get y=3xy = 3\sqrt{-x}.

    • Then translate it right by 2 units.

    image-7.png

  2. To sketch y=4x2y = 4 - |x - 2|:

    • Translate y=xy = |x| right by 2 units to get y=x2y = |x - 2|.

    • Reflect it about the x-axis and then translate it up by 4 units.

These transformations and symmetries are powerful tools for analyzing and sketching the graphs of complex functions based on simple ones.