Rational Function — Definition, Domain and Example
On this page· 13 sections
Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4.1(iv) Rational functions, Example 15, and Miscellaneous Example 21. Builds on: Polynomial Function (a rational function is a ratio of two polynomial functions). Next: The Modulus Function (Section 2.4.1(v)).
Source & scope. Class 11 Mathematics, Chapter 2 Relations and Functions, Section 2.4.1(iv) Rational functions, Example 15, and Miscellaneous Example 21. Builds on: Polynomial Function (a rational function is a ratio of two polynomial functions). Next: The Modulus Function (Section 2.4.1(v)).
A rational function is a function of the type f(x)/g(x), where f(x) and g(x) are both polynomial functions of x, and the function is defined only on the domain where g(x) ≠ 0. Because division by zero is undefined, every value of x that makes the denominator polynomial equal to zero must be excluded from the domain of a rational function.
At a glance
- General form: a quotient f(x)/g(x) of two polynomial functions, defined wherever .
- NCERT's core example: , for f : R − {0} → R; domain = range = R − {0}.
- To find the domain of a rational function, factor the denominator and exclude its real roots.
- Worked NCERT example: domain of (x² + 3x + 5)/(x² − 5x + 4) is R − {1, 4}, since x² − 5x + 4 = (x − 4)(x − 1).
- Every polynomial function is technically a rational function with denominator g(x) = 1, but the term "rational function" is normally reserved for a non-trivial, non-constant denominator.
Learning objectives
- State the definition of a rational function and explain the role of the condition g(x) ≠ 0.
- Reproduce NCERT's worked value table for f(x) = 1/x and state its domain and range.
- Find the domain of a rational function by factoring its denominator.
- Apply this method to confirm the domain of (x² + 3x + 5)/(x² − 5x + 4).
Prerequisite knowledge
The reader should already know the definition of a polynomial function (the numerator and denominator here are each polynomial functions) and should be able to factor a quadratic expression of the form x² + bx + c into two linear factors.
Core explanation
The definition
NCERT states: "Rational functions are functions of the type f(x)/g(x), where f(x) and g(x) are polynomial functions of x defined in a domain, where g(x) ≠ 0." In other words, a rational function is simply a fraction whose numerator and denominator are both polynomial functions. The restriction g(x) ≠ 0 is essential — wherever the denominator polynomial becomes zero, the quotient is undefined, so those x-values are removed from the domain before the function can be considered well-defined on the rest of R.
NCERT's worked example — f(x) = 1/x (Example 15)
NCERT defines the real valued function , for x ∈ R − {0}, and asks for the completed table:
| x | −2 | −1.5 | −1 | −0.5 | 0.25 | 0.5 | 1 | 1.5 | 2 |
|---|---|---|---|---|---|---|---|---|---|
| y = 1/x | −0.5 | −0.67 | −1 | −2 | 4 | 2 | 1 | 0.67 | 0.5 |
Here f(x) = 1 is the numerator polynomial (degree 0) and g(x) = x is the denominator polynomial (degree 1), so f(x)/g(x) = 1/x fits the rational-function definition exactly, with g(x) = x ≠ 0 forcing x = 0 out of the domain. The domain is all real numbers except 0, i.e., R − {0}, and the range is also R − {0} — as x ranges over every non-zero real number, 1/x likewise takes every non-zero real value, but 1/x can never equal 0 (there is no real x with 1/x = 0).
Finding the domain of a general rational function — factoring the denominator
When the denominator g(x) is a quadratic (or higher-degree) polynomial, the domain-finding method is: factor g(x), set each factor to zero, and exclude those x-values from R. This works because a product of real factors equals zero exactly when at least one factor equals zero.
NCERT's worked example — domain of (x² + 3x + 5)/(x² − 5x + 4) (Example 21)
Find the domain of f(x) = (x² + 3x + 5)/(x² − 5x + 4). Factor the denominator: — this can be checked by expansion: (x − 4)(x − 1) = x² − x − 4x + 4 = x² − 5x + 4, which matches. The denominator is zero exactly when x = 4 or x = 1, so f is undefined at these two points and defined everywhere else. Hence the domain of f is R − {1, 4}.
Key terms
- Rational function — a function of the form f(x)/g(x), where f(x) and g(x) are polynomial functions and g(x) ≠ 0.
- Domain restriction — the set of x-values excluded from R because they make the denominator polynomial zero.
- Factoring the denominator — the standard method for locating every x-value that must be excluded from a rational function's domain.
- — NCERT's basic rational function, with domain and range both equal to R − {0}.
Diagram / figure guidance
Draw the graph of y = 1/x: two separate branches, one in the first quadrant (for x > 0, decreasing from a large positive value near x = 0 down toward 0 as x grows) and one in the third quadrant (for x < 0, mirroring the first branch), with the x-axis and y-axis both drawn as dashed lines to show they are asymptotes the curve approaches but never touches — visually reinforcing why x = 0 (and y = 0) are excluded.
Worked example
Find the domain of the rational function f(x) = (x + 2)/(x² − 9).
Step 1 — identify the denominator polynomial. g(x) = x² − 9.
Step 2 — factor it. x² − 9 = (x − 3)(x + 3) (difference of squares).
Step 3 — set each factor to zero. x − 3 = 0 gives x = 3; x + 3 = 0 gives x = −3.
Step 4 — exclude these values. f is undefined at x = 3 and x = −3, since the denominator vanishes there.
Conclusion. The domain of f(x) = (x + 2)/(x² − 9) is R − {−3, 3}.
Common misconceptions
- "A rational function is undefined only where the numerator is zero." It is the opposite: a rational function f(x)/g(x) is undefined exactly where the denominator g(x) equals zero, regardless of what the numerator does there.
- "1/x is defined at x = 0 if we just say f(0) = 0." There is no real number that 1/x equals at x = 0; division by zero is undefined, so x = 0 must be excluded from the domain, not assigned an arbitrary value.
- "To find the domain, solve where the whole function equals zero." The domain-restriction step only involves the denominator; solving where the numerator is zero instead gives the function's roots (where f(x) = 0), which is a different question from its domain.
- "x² − 5x + 4 and x² − 5x − 4 factor the same way." Sign matters — x² − 5x + 4 factors as (x − 4)(x − 1) (roots 1 and 4), while a different constant term gives entirely different roots; always re-expand a proposed factoring to check it.
Exam application (JEE)
Domain-of-a-rational-function questions are a recurring JEE item, almost always testing the factor-the-denominator method on a quadratic denominator, exactly as in NCERT's Example 21. A common variant combines this with the numerator — e.g., asking students to also simplify the expression if the numerator shares a common factor with the denominator (which can create a removable discontinuity rather than an excluded domain point, a subtlety worth double-checking by factoring both numerator and denominator). The basic f(x) = 1/x is also tested directly for its domain, range and asymptotic graph behaviour.
Frequently asked questions
- What is a rational function? A rational function is a function of the form f(x)/g(x), where both f(x) and g(x) are polynomial functions of x, defined on the domain where g(x) ≠ 0.
- What is the domain and range of f(x) = 1/x? Both the domain and the range of f(x) = 1/x are R − {0}, the set of all real numbers except 0.
- How do you find the domain of a rational function? Factor the denominator polynomial, set each factor equal to zero to find the x-values that make the denominator zero, and exclude exactly those values from R.
- What is the domain of f(x) = (x² + 3x + 5)/(x² − 5x + 4)? Since x² − 5x + 4 factors as (x − 4)(x − 1), the function is undefined at x = 1 and x = 4, so its domain is R − {1, 4}.
- Is every polynomial function also a rational function? Yes, technically — a polynomial function f(x) can be written as f(x)/1, a quotient with denominator g(x) = 1, which is never zero; in practice, though, "rational function" is used for quotients with a non-constant denominator.
Practice questions (original practice questions)
- What is the domain of f(x) = 1/x?
- (a) R
- (b) R − {1}
- (c) R − {0}
- (d) (0, ∞)
- Answer: (c) — f(x) = 1/x is undefined exactly at x = 0, so its domain excludes only 0.
- What is the domain of f(x) = (x + 1)/(x² − 4)?
- (a) R − {2}
- (b) R − {−2, 2}
- (c) R − {4}
- (d) R − {−4, 4}
- Answer: (b) — x² − 4 = (x − 2)(x + 2), which is zero at x = 2 and x = −2.
- For f(x) = (x² + 3x + 5)/(x² − 5x + 4), which values of x are excluded from the domain?
- (a) 1 and 4
- (b) −1 and −4
- (c) 2 and 3
- (d) only 4
- Answer: (a) — x² − 5x + 4 = (x − 4)(x − 1), excluding x = 1 and x = 4.
- What is the range of f(x) = 1/x for x ∈ R − {0}?
- (a) R
- (b) R − {0}
- (c) [0, ∞)
- (d) (0, ∞)
- Answer: (b) — As x takes every non-zero real value, 1/x also takes every non-zero real value, but 1/x = 0 has no solution.
- Which of the following best describes a rational function?
- (a) Any function with a fraction in it
- (b) A quotient of two polynomial functions, defined where the denominator is non-zero
- (c) A function whose range is a subset of the rationals
- (d) A function defined only for rational x
- Answer: (b) — This matches NCERT's definition exactly: f(x)/g(x) with f, g polynomial functions and g(x) ≠ 0.
Quick revision
- Rational function: f(x)/g(x), f and g polynomial functions, defined only where g(x) ≠ 0.
- NCERT's f(x) = 1/x: domain = range = R − {0}.
- To find the domain: factor the denominator, exclude its roots.
- x² − 5x + 4 = (x − 4)(x − 1) → domain of (x² + 3x + 5)/(x² − 5x + 4) is R − {1, 4}.
- The excluded points come from the denominator only, never the numerator.
Related articles
- Builds on: Polynomial Function
- Next: The Modulus Function
- See also: Linear Function
- Related topics: Addition of Two Real Functions — (f + g)(x), Cartesian Product R × R and R × R × R — Coordinates of the Plane and Space, Cartesian Product of Three Sets — Ordered Triplets, Cartesian Product of Two Sets — Definition, Properties and Examples, Codomain of a Relation — Definition, and How It Differs from Range, Constant Function — Definition, Domain, Range and Graph