Composite Functions: Definition and Evaluation | 复合函数的定义与求法

📚 Composite Functions: Definition and Evaluation | 复合函数的定义与求法

In mathematics, a composite function is formed when one function is applied to the result of another function. This concept is fundamental in algebra, calculus, and many real-world modeling scenarios. Understanding how to define and evaluate composite functions is a key skill for any mathematics student.

在数学中,复合函数是指将一个函数作用于另一个函数的结果上而形成的新函数。这一概念是代数、微积分以及许多现实世界建模场景的基础。理解如何定义和求复合函数的值,是每一位数学学生的核心技能。


1. Definition of Composite Functions | 复合函数的定义

A composite function, denoted as (f ∘ g)(x), is defined as f applied to g(x). In other words, we first evaluate the inner function g at x, and then feed that output into the outer function f. The formal definition is (f ∘ g)(x) = f(g(x)).

复合函数记作 (f ∘ g)(x),定义为将 f 作用于 g(x)。换句话说,我们先求内层函数 g 在 x 处的值,然后将该输出代入外层函数 f。其正式定义为 (f ∘ g)(x) = f(g(x))。

Here, the symbol “∘” represents function composition. It is important to note that f ∘ g is generally not the same as g ∘ f. The order of composition matters significantly.

这里的符号”∘”表示函数的复合运算。需要特别注意的是,f ∘ g 通常不等于 g ∘ f。复合的顺序非常重要。


2. Notation and Representation | 记号与表示

There are several ways to represent composite functions. The most common notation is (f ∘ g)(x) = f(g(x)). Some textbooks also use fg(x) or f[g(x)]. All of these notations mean exactly the same thing: replace x in f with the entire expression g(x).

复合函数有多种表示方式。最常见的记法是 (f ∘ g)(x) = f(g(x))。有些教材也写作 fg(x) 或 f[g(x)]。这些记号的含义完全相同:将 f 中的 x 替换为整个 g(x) 的表达式。

Consider two functions: f(x) = 2x + 1 and g(x) = x². Then (f ∘ g)(x) = f(g(x)) = f(x²) = 2(x²) + 1 = 2x² + 1. Notice how the entire expression x² replaces the variable x in the function f.

考虑两个函数:f(x) = 2x + 1 和 g(x) = x²。则 (f ∘ g)(x) = f(g(x)) = f(x²) = 2(x²) + 1 = 2x² + 1。注意整个表达式 x² 替换了函数 f 中的变量 x。


3. Order of Composition | 复合的运算顺序

The order in which functions are composed is crucial. In the expression f ∘ g, we apply g first and then f. Conversely, g ∘ f means applying f first and then g. These two composites usually produce completely different results.

复合的顺序至关重要。在表达式 f ∘ g 中,我们先应用 g,再应用 f。反之,g ∘ f 则表示先应用 f,再应用 g。这两者通常会产生完全不同的结果。

Using the same functions f(x) = 2x + 1 and g(x) = x², let us compute (g ∘ f)(x) = g(f(x)) = g(2x + 1) = (2x + 1)² = 4x² + 4x + 1. Compare this with (f ∘ g)(x) = 2x² + 1. Clearly, f ∘ g ≠ g ∘ f in this case.

仍以 f(x) = 2x + 1 和 g(x) = x² 为例,计算 (g ∘ f)(x) = g(f(x)) = g(2x + 1) = (2x + 1)² = 4x² + 4x + 1。将其与 (f ∘ g)(x) = 2x² + 1 比较,显然此时 f ∘ g ≠ g ∘ f。

f ∘ g ≠ g ∘ f (in general) | 一般情况下 f ∘ g ≠ g ∘ f

It is also essential to read the direction of the circle correctly: f ∘ g reads as “f composed with g” or “f after g,” indicating that g runs first, then f.

正确读取复合符号的方向也很重要:f ∘ g 读作”f 与 g 的复合”或”g 之后 f”,表示先运行 g,再运行 f。


4. Evaluating Composite Functions at Specific Values | 求复合函数在特定点处的值

To evaluate a composite function at a specific numerical value, such as (f ∘ g)(2), there are two valid methods. The first is to substitute step by step: compute g(2) first, then substitute that result into f. The second is to first determine the algebraic expression for f(g(x)), and then plug in x = 2.

求复合函数在具体数值处的值,例如 (f ∘ g)(2),有两种可行的方法。第一种是逐步代入:先计算 g(2),再将结果代入 f。第二种是先求出 f(g(x)) 的代数表达式,然后令 x = 2 代入。

Method 1: Given f(x) = 3x – 5 and g(x) = x + 2, we first find g(2) = 2 + 2 = 4. Then (f ∘ g)(2) = f(4) = 3(4) – 5 = 12 – 5 = 7.

方法一:已知 f(x) = 3x – 5,g(x) = x + 2,先求 g(2) = 2 + 2 = 4。然后 (f ∘ g)(2) = f(4) = 3(4) – 5 = 12 – 5 = 7。

Method 2: First simplify algebraically: (f ∘ g)(x) = f(x + 2) = 3(x + 2) – 5 = 3x + 6 – 5 = 3x + 1. Then evaluate at x = 2: (f ∘ g)(2) = 3(2) + 1 = 7. Both methods yield the same answer, confirming accuracy.

方法二:先进行代数化简:(f ∘ g)(x) = f(x + 2) = 3(x + 2) – 5 = 3x + 6 – 5 = 3x + 1。再令 x = 2 计算:(f ∘ g)(2) = 3(2) + 1 = 7。两种方法得到相同的结果,验证了计算的准确性。


5. Domain of Composite Functions | 复合函数的定义域

The domain of a composite function (f ∘ g)(x) consists of all x-values in the domain of g such that g(x) lies in the domain of f. In other words, before we can apply f to g(x), the output of g must be an acceptable input for f.

复合函数 (f ∘ g)(x) 的定义域由 g 定义域中所有使得 g(x) 落在 f 定义域内的 x 值组成。换句话说,要将 f 作用于 g(x),g 的输出必须是 f 可以接受的输入。

For example, let f(x) = √x and g(x) = x – 1. Since f requires non-negative inputs, we need g(x) = x – 1 ≥ 0, which gives x ≥ 1. Therefore, the domain of (f ∘ g)(x) = √(x – 1) is [1, ∞).

例如,设 f(x) = √x,g(x) = x – 1。由于 f 要求输入非负,我们需要 g(x) = x – 1 ≥ 0,即 x ≥ 1。因此,(f ∘ g)(x) = √(x – 1) 的定义域是 [1, ∞)。

Function Domain Restriction
f(x) = √x x ≥ 0
f(x) = 1/x x ≠ 0
f(x) = ln x x > 0

It is a common mistake to assume that the domain of f ∘ g is always the same as the domain of g. In fact, restrictions from the outer function f must also be satisfied after applying g.

常见的错误是假定 f ∘ g 的定义域总是与 g 的定义域相同。事实上,外层函数 f 的限制条件在应用 g 之后也必须得到满足。


6. Step-by-Step Method for Constructing Composite Functions | 构造复合函数的逐步方法

To construct the composite function f(g(x)), follow these systematic steps. This procedure helps minimize algebraic errors and clarifies the structure of the final expression.

要构造复合函数 f(g(x)),请遵循以下系统化的步骤。这一程序有助于减少代数错误,并明确最终表达式的结构。

  • Step 1: Identify the inner function g(x) and the outer function f(x).
    步骤一:确定内层函数 g(x) 和外层函数 f(x)。
  • Step 2: Write down the outer function f(x) with a blank space in place of x.
    步骤二:写出外层函数 f(x),将 x 的位置留空。
  • Step 3: Substitute the entire expression of g(x) into the blank space.
    步骤三:将 g(x) 的完整表达式填入空位。
  • Step 4: Simplify the resulting expression where possible.
    步骤四:尽可能化简所得表达式。

Let us illustrate with f(x) = x² + 3x and g(x) = 2x – 1. Writing f with a blank: ( )² + 3( ). Now substitute g(x) = 2x – 1: (2x – 1)² + 3(2x – 1) = 4x² – 4x + 1 + 6x – 3 = 4x² + 2x – 2.

以 f(x) = x² + 3x 和 g(x) = 2x – 1 为例说明。将 f 写为带空位的形式:( )² + 3( )。然后代入 g(x) = 2x – 1:(2x – 1)² + 3(2x – 1) = 4x² – 4x + 1 + 6x – 3 = 4x² + 2x – 2。


7. Worked Example 1: Linear Functions | 实例一:线性函数

Consider f(x) = 4x – 7 and g(x) = x + 5. Find both (f ∘ g)(x) and (g ∘ f)(x).

设 f(x) = 4x – 7,g(x) = x + 5。求 (f ∘ g)(x) 和 (g ∘ f)(x)。

For f ∘ g: (f ∘ g)(x) = f(g(x)) = f(x + 5) = 4(x + 5) – 7 = 4x + 20 – 7 = 4x + 13.

求 f ∘ g:(f ∘ g)(x) = f(g(x)) = f(x + 5) = 4(x + 5) – 7 = 4x + 20 – 7 = 4x + 13。

For g ∘ f: (g ∘ f)(x) = g(f(x)) = g(4x – 7) = (4x – 7) + 5 = 4x – 2. The two results differ, reinforcing the importance of the order of composition.

求 g ∘ f:(g ∘ f)(x) = g(f(x)) = g(4x – 7) = (4x – 7) + 5 = 4x – 2。两者结果不同,再次强调了复合顺序的重要性。


8. Worked Example 2: Quadratic and Rational Functions | 实例二:二次函数与有理函数

Let f(x) = 1/x (for x ≠ 0) and g(x) = x² – 4. Find (f ∘ g)(x) and state its domain.

设 f(x) = 1/x(x ≠ 0),g(x) = x² – 4。求 (f ∘ g)(x) 并指出其定义域。

Substituting g into f gives (f ∘ g)(x) = f(x² – 4) = 1/(x² – 4). For this expression to be defined, the denominator must not be zero: x² – 4 ≠ 0, so x ≠ ±2. The domain is all real numbers except 2 and -2.

将 g 代入 f 得到 (f ∘ g)(x) = f(x² – 4) = 1/(x² – 4)。要使该表达式有意义,分母不能为零:x² – 4 ≠ 0,即 x ≠ ±2。定义域为除 2 和 -2 以外的所有实数。

(f ∘ g)(x) = 1/(x² – 4), Domain: x ≠ ±2 | 定义域:x ≠ ±2

This example demonstrates that the domain of the composite is not automatically the full set of real numbers. We must exclude values that make the denominator zero after substitution.

此例展示了复合函数的定义域并非自动就是全体实数。我们必须排除使代入后分母为零的值。


9. Worked Example 3: Composite of Three Functions | 实例三:三层复合函数

Composite functions can involve more than two functions. If f(x) = x + 1, g(x) = 2x, and h(x) = x², then we can form f ∘ g ∘ h, which means f(g(h(x))).

复合函数可以涉及两个以上的函数。若 f(x) = x + 1,g(x) = 2x,h(x) = x²,则可以构造 f ∘ g ∘ h,即 f(g(h(x)))。

Working from the innermost function outward: h(x) = x², then g(h(x)) = g(x²) = 2(x²) = 2x². Finally, f(g(h(x))) = f(2x²) = 2x² + 1.

从最内层函数逐层向外计算:h(x) = x²,然后 g(h(x)) = g(x²) = 2(x²) = 2x²。最后 f(g(h(x))) = f(2x²) = 2x² + 1。

The key rule for multi-layer compositions is to always start from the innermost bracket and work outward. This applies regardless of how many functions are involved.

多层复合的关键规则是始终从最内层的括号开始,逐层向外运算。无论涉及多少个函数,这一规则都适用。


10. Common Mistakes and How to Avoid Them | 常见错误与规避方法

Students frequently encounter certain recurring pitfalls when working with composite functions. Recognizing these mistakes in advance can greatly improve accuracy.

学生在处理复合函数时经常遇到一些反复出现的陷阱。提前识别这些错误可以显著提高准确率。

  • Mistake 1: Confusing the order of composition, e.g., computing g(f(x)) when asked for f(g(x)). Always check which function is written first.
    错误一:混淆复合顺序,例如题目要求 f(g(x)) 却计算了 g(f(x))。务必检查哪个函数写在前面。
  • Mistake 2: Expanding (2x + 1)² incorrectly as 4x² + 1 instead of 4x² + 4x + 1. Use the expansion formula (a + b)² = a² + 2ab + b².
    错误二:错误地展开 (2x + 1)²,写成 4x² + 1,而正确结果是 4x² + 4x + 1。使用展开公式 (a + b)² = a² + 2ab + b²。
  • Mistake 3: Forgetting domain restrictions, particularly when the outer function involves square roots, logarithms, or denominators.
    错误三:忽略定义域限制,尤其是当外层函数涉及平方根、对数或分母时。
  • Mistake 4: Treating f(g(x)) as f(x) × g(x). Composition is not multiplication. f(g(x)) means substitution, not product.
    错误四:将 f(g(x)) 误认为 f(x) × g(x)。复合不是乘法。f(g(x)) 表示代入,而非乘积。

To avoid these errors, always slow down and carefully identify the inner and outer functions before beginning any algebraic manipulation.

为避免这些错误,在进行任何代数运算之前,请放慢节奏,仔细确认内层和外层函数。


11. Connection to Inverse Functions | 与反函数的联系

Composite functions have a special relationship with inverse functions. If f and g are inverse functions of each other, then f(g(x)) = x and g(f(x)) = x for all x in their respective domains. This is a defining property of inverse functions.

复合函数与反函数有着特殊的联系。如果 f 和 g 互为反函数,则对所有属于各自定义域的 x,都有 f(g(x)) = x 且 g(f(x)) = x。这是反函数的定义性性质。

For example, f(x) = 2x and g(x) = x/2 are inverses. Indeed, f(g(x)) = f(x/2) = 2(x/2) = x, and g(f(x)) = g(2x) = (2x)/2 = x. Thus, composing a function with its inverse yields the identity function.

例如,f(x) = 2x 与 g(x) = x/2 互为反函数。确实,f(g(x)) = f(x/2) = 2(x/2) = x,且 g(f(x)) = g(2x) = (2x)/2 = x。因此,函数与其反函数复合得到恒等函数。

In calculus, this relationship underpins the chain rule and the inverse function theorem. A solid understanding of composition now will pay dividends in advanced mathematics.

在微积分中,这一关系是链式法则和反函数定理的基础。现在扎实理解复合运算,将在高等数学中受益匪浅。


12. Practice Problems and Summary | 练习与总结

To master composite functions, consistent practice is essential. Here are some self-test problems to consolidate your understanding.

掌握复合函数离不开持续练习。以下是一些自测题,帮助你巩固理解。

Problem Given Functions Task
1 f(x) = 5x, g(x) = x – 3 Find (f ∘ g)(4)
2 f(x) = x² + 1, g(x) = 3x Find (g ∘ f)(x)
3 f(x) = √x, g(x) = 2x + 6 Find domain of (f ∘ g)(x)
4 f(x) = 1/(x – 1), g(x) = x + 2 Find (f ∘ g)(x) and its domain

Answers: 1. (f ∘ g)(4) = f(1) = 5. 2. (g ∘ f)(x) = 3x² + 3. 3. Need 2x + 6 ≥ 0, so x ≥ -3. 4. (f ∘ g)(x) = 1/(x + 1), with x ≠ -1.

答案:1. (f ∘ g)(4) = f(1) = 5。2. (g ∘ f)(x) = 3x² + 3。3. 需要 2x + 6 ≥ 0,故 x ≥ -3。4. (f ∘ g)(x) = 1/(x + 1),且 x ≠ -1。

In summary, a composite function f(g(x)) is a combination of two functions where the output of g becomes the input of f. Mastering the definition, notation, order, and domain restrictions is essential for solving such problems confidently and correctly.

总而言之,复合函数 f(g(x)) 是两个函数的组合,其中 g 的输出成为 f 的输入。熟练掌握定义、记号、运算顺序和定义域限制,是自信且正确解决此类问题的关键。

Published by TutorHao | Mathematics Revision Series | aleveler.com

更多咨询请联系16621398022(同微信)

Comments

屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from aleveler.com

Subscribe now to keep reading and get access to the full archive.

Continue reading