NEETJEE.guru
MathematicsJEE

Function — Definition (Every Element Has One and Only One Image)

By Admin 13 November 2026 Updated 20 November 2026 13 min read 2 views
On this page· 13 sections
Overview

Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4 Functions, Definition 5. Builds on: Relation from Set A to Set B — Definition and Representation. Next: Real Valued Function and Real Function, which classifies functions by where their domain and range lie.

Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4 Functions, Definition 5. Builds on: Relation from Set A to Set B — Definition and Representation. Next: Real Valued Function and Real Function, which classifies functions by where their domain and range lie.

A relation f from a non-empty set A to a non-empty set B is called a function if every element of set A has one and only one image in set B. Equivalently, f is a function from A to B if the domain of f is the whole of A and no two distinct ordered pairs in f share the same first element. A function is written f: A → B, and if (a, b) ∈ f, then f(a) = b, where b is the image of a and a is the preimage of b.

At a glance

  • A function is a special kind of relation — every relation that is a function is automatically a relation, but not every relation is a function.
  • The test has two parts: (1) every element of A must have some image, and (2) that image must be unique.
  • Notation: , read "f maps A to B"; for (a, b) ∈ f, we write .
  • b is the image of a, and a is a preimage of b — image and preimage point in opposite directions.
  • A relation fails to be a function if even one element of A is left without an image, or is sent to two or more different images.

Learning objectives

  • State Definition 5 of a function and its "domain = A, unique first elements" equivalent form.
  • Use the two-part test (every element has an image; each image is unique) to decide whether a given relation is a function.
  • Use f: A → B, f(a) = b notation correctly, naming image and preimage.
  • Evaluate a function defined piecewise (by different rules on different parts of its domain) at given inputs.

Prerequisite knowledge

The reader should already know the definition of a relation R from set A to set B as a subset of A × B, including the terms domain, codomain and image, from the preceding article.

Core explanation

Definition 5. A relation f from a set A to a set B is said to be a function if every element of set A has one and only one image in set B. NCERT restates this precisely: a function f is a relation from a non-empty set A to a non-empty set B such that the domain of f is A and no two distinct ordered pairs in f have the same first element. These are two ways of saying the same thing — the second phrasing simply unpacks "one and only one image" into its two separate requirements.

The two-part test. Given a relation (a set of ordered pairs, or a rule), check:

  1. Existence of an image. Does every element of A appear as a first element of some pair? If any element of A is left out, the relation is not a function.
  2. Uniqueness of the image. Does no element of A appear as the first element of two (or more) pairs with different second elements? If one element of A has two different images, the relation is not a function.

Both conditions must hold. A relation can fail to be a function for either reason, and NCERT's own earlier examples illustrate each failure separately.

Why Example 7's relation is not a function. For A = {1, 2, 3, 4, 5, 6} and R = {(x, y) : y = x + 1}, the roster form is R = {(1,2), (2,3), (3,4), (4,5), (5,6)} — the pair (6, 7) is excluded because 7 ∉ A. The domain of R is only {1, 2, 3, 4, 5}, not the full set A. Since the element 6 has no image at all, condition 1 of the test fails, so this relation is not a function from A to A.

Why Example 8's relation is not a function. The relation "x is the square of y" from P to Q has roster form R = {(9, 3), (9, −3), (4, 2), (4, −2), (25, 5), (25, −5)}. Here every element that appears in the domain does have an image — but 9 has two images (3 and −3), and likewise 4 and 25 each have two images. Since elements of the domain are connected to more than one image, condition 2 of the test fails, so this relation is also not a function.

Example 11 — testing three relations. Examine each relation and decide if it is a function:

  • (i) R = {(2,1), (3,1), (4,2)} — the first elements 2, 3, 4 are all distinct, so each has exactly one image (1, 1, and 2 respectively; note 2 and 3 are allowed to share the same image 1). This is a function.
  • (ii) R = {(2,2), (2,4), (3,3), (4,4)} — the first element 2 appears twice, once paired with 2 and once with 4. Since 2 has two different images, this is not a function.
  • (iii) R = {(1,2), (2,3), (3,4), (4,5), (5,6), (6,7)} — every first element (1 through 6) is distinct and has exactly one image. This is a function.

A function can be defined by more than one rule. A single function f may use different algebraic rules on different parts of its domain, as long as every input still gets exactly one output overall — this is called a piecewise (or case-defined) function. The test for "one and only one image" still applies to the combined rule, not to each piece in isolation.

Key terms

  • Function (f: A → B) — a relation from A to B in which every element of A has exactly one image in B.
  • Image — if (a, b) ∈ f, then b is called the image of a under f.
  • Preimage — if (a, b) ∈ f, then a is called a preimage of b under f.
  • Domain of a function — for a function f: A → B, the domain must equal the entire set A (unlike a general relation, where some elements of A may be left out).
  • Piecewise function — a function defined by two or more different rules, each applying on a different part of the domain.

Diagram / figure guidance

Draw three small arrow diagrams side by side, mirroring Example 11: diagram (i) with arrows 2→1, 3→1, 4→2 (a valid function — label it "✓ function"); diagram (ii) with arrows 2→2, 2→4, 3→3, 4→4, visually showing two arrows leaving the same dot (2) (label it "✗ not a function — two images"); and a third diagram based on Example 7 showing the dot "6" with no arrow leaving it at all (label it "✗ not a function — no image"). Seeing all three together makes the two-part test visually unmistakable.

Worked example

The function f is defined by f(x) = 1 − x for x < 0, and f(x) = x + 1 for x ≥ 0 (NCERT Example 22, Miscellaneous Exercise). Find f(−3), f(0), and f(4), and explain why this piecewise rule still defines a single function.

f(−3): Since −3 < 0, use the first rule: f(−3) = 1 − (−3) = 1 + 3 = 4.

f(0): Since 0 ≥ 0, use the second rule: f(0) = 0 + 1 = 1.

f(4): Since 4 ≥ 0, use the second rule: f(4) = 4 + 1 = 5.

Why it is still one function. Even though f is described by two different algebraic expressions, every real number x falls into exactly one of the two cases (x < 0, or x ≥ 0) — never both, never neither. So every input still receives exactly one output: the piecewise rule satisfies "one and only one image" just as a single-formula function would. (As a check on consistency, both pieces agree in spirit at the boundary: 1 − x at x = 0 would give 1, matching x + 1 at x = 0, which also gives 1.)

Common misconceptions

  • "Every relation is a function." False — a relation only needs to be some subset of A × B; a function additionally requires every element of A to appear exactly once as a first element.
  • "If two different elements of A map to the same element of B, it isn't a function." False — Example 11(i) shows 2 and 3 both mapping to image 1, and it is still a function. The uniqueness condition is about one element of A having only one image, not about two elements of A sharing an image.
  • "A piecewise rule can't be a single function." False — as long as the pieces cover the whole domain without overlap, the combined rule defines one function, as in the worked example above.
  • "The preimage and the image are interchangeable terms." False — for (a, b) ∈ f, b is the image of a, while a is a preimage of b; direction matters, and a single b can have more than one preimage even though a cannot have more than one image.

Exam application (JEE)

JEE questions frequently give a set of ordered pairs, an arrow diagram, or an algebraic rule with a restricted domain, and ask whether it defines a function — testing exactly the two-part check above. A common trap is a relation that looks fine at a glance but secretly omits one element of the stated domain (as in Example 7) or secretly assigns two images to one element (as in Example 8). Piecewise-defined functions, like the one in the worked example, are also tested by asking students to evaluate f at specific points, including right at the boundary between the pieces.

Frequently asked questions

  • What is the definition of a function in Class 11 Maths? A function f from a non-empty set A to a non-empty set B is a relation in which every element of A has one and only one image in B; equivalently, the domain of f is all of A and no two distinct ordered pairs in f share the same first element.
  • How is a function different from a relation? Every function is a relation, but a relation becomes a function only when it additionally satisfies two extra conditions: every element of the first set must have an image, and that image must be unique.
  • What do "image" and "preimage" mean? For a function f with f(a) = b, b is called the image of a, and a is called a preimage of b.
  • Can a relation fail to be a function for more than one reason? Yes — some relations fail because an element has no image at all (like Example 7), others because an element has multiple images (like Example 8); checking both conditions is necessary.
  • Can a function be defined by different formulas on different parts of its domain? Yes — this is a piecewise function, and it is still a single valid function as long as every input belongs to exactly one piece and gets exactly one output.

Practice questions (original practice questions)

  1. Let A = {1, 2, 3, 4} and R = {(1,2), (2,3), (3,4)}. Is R a function from A to A?
    • (a) Yes, since every pair has a unique second element
    • (b) No, since 4 has no image
    • (c) No, since 1 has two images
    • (d) Yes, since R ⊆ A × A
    • Answer: (b) — The element 4 ∈ A never appears as a first element, so it has no image; condition 1 of the test fails.
  2. Which relation is NOT a function from A = {1, 2, 3} to B = {4, 5, 6}?
    • (a) {(1,4), (2,5), (3,6)}
    • (b) {(1,4), (2,4), (3,5)}
    • (c) {(1,4), (1,5), (2,6), (3,6)}
    • (d) {(1,5), (2,5), (3,5)}
    • Answer: (c) — The element 1 has two different images, 4 and 5, violating uniqueness.
  3. If f(a) = b for a function f, which statement is correct?
    • (a) a is the image of b
    • (b) b is the image of a and a is a preimage of b
    • (c) a and b are both called images
    • (d) a and b are both called preimages
    • Answer: (b) — This is exactly the image/preimage terminology from Definition 5.
  4. A function g is defined by g(x) = x − 2 for x ≤ 1, and g(x) = 3x for x > 1. What is g(1) + g(2)?
    • (a) 5
    • (b) 6
    • (c) 7
    • (d) 8
    • Answer: (a) — g(1) = 1 − 2 = −1 (since 1 ≤ 1); g(2) = 3(2) = 6 (since 2 > 1); sum = −1 + 6 = 5.
  5. Which of the following best describes when a relation f from A to B fails to be a function?
    • (a) only when some element of B is unused
    • (b) only when A and B have different sizes
    • (c) when some element of A has no image, or has more than one image
    • (d) when f is written in set-builder form instead of roster form
    • Answer: (c) — These are exactly the two ways the "one and only one image" condition can fail.

Quick revision

  • A function is a relation where every element of A has exactly one image in B.
  • Equivalent test: domain of f = A, and no two distinct pairs share a first element.
  • Notation: , f(a) = b, where b is the image of a and a is a preimage of b.
  • A relation can fail to be a function by leaving an element without an image (Example 7) or giving it more than one image (Example 8).
  • A piecewise function is still one function if its pieces cover the whole domain without overlap.

Related articles

NCERTMathematicsClass 11
Rate this article
No ratings yetSign in to rate

0 Comments

Sign in to join the discussion.

Function Definition — JEE Notes | NEETJEE.guru