# 1.1 Functions

SPM Form 4 Additional Mathematics (KSSM) · Chapter 1 Functions. Interactive version with diagrams: https://spmtuition.com/add-math/form-4/chapter-1-functions/1-1-functions/

## Objects and images

A function assigns exactly one image to each object in its domain.

![Arrow diagram of f : x → 2x + 1. Objects 1, 2 and 3 in the domain map to images 3, 5 and 7. The codomain also holds 9, which is not in the range.](https://spmtuition.com/diagrams/function-arrow.svg)

*Arrow diagram of f : x → 2x + 1 for the domain {1, 2, 3}*

| Term | Meaning |
| --- | --- |
| Domain | All allowed inputs |
| Codomain | The stated set of possible outputs |
| Range | Outputs actually obtained |

Write f: x → 2x + 1 or f(x) = 2x + 1. Both describe the same rule.

### Practice questions: Objects and images

1. For f(x) = 3x − 2, find f(4).
   A. 10
   B. 14
   C. 6
   D. −10
   **Answer:** A. 10. Substitute 4 for x before subtracting 2.

## Recognising a function

![Three mapping diagrams compare one-to-one, many-to-one and one-to-many relations.](https://spmtuition.com/diagrams/expand-addmath-function-test.svg)

*Check each input. A function gives exactly one output.*

| Relation | A function? |
| --- | --- |
| One-to-one | Yes |
| Many-to-one | Yes |
| One-to-many | No |
| Many-to-many | No |

A vertical line must meet a function graph at most once.

A discrete domain gives separate points. A continuous domain can give a connected graph.

### Practice questions: Recognising a function

1. Which relation can be a function?
   A. One input with two outputs
   B. Many-to-one
   C. One-to-many
   D. Many-to-many
   **Answer:** B. Many-to-one. Different inputs may share one output.

2. Which test identifies a function graph?
   A. Vertical line test
   B. Horizontal line test
   C. Gradient test
   D. Symmetry test
   **Answer:** A. Vertical line test. Each input must have at most one output.

## Domain restrictions

*Graph of y = √(x − a): Change a. The square root starts where x = a.* (interactive on the web page)

Exclude inputs that make a denominator zero. For real square roots, keep the expression inside non-negative.

**Worked example:** Find the domain of f(x) = √(x − 3).

1. Require x − 3 ≥ 0.
2. Add 3 to both sides.
3. Hence x ≥ 3.

**Answer:** x ≥ 3

For f(x) = |x|, negative inputs give positive outputs. Its range is y ≥ 0.

### Practice questions: Domain restrictions

1. Which input must f(x) = 1/(x − 5) exclude?
   A. 1
   B. −5
   C. 5
   D. 0
   **Answer:** C. 5. At x = 5, the denominator is zero.

2. Find the range of f(x) = x² for domain {−2, 0, 3}.
   A. {−2, 0, 3}
   B. {−4, 0, 9}
   C. {0, 2, 3}
   D. {0, 4, 9}
   **Answer:** D. {0, 4, 9}. Square each input. The range contains outputs, not inputs.

---

Online SPM tuition for Physics, Chemistry, Biology, Mathematics and Additional Mathematics, Form 4–5, in English or BM. Students who want tuition or extra help can request it at https://spmtuition.com/tuition/.
