NEETJEE.guru
MathematicsJEE

Constant Function — Definition, Domain, Range and Graph

By Admin 13 November 2026 Updated 26 November 2026 9 min read 12 views
On this page· 13 sections
Overview

Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4.1 Some functions and their graphs, item (ii) the Constant function. Builds on: Identity Function, the first named real function in this section. Next: Polynomial Function (not covered in this article).

Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4.1 Some functions and their graphs, item (ii) the Constant function. Builds on: Identity Function, the first named real function in this section. Next: Polynomial Function (not covered in this article).

The constant function is the real function f : R → R defined by y = f(x) = c for every x ∈ R, where c is some fixed constant — it sends every real input to the exact same output value. The domain of a constant function is R, but its range is the singleton set {c}, and its graph is a straight line parallel to the x-axis at height c.

At a glance

  • Defined by , for every x ∈ R, where c is a fixed constant.
  • Domain of f = R (every real number is a valid input).
  • Range of f = {c} — a single-element set, not all of R.
  • The graph is a line parallel to the x-axis, at height c.
  • NCERT's own worked example is f(x) = 3 for every x ∈ R, whose graph is a horizontal line at height 3.

Learning objectives

  • State the definition of the constant function, f : R → R, f(x) = c.
  • Identify the domain (R) and range ({c}) of a constant function, and explain why they differ in size.
  • Describe and sketch the graph of a constant function as a line parallel to the x-axis.
  • Evaluate a constant function at any given input, recognising that the output never depends on the input.

Prerequisite knowledge

The reader should already know the identity function (f(x) = x) from the preceding article, so that the constant function's behaviour can be contrasted against it.

Core explanation

Definition. Define the function f : R → R by y = f(x) = c, where c is a constant and each x ∈ R. Here the domain of f is R, but its range is the single-element set {c} — no matter which real number x is substituted, the output is always the same fixed value c.

For example, if f(x) = 3 for each x ∈ R, then f(−5) = 3, f(0) = 3, f(1.7) = 3, and f(1000) = 3 — every single input, however large or small, produces the exact same output, 3.

Why the range is just {c}, not R. A constant function's rule never actually involves x in determining the output — the formula simply names a fixed number c and ignores whatever x was substituted. So however many different real-number inputs are tried, the function only ever produces that one value c, making the range the singleton set {c} rather than the whole of R.

The graph. The graph of a constant function is the set of all points (x, c) for x ∈ R — every point whose y-coordinate is c, with the x-coordinate allowed to be anything. Plotting a few such points, such as (−3, 3), (0, 3), and (2, 3) for f(x) = 3, and joining them produces a horizontal line at height 3, i.e., a line parallel to the x-axis. In general, the graph of y = c is always parallel to the x-axis, passing through the y-axis at the point (0, c).

Contrast with the identity function. The identity function (f(x) = x) changes its output every time its input changes, producing a line that rises at 45°. A constant function does the opposite: its output never changes, no matter how the input changes, producing a perfectly flat, horizontal line instead.

Key terms

  • Constant function — the real function f : R → R defined by f(x) = c for every x ∈ R, where c is a fixed real number.
  • Domain of a constant function — R (every real number is a valid input).
  • Range of a constant function — the singleton set {c}, containing only the one constant value.
  • Horizontal line — a line parallel to the x-axis; the graph of every constant function.

Diagram / figure guidance

Sketch standard x- and y-axes, and draw a straight horizontal line crossing the y-axis at the point (0, 3), running parallel to the x-axis in both directions, to match NCERT's own example f(x) = 3. Mark a few points on the line, such as (−4, 3), (0, 3), and (4, 3), to emphasise that the y-coordinate never changes while the x-coordinate varies freely — the one visual signature of a constant function's graph.

Worked example

A constant function f satisfies f(9) = −6. Find f(0) and f(250).

Using the definition of a constant function. Since f is a constant function, it outputs the same value c for every real input, and we are told that this fixed value is −6 (from f(9) = −6, so c = −6).

Finding f(0). Regardless of the input, a constant function always returns c: f(0) = −6.

Finding f(250). Likewise, f(250) = −6, since the input 250 has no effect on the output of a constant function.

Conclusion. Once a single value of a constant function is known, every other value is automatically known too — it is always the same number, c = −6, for every real input whatsoever.

Common misconceptions

  • "The domain of a constant function is just {c}." This is incorrect — the domain is still all of R (every real number is a legitimate input); it is the range that is restricted to the single value {c}.
  • "A constant function isn't a 'real function' because it doesn't change." It is still a genuine real function, since both its domain (R) and its range ({c}, a subset of R) satisfy Definition 6; "not changing" has nothing to do with whether it qualifies as real.
  • "f(x) = c means the output depends on x somehow." False — the output never depends on x at all; this is exactly what makes it constant.
  • "The graph of a constant function always passes through the origin." False in general — the graph passes through the origin only in the special case c = 0; for any other value of c (such as NCERT's example c = 3), the horizontal line sits above or below the x-axis and does not touch the origin.

Exam application (JEE)

JEE problems use the constant function mainly as a graph-recognition item (spotting the one horizontal line among several given graphs) and as a quick-evaluation trap: once a single functional value of a constant function is given, students must recognise that every other value equals that same number, without performing any further calculation. Constant functions also appear as one piece of a larger piecewise function, where a function behaves like a fixed value over one interval and like some other rule elsewhere.

Frequently asked questions

  • What is a constant function in Class 11 Maths? A constant function is the real function f : R → R defined by f(x) = c for every real number x, where c is some fixed constant — every input produces the same output.
  • What are the domain and range of a constant function? The domain of a constant function is R (all real numbers), but its range is the singleton set {c}, containing only the one fixed output value.
  • What does the graph of a constant function look like? It is a straight line parallel to the x-axis, passing through the point (0, c), where c is the function's fixed output value.
  • What is NCERT's example of a constant function? NCERT uses f(x) = 3 for every x ∈ R as its worked example, whose graph is a horizontal line at height 3.
  • How is a constant function different from the identity function? The identity function's output changes along with its input (f(x) = x, graph rising at 45°), while a constant function's output never changes no matter what the input is (f(x) = c, graph perfectly horizontal).

Practice questions (original practice questions)

  1. A function f : R → R defined by f(x) = 5 for every x ∈ R has range:
    • (a) R
    • (b) {5}
    • (c) N
    • (d) ∅
    • Answer: (b) — Every input produces the single value 5, so the range is the singleton set {5}.
  2. The domain of a constant function f(x) = c, x ∈ R is:
    • (a) {c}
    • (b) R
    • (c) {0}
    • (d) ∅
    • Answer: (b) — The domain of any constant function is all of R; only its range is restricted to {c}.
  3. The graph of a constant function is:
    • (a) a line through the origin with slope 1
    • (b) a line parallel to the y-axis
    • (c) a line parallel to the x-axis
    • (d) a parabola
    • Answer: (c) — Every constant function's graph is a horizontal line, parallel to the x-axis.
  4. If f is a constant function and f(7) = −2, then f(500) equals:
    • (a) 500
    • (b) −2
    • (c) 7
    • (d) 0
    • Answer: (b) — A constant function always returns the same output regardless of input, so f(500) = f(7) = −2.
  5. Which of the following functions is a constant function?
    • (a) f(x) = x
    • (b) f(x) = 2x + 1
    • (c) f(x) = x²
    • (d) f(x) = −9 for all x ∈ R
    • Answer: (d) — Only option (d) outputs the same fixed value for every real input; the others change output as x changes.

Quick revision

  • Constant function: , for every x ∈ R, where c is fixed.
  • Domain = R, but Range = {c} — a single-element set.
  • Graph: a line parallel to the x-axis, passing through (0, c).
  • Once one value of a constant function is known, every value equals that same c.
  • Contrast with the identity function: constant function's output never changes with x; identity function's output always equals x.

Related articles

NCERTMathematicsClass 11
Rate this article
No ratings yetSign in to rate

0 Comments

Sign in to join the discussion.

Constant Function — JEE Notes | NEETJEE.guru