ในทางคณิตศาสตร์ ฟังก์ชัน (Function) เป็นเครื่องมือพื้นฐานที่ใช้อธิบายความสัมพันธ์ระหว่างปริมาณสองชนิด โดยที่ผลลัพธ์หนึ่งจะขึ้นอยู่กับปัจจัยตั้งต้นเพียงปัจจัยเดียว การทำความเข้าใจฟังก์ชันต้องเริ่มจากการศึกษา ผลคูณคาร์ทีเซียน และ ความสัมพันธ์ ซึ่งเป็นรากฐานของโครงสร้างคู่อันดับ
In mathematics, a Function is a fundamental tool used to describe the relationship between two quantities, where one outcome strictly depends on one initial factor. Understanding functions requires foundational knowledge of the Cartesian Product and Relations, which form the basis of ordered pair structures.
📦 ผลคูณคาร์ทีเซียน 📦 Cartesian Product
ผลคูณคาร์ทีเซียน ของเซต $A$ และ $B$ (เขียนแทนด้วย $A \times B$) คือเซตของ คู่อันดับ $(a, b)$ ทั้งหมด โดยที่สมาชิกตัวหน้ามาจากเซต $A$ และสมาชิกตัวหลังมาจากเซต $B$
The Cartesian Product of sets $A$ and $B$ (denoted as $A \times B$) is the set of all ordered pairs $(a, b)$ where the first element is from $A$ and the second is from $B$.
กำหนด $A = \{1, 2\}$ และ $B = \{x, y\}$
$$A \times B = \{(1,x), (1,y), (2,x), (2,y)\}$$Given $A = \{1, 2\}$ and $B = \{x, y\}$
$$A \times B = \{(1,x), (1,y), (2,x), (2,y)\}$$การสลับที่: จากตัวอย่าง 1.1 จงหา $B \times A$
$$B \times A = \{(x,1), (x,2), (y,1), (y,2)\}$$$\text{สังเกตว่า } A \times B \neq B \times A$
Commutativity: From Ex 1.1, find $B \times A$
$$B \times A = \{(x,1), (x,2), (y,1), (y,2)\}$$$\text{Note that } A \times B \neq B \times A$
ผลคูณกับตัวเอง: $A = \{a, b\}$
$$A \times A = \{(a,a), (a,b), (b,a), (b,b)\}$$Self-product: $A = \{a, b\}$
$$A \times A = \{(a,a), (a,b), (b,a), (b,b)\}$$จำนวนสมาชิก: $n(A \times B) = n(A) \times n(B)$
$\text{ถ้า } n(A) = 3 \text{ และ } n(B) = 4$
$$n(A \times B) = 3 \times 4 = 12 \text{ คู่}$$Number of elements: $n(A \times B) = n(A) \times n(B)$
$\text{If } n(A) = 3 \text{ and } n(B) = 4$
$$n(A \times B) = 3 \times 4 = 12 \text{ pairs}$$ผลคูณกับเซตว่าง: $A = \{1, 2\}$ และ $B = \emptyset$
$$A \times \emptyset = \emptyset$$$\text{ไม่สามารถจับคู่ได้ จึงเป็นเซตว่าง}$
Product with empty set: $A = \{1, 2\}$ and $B = \emptyset$
$$A \times \emptyset = \emptyset$$$\text{Cannot form pairs, thus an empty set}$
🔗 ความสัมพันธ์ 🔗 Relations
ความสัมพันธ์ (Relation) $r$ จากเซต $A$ ไปยังเซต $B$ คือ สับเซตของ $A \times B$
นั่นคือ ความสัมพันธ์จะเป็นการเลือกคู่อันดับจากผลคูณคาร์ทีเซียนมาเฉพาะคู่ที่เข้าเงื่อนไขบางอย่าง
A Relation $r$ from set $A$ to set $B$ is a subset of $A \times B$.
Essentially, a relation selects only the ordered pairs from the Cartesian product that satisfy a specific condition.
ความสัมพันธ์ "น้อยกว่า": $A = \{1, 3\}$, $B = \{2, 4\}$
"Less than" relation: $A = \{1, 3\}$, $B = \{2, 4\}$
ความสัมพันธ์ "เท่ากับ" บนเซต $A = \{1, 2, 3\}$
"Equals" relation on set $A = \{1, 2, 3\}$
ความสัมพันธ์แบบแจกแจงสมาชิก
$$r = \{(1, a), (1, b), (2, c)\}$$$\text{1 ตัวหน้า สามารถจับคู่ได้มากกว่า 1 ตัวหลัง}$
Relation by set of pairs
$$r = \{(1, a), (1, b), (2, c)\}$$$\text{1 first element can map to more than 1 second element}$
ความสัมพันธ์ผกผัน (Inverse) $r^{-1}$
$\text{สลับ } x \text{ และ } y \text{ จาก } r$
Inverse Relation $r^{-1}$
$\text{Swap } x \text{ and } y \text{ from } r$
ความสัมพันธ์ที่เป็นสมการ: บน $\mathbb{R}$
$\text{กราฟคือวงกลมรัศมี } 5$
Relation as an equation: On $\mathbb{R}$
$\text{The graph is a circle of radius } 5$
🎯 นิยามของฟังก์ชัน 🎯 Functions Definition
ฟังก์ชัน (Function) คือ ความสัมพันธ์ที่ สมาชิกตัวหน้าของคู่อันดับแต่ละตัว จับคู่กับสมาชิกตัวหลังได้เพียงตัวเดียวเท่านั้น
นิยามทางคณิตศาสตร์: ถ้า $(x, y) \in f$ และ $(x, z) \in f$ แล้ว $y = z$
(จำง่ายๆ: $x$ ตัวเดียวกัน ห้ามมี $y$ หลายค่า / ห้ามใจเหลาะแหละ)
A Function is a relation in which each element of the domain (first element) maps to exactly one element of the range (second element).
Math definition: If $(x, y) \in f$ and $(x, z) \in f$, then $y = z$.
(Simply put: the same $x$ cannot have multiple $y$'s.)
แบบแจกแจงสมาชิก (เป็นฟังก์ชัน)
$$f_1 = \{(1, 2), (2, 4), (3, 4)\}$$$\text{เป็นฟังก์ชัน: ไม่มี } x \text{ ซ้ำกัน (} y \text{ ซ้ำกันได้)}$
Set of pairs (Is a Function)
$$f_1 = \{(1, 2), (2, 4), (3, 4)\}$$$\text{Is function: No repeated } x \text{ (repeated } y \text{ is fine).}$
แบบแจกแจงสมาชิก (ไม่เป็นฟังก์ชัน)
$$r_1 = \{(\textcolor{red}{1}, 2), (\textcolor{red}{1}, 3), (2, 4)\}$$$\text{ไม่เป็นฟังก์ชัน: } x=1 \text{ จับคู่ทั้ง } 2 \text{ และ } 3$
Set of pairs (Not a Function)
$$r_1 = \{(\textcolor{red}{1}, 2), (\textcolor{red}{1}, 3), (2, 4)\}$$$\text{Not a function: } x=1 \text{ maps to both } 2 \text{ and } 3.$
แบบสมการ: $y = x^2$ (เป็นฟังก์ชัน)
$\text{แทน } x \text{ หนึ่งค่า ได้ } y \text{ ค่าเดียวเสมอ}$
Equation: $y = x^2$ (Is a Function)
$\text{One } x \text{ yields exactly one } y.$
แบบสมการ: $x = y^2$ (ไม่เป็นฟังก์ชัน)
$\text{สมการได้ } y = \pm\sqrt{x} \text{ (ได้ } y \text{ 2 ค่า)}$
Equation: $x = y^2$ (Not a Function)
$\text{Yields } y = \pm\sqrt{x} \text{ (2 values of } y).$
การทดสอบเส้นตรงแนวดิ่ง (Vertical Line Test)
ลากเส้นขนานแกน $Y$ หากตัดกราฟเกิน 1 จุด = ไม่เป็นฟังก์ชัน (ดัง Ex 3.4)
$$ x^2 + y^2 = 4 \implies \text{กราฟวงกลม}$$$\text{เส้นดิ่งตัด 2 จุด = ไม่เป็นฟังก์ชัน}$
Vertical Line Test
Draw a line parallel to the $Y$-axis. If it cuts the graph at more than 1 point = Not a function (like Ex 3.4)
$$ x^2 + y^2 = 4 \implies \text{Circle graph}$$$\text{Vertical line cuts at 2 points = Not a function}$
📏 โดเมนและเรนจ์ 📏 Domain and Range
โดเมน (Domain, $D_f$): เซตของสมาชิกตัวหน้า ($x$) ทั้งหมดที่เป็นไปได้ในความสัมพันธ์หรือฟังก์ชัน
เรนจ์ (Range, $R_f$): เซตของสมาชิกตัวหลัง ($y$) ทั้งหมดที่เป็นไปได้ในความสัมพันธ์หรือฟังก์ชัน
หลักการหา $D_f$: จัดรูป $y = \text{เทอมของ } x$ แล้วดูว่า $x$ ห้ามเป็นอะไร
หลักการหา $R_f$: จัดรูป $x = \text{เทอมของ } y$ แล้วดูว่า $y$ ห้ามเป็นอะไร
Domain ($D_f$): The set of all possible first elements ($x$) in the relation/function.
Range ($R_f$): The set of all possible second elements ($y$) in the relation/function.
To find $D_f$: Isolate $y = f(x)$, find restrictions on $x$.
To find $R_f$: Isolate $x = f(y)$, find restrictions on $y$.
จากเซตคู่อันดับ
$$f = \{(-1, 3), (0, 4), (1, 5)\}$$From set of ordered pairs
$$f = \{(-1, 3), (0, 4), (1, 5)\}$$ฟังก์ชันเชิงเส้น (Linear): $y = 3x - 2$
ไม่มีเศษส่วน ไม่มีรากที่สอง แทน $x$ และ $y$ ได้ทุกจำนวนจริง
Linear function: $y = 3x - 2$
No fractions, no square roots. $x, y$ can be any real number.
ฟังก์ชันเศษส่วน: $\displaystyle y = \frac{5}{x - 2}$
หา $D_f$: ตัวส่วนต้องไม่เป็นศูนย์
Rational function: $\displaystyle y = \frac{5}{x - 2}$
Find $D_f$: Denominator cannot be zero.
ฟังก์ชันติดราก: $y = \sqrt{x - 3}$
หา $D_f$: ในรากคู่ต้อง $\ge 0$
หา $R_f$: รากที่สองเป็นบวกเสมอ $y \ge 0$
Radical function: $y = \sqrt{x - 3}$
Find $D_f$: Inside even root $\ge 0$.
Find $R_f$: Square root is always positive $y \ge 0$.
หา $R_f$ จากการจัดรูปสมการ: $\displaystyle y = \frac{2x}{x - 1}$
จัดรูป $x = \text{เทอมของ } y$:
$\text{ตัวส่วน } y - 2 \neq 0 \implies R_f = \mathbb{R} - \{2\}$
Find $R_f$ by rearranging: $\displaystyle y = \frac{2x}{x - 1}$
Isolate $x$ in terms of $y$:
$\text{Denominator } y - 2 \neq 0 \implies R_f = \mathbb{R} - \{2\}$
ฟังก์ชันกำลังสอง (Quadratic): $y = x^2 + 2x - 3$
หา $D_f$: ไม่มีข้อจำกัดทางคณิตศาสตร์ แทนค่า $x$ ได้ทุกจำนวนจริง
หา $R_f$: จัดรูปกำลังสองสมบูรณ์เพื่อหาค่าต่ำสุด
เนื่องจาก $(x + 1)^2 \ge 0$ จะได้ $y \ge -4$
Quadratic function: $y = x^2 + 2x - 3$
Find $D_f$: No restrictions on $x$. $x$ can be any real number.
Find $R_f$: Complete the square to find the minimum value.
Since $(x + 1)^2 \ge 0$, we have $y \ge -4$.
ฟังก์ชันค่าสัมบูรณ์ (Absolute Value): $y = |x - 1| + 2$
หา $D_f$: แทน $x$ ได้ทุกจำนวนจริง
หา $R_f$: พิจารณาจากสมบัติของค่าสัมบูรณ์
เนื่องจาก $|x - 1| \ge 0$ เสมอ
บวก 2 ทั้งสองข้าง: $|x - 1| + 2 \ge 2 \implies y \ge 2$
Absolute value function: $y = |x - 1| + 2$
Find $D_f$: $x$ can be any real number.
Find $R_f$: Consider the property of absolute values.
Since $|x - 1| \ge 0$ always,
Add 2 to both sides: $|x - 1| + 2 \ge 2 \implies y \ge 2$.
ฟังก์ชันเศษส่วนที่มีรากเป็นตัวส่วน: $\displaystyle y = \frac{1}{\sqrt{x - 2}}$
หา $D_f$: ตัวเลขใต้รากคู่ต้องมากกว่าศูนย์ (ห้ามเป็นลบ และห้ามเป็นศูนย์เพราะเป็นตัวส่วน)
หา $R_f$: เนื่องจากเศษเป็นบวก และส่วนเป็นบวกเสมอ
ทำให้ $y$ มีค่ามากกว่า 0 เสมอ
Rational function with radical denominator: $\displaystyle y = \frac{1}{\sqrt{x - 2}}$
Find $D_f$: The expression inside the root must be strictly positive (cannot be negative, and cannot be zero since it is in the denominator).
Find $R_f$: Since the numerator is positive and the denominator is always positive,
$y$ must be strictly greater than 0.
ฟังก์ชันครึ่งวงกลม (Semi-circle): $y = \sqrt{9 - x^2}$
หา $D_f$: ค่าในรากที่สองต้องไม่ติดลบ
หา $R_f$: เนื่องจากรากที่สองเป็นบวกเสมอ และค่าสูงสุดของรากคือเมื่อ $x = 0$
Semi-circle function: $y = \sqrt{9 - x^2}$
Find $D_f$: The expression inside the square root must be non-negative.
Find $R_f$: Since the square root is non-negative and its maximum occurs when $x = 0$:
ฟังก์ชันเศษส่วนที่มีกำลังสอง: $\displaystyle y = \frac{x^2}{x^2 + 1}$
หา $D_f$: เนื่องจาก $x^2 + 1 \ge 1$ ไม่มีทางเป็นศูนย์ แทน $x$ ได้ทุกจำนวนจริง
หา $R_f$: จัดรูป $x = \text{เทอมของ } y$
เนื่องจาก $x^2 \ge 0$ จะได้ $\frac{y}{1 - y} \ge 0$ (โดยที่ $y \neq 1$)
Rational function with squared terms: $\displaystyle y = \frac{x^2}{x^2 + 1}$
Find $D_f$: Since $x^2 + 1 \ge 1$, the denominator is never zero. $x$ can be any real number.
Find $R_f$: Isolate $x$ in terms of $y$.
Since $x^2 \ge 0$, we have $\frac{y}{1 - y} \ge 0$ (where $y \neq 1$).
คำศัพท์ที่น่าสนใจ Key Vocabulary
คำศัพท์คณิตศาสตร์ภาษาอังกฤษ พร้อมรากศัพท์
| คำศัพท์ | รากศัพท์ / Root | ความหมาย / Meaning |
|---|---|---|
| Relation | relatus (carried back) | ความสัมพันธ์ · ชุดของคู่อันดับที่เป็นสับเซตของผลคูณคาร์ทีเซียน |
| Function | functio (performance) | ฟังก์ชัน · ความสัมพันธ์ที่ตัวแปรต้น (x) 1 ค่า จะให้ค่าตัวแปรตาม (y) เพียงค่าเดียวเท่านั้น |
| Cartesian Product | Cartesius (René Descartes) | ผลคูณคาร์ทีเซียน · เซตของคู่อันดับทั้งหมดที่เป็นไปได้จากการนำสมาชิกเซตมาจับคู่กัน |
| Domain | dominium (property) | โดเมน · เซตของสมาชิกตัวหน้า (x) ทั้งหมดในความสัมพันธ์ |
| Range | rang (row, line) | เรนจ์ · เซตของสมาชิกตัวหลัง (y) ทั้งหมดในความสัมพันธ์ |
| Ordered Pair | ordo (order) + par (equal) | คู่อันดับ · สัญลักษณ์ $(a,b)$ บ่งบอกถึงตำแหน่งที่มีความสำคัญในการจับคู่ สลับที่ไม่ได้ |