Skip to main content
Next exam on November 14 – 15, 2026:
Back to glossary
functionsDifficulty: Basicfunctionsbasic
Share

函数hánshù

function
5 min read
Updated May 6, 2026
Complete

Core Concept

A function is one of the most fundamental concepts in mathematics, describing the relationship between two variables. Simply put, a function is an "input-output" mechanism: given an input value, according to a specific rule, we get a uniquely determined output value.

Mathematical Definition

Let AA and BB be two non-empty sets of numbers. If, according to a correspondence rule ff, for every element xx in set AA, there is a uniquely determined element yy in set BB, then ff is called a function from AA to BB, written as:

y=f(x),x∈Ay = f(x), \quad x \in A

where:

  • xx is the independent variable
  • yy is the dependent variable
  • AA is the domain
  • The set of all values of f(x)f(x) is called the range

Three Elements of a Function

A function is uniquely determined by three elements:

  1. Domain - The set of all possible input values
  2. Rule/Formula - The correspondence from input to output
  3. Range - The set of all possible output values

Important: Two functions are equal if and only if their domains and correspondence rules are the same.

When Are Two Functions the Same?

🌏 Cross-curriculum note: Chinese high school math is stricter about function equality than the conventions used in many other curricula. In some systems, two algebraically equivalent expressions are casually treated as "the same function." In the CSCA framework, the domain matters just as much as the formula.

Two functions ff and gg are considered identical only if both of the following hold:

  1. Same domain — ff and gg are defined on exactly the same set of inputs.
  2. Same correspondence rule — for every xx in the domain, f(x)=g(x)f(x) = g(x).

The variable name (whether it is xx, tt, or uu) does not matter.

Worked Examples

Example A — Domain mismatch after simplification

y=x−1x2−1vs.y=1x+1y = \frac{x - 1}{x^2 - 1} \quad \text{vs.} \quad y = \frac{1}{x + 1}

The first has domain {x∣x≠±1}\{x \mid x \neq \pm 1\}; the second has domain {x∣x≠−1}\{x \mid x \neq -1\}. Even though they simplify to the same expression, they are not the same function because x=1x = 1 is excluded from the first but allowed in the second.

Example B — Same function in disguise

f(x)=∣x∣vs.g(x)=x2f(x) = |x| \quad \text{vs.} \quad g(x) = \sqrt{x^2}

For every real xx, x2=∣x∣\sqrt{x^2} = |x|. Both have domain R\mathbb{R} and produce the same output. These are the same function.

Example C — The x0x^0 trap

f(x)=x0vs.g(x)=1f(x) = x^0 \quad \text{vs.} \quad g(x) = 1

In Chinese high school, 000^0 is undefined, so f(x)=x0f(x) = x^0 has domain {x∣x≠0}\{x \mid x \neq 0\}. But g(x)=1g(x) = 1 has domain R\mathbb{R}. Not the same function.

Example D — Hidden absolute value

f(x)=(x−a)2vs.g(x)=x−af(x) = \sqrt{(x - a)^2} \quad \text{vs.} \quad g(x) = x - a

f(x)=∣x−a∣f(x) = |x - a|, which only equals x−ax - a when x≥ax \geq a. The rules differ for x<ax < a. Not the same function.

Common Function Types

1. Linear Function

f(x)=kx+b(k≠0)f(x) = kx + b \quad (k \neq 0) Graph: straight line

2. Quadratic Function

f(x)=ax2+bx+c(a≠0)f(x) = ax^2 + bx + c \quad (a \neq 0) Graph: parabola

3. Exponential Function

f(x)=ax(a>0,a≠1)f(x) = a^x \quad (a > 0, a \neq 1) Feature: rapid growth or decay

4. Logarithmic Function

f(x)=log⁡ax(a>0,a≠1)f(x) = \log_a x \quad (a > 0, a \neq 1) Feature: inverse of exponential function

5. Trigonometric Functions

f(x)=sin⁡x,cos⁡x,tan⁡x,etc.f(x) = \sin x, \cos x, \tan x, \text{etc.} Feature: periodic

Real-World Applications

Application 1: Speed and Time

Car traveling at 60 km/h. Relationship between time tt (hours) and distance ss (km)?

s=f(t)=60ts = f(t) = 60t

Application 2: Profit Calculation

Product costs 50,sellsfor50, sells for 80. Relationship between quantity xx and profit PP?

P=f(x)=30xP = f(x) = 30x

Application 3: Temperature Conversion

Celsius CC to Fahrenheit FF:

F=f(C)=95C+32F = f(C) = \frac{9}{5}C + 32

CSCA Practice Problems

💡 Note: The following practice problems are designed based on the CSCA exam syllabus and Chinese standardized test formats to help students familiarize themselves with question types and problem-solving approaches.

Example 1: Basic (Difficulty ★★☆☆☆)

Given function f(x)=2x+1f(x) = 2x + 1, find f(3)f(3).

Solution: f(3)=2(3)+1=7f(3) = 2(3) + 1 = 7

Answer: 7


Example 2: Intermediate (Difficulty ★★★☆☆)

Given f(x+1)=x2+2xf(x + 1) = x^2 + 2x, find f(x)f(x).

Solution:

Let t=x+1t = x + 1, then x=t−1x = t - 1.

f(t)=(t−1)2+2(t−1)=t2−1f(t) = (t-1)^2 + 2(t-1) = t^2 - 1

Therefore: f(x)=x2−1f(x) = x^2 - 1


Example 3: Advanced (Difficulty ★★★★☆)

Given f(x)+2f(1x)=3xf(x) + 2f(\frac{1}{x}) = 3x, find f(x)f(x).

Solution:

From the equation: f(x)+2f(1x)=3xf(x) + 2f(\frac{1}{x}) = 3x ... ①

Replace xx with 1x\frac{1}{x}: f(1x)+2f(x)=3xf(\frac{1}{x}) + 2f(x) = \frac{3}{x} ... ②

Solve: ①×2 - ②: 3f(1x)=6x−3x3f(\frac{1}{x}) = 6x - \frac{3}{x} f(1x)=2x−1xf(\frac{1}{x}) = 2x - \frac{1}{x}

Replace xx with 1x\frac{1}{x}: f(x)=−x+2xf(x) = -x + \frac{2}{x}

Common Mistakes

❌ Mistake 1: A function is just a formula

Correction: A function is a correspondence relationship, not necessarily expressed by a formula. It can be represented by tables, graphs, or descriptions.

❌ Mistake 2: One x can correspond to multiple y values

Correction: A function requires one input corresponds to exactly one output. If one xx gives multiple yy values, it's not a function.

Example: x2+y2=1x^2 + y^2 = 1 (circle equation) is not a function.

❌ Mistake 3: Domain can be arbitrary

Correction: Domain must satisfy:

  • Denominator ≠ 0
  • Even roots ≥ 0
  • Logarithm argument > 0
  • Real-world constraints

❌ Mistake 4: Treating algebraically equivalent expressions as the same function

Correction: This is the most common cross-curriculum confusion. Two functions are the same only when both their domain and rule match. Be especially careful with:

  • x−1x2−1\frac{x-1}{x^2-1} vs. 1x+1\frac{1}{x+1} — simplification can shrink the domain
  • x0x^0 vs. 11 — x0x^0 excludes x=0x = 0 in Chinese high school convention
  • x2\sqrt{x^2} vs. xx — the first equals ∣x∣|x|, not xx

Study Tips

  1. ✅ Understand essence: Functions are relationships, not just formulas
  2. ✅ Three elements: Domain, rule, and range are all essential
  3. ✅ Classify types: Know characteristics of common functions
  4. ✅ Analyze properties: Monotonicity, parity, periodicity are key
  5. ✅ Real applications: Identify functional relationships in life

💡 Exam Tip: Functions are core content in CSCA exams, with about 20% of questions directly or indirectly involving functions. Master them thoroughly!

How the real exam tests it

Questions from real CSCA papers that test this term. Work each one out before you open the answer.

  1. CSCA Math December 2025 Past Paper
    Which of the following functions is odd?
    • A.y=cos⁡xy=\cos x
    • B.y=x+x3y=x+x^3
    • C.y=x4y=x^4
    • D.y=xsin⁡xy=x\sin x
    Show answer & solution

    Answer: B

    Answer: B For f(x)=x+x3f(x)=x+x^3, f(−x)=−f(x)f(-x)=-f(x), so it is odd. Choose B.
    See it in the full CSCA Math December 2025 Past Paper
  2. CSCA Math June 2026 Past Paper
    Which of the following statements about the odd function y=f(x)y = f(x) is incorrect?
    • A.The domain of the function is symmetric about the origin
    • B.In the domain of the function, f(−x)=f(x)f(-x) = f(x)
    • C.The graph of the function is symmetric about the origin
    • D.In the domain of the function, f(−x)=−f(x)f(-x) = -f(x)
    Show answer & solution

    Answer: B

    For an odd function, both the domain and the graph are symmetric about the origin, so (A) and (C) are true; by definition f(−x)=−f(x)f(-x) = -f(x), so (D) is true. Statement (B) is the property of an even function and is therefore the incorrect statement. Choose (B).
    Take the full CSCA Math June 2026 Past Paper — timed & graded
  3. CSCA Math April 2026 Past Paper
    The domain of f(x)=3xf ( x ) = \sqrt { 3 x } is
    • A.(0,+∞)( 0 , + \infty )
    • B.(−∞,+∞)( - \infty , + \infty )
    • C.[1,+∞)[ 1 , + \infty )
    • D.[0,+∞)[ 0 , + \infty )
    Show answer & solution

    Answer: D

    The radicand must be non-negative: 3x≥0⇒x≥03 x \geq 0 \Rightarrow x \geq 0. Domain: [0,+∞)[ 0 , + \infty ).
    Take the full CSCA Math April 2026 Past Paper — timed & graded

Practice Exercises

Practice to reinforce your understanding