Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Domain and Range of a Function in Algebra and Graphs

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

How to Find the Domain and Range of a Function with Rules and Examples

Domain of a function is the set of all possible values which qualify as inputs to a function. To find the domain of the function, it should be defined as the entire set of values possible for independent variables.

Example: Let the function is f(x)=x². The domain of function f(x)=x² is all real numbers.

[Image will be Uploaded Soon]

The range of the function is defined as all the outputs of a function or it can also be obtained after substituting the domain value in the function.

Example: In the above function  f(x)=x², the range value is {1,4,9...}


Domain and Range of Trigonometric Functions

Let us consider the basic trigonometric identity:

sin²x + cos²x = 1

From the given identity, the following things we can find:

cos²x = 1 - sin²x 

cosx = \[\sqrt{1-sin^{2}x}\]

We know that the cosine function is defined only for real values therefore the value inside the root is always non-negative. Therefore,

1 - sin²x ≥ 0

sin x ∈ [-1, 1]

Domain of sin (x) is all real numbers.

In a similar way, we can find the domain and range for cos x.

Hence, for the trigonometric functions f(x)= sin x and f(x)= cos x, the domain will contain the entire set of real numbers because they are defined for all the real numbers. The range of f(x) = sin x and f(x)= cos x will lie from -1 to 1 including both -1 and +1. It can be represented as

  • -1 ≤ sin x ≤1

  • -1 ≤ cos x ≤1

Now, let us discuss the domain and range of the function f(x)= tan x. We know the value of  tan x = sin x / cos x. It means that tan x will be defined for all values except the values where cos x = 0, because a fraction with denominator 0 is not defined. Now, we know that the value of cos x is zero for the angles  π/2, 3 π/2, 5 π/2 etc.

Therefore, cos x = 0 ∀ ∈ \[\frac{(2n+1) \pi}{2}\], where n ∈ z. 

Hence, tan x is not defined for these values.

So, the domain of tan x  will be R - \[\frac{(2n+1) \pi}{2}\] and the range will be set of all real numbers i.e  R.

As we know sec x, cosec x and cot x are the reciprocal of function cos x, sin x and tan x respectively. Thus,

sec x = 1/cos x

cosec x = 1/sin x

cot x = 1/tan x

Therefore, these ratios will not be defined for the following function:

  1. sec x will not be defined at the points where cos x is 0. Hence, the domain of sec x is R-(2n+1)π/2, where n∈I and the range of sec x will be R- (-1,1). Since cos x lies between -1 to1. So the value of sec x can never lie between that region.

  2. cosec x is defined at the points where sin x value is 0. Hence, the domain of cosec x is R-nπ, where n∈I. The range value of cosec x will be R- (-1,1). Since sin x lies between -1 to 1. So the value of cosec x can never lie in the region of -1 and 1.

  3. cot x will not be defined at the points where tan x is 0. Hence, the domain value of cot x is R-nπ, where n∈I. The range of cot x is the set of all real numbers i.e R.

 

Domain of Sin Inverse x

Sin inverse x is an inverse trigonometric function. If we know the range of trigonometric functions, we can find the domain of inverse trigonometric functions. The range of sin x is [-1,1].

We also know that, 

Range of trigonometric function = Domain of an inverse trigonometric function

So, the domain of sin inverse x is [-1,1] or -1 ≤ x ≤ 1. 


Domain and Range of a Graph

We can also find the domain and range of functions by using graphs. As we know the domain refers to the set of possible input values. The domain of a graph is the set of all the input values shown on the x-axis. The range is the set of values of all the possible outputs, that are shown on the y-axis.

Ques: Find the domain and range of the function f whose graph is given below.

[Image will be Uploaded Soon]

Sol: We will draw a horizontal and vertical line to visualise domain range. In the figure, we can observe that the horizontal extent of the graph is from –3 to 1. So the domain of function f is (-3,1].

[Image will be Uploaded Soon]

The vertical line of the graph is from 0 to –4, so the range is [-4,0].

FAQs on Domain and Range of a Function in Algebra and Graphs

1. What is the domain and range of a function?

The domain of a function is the set of all possible input values (x-values), and the range is the set of all possible output values (y-values).

  • Domain: All values of x for which the function is defined.
  • Range: All resulting values of f(x).
For example, in f(x) = x², the domain is all real numbers, and the range is y ≥ 0 because squares are never negative.

2. How do you find the domain of a function?

To find the domain of a function, identify all x-values that do not make the function undefined.

  • Exclude values that make the denominator zero.
  • Avoid negative numbers under even square roots.
  • Check for restrictions in logarithmic functions (argument must be positive).
For example, in f(x) = 1/(x − 3), the domain is all real numbers except x ≠ 3.

3. How do you find the range of a function?

To find the range of a function, determine all possible output values the function can produce.

  • Express y = f(x).
  • Solve for x in terms of y if possible.
  • Apply any domain restrictions.
For example, for f(x) = x², since squares are always non-negative, the range is y ≥ 0.

4. What is the domain and range of a quadratic function?

The domain of a quadratic function is all real numbers, and its range depends on the vertex.

  • For f(x) = ax² + bx + c, domain = (−∞, ∞).
  • If a > 0, range is y ≥ vertex value.
  • If a < 0, range is y ≤ vertex value.
Example: f(x) = x² − 4 has range y ≥ −4.

5. What is the domain and range of a rational function?

The domain of a rational function excludes values that make the denominator zero, and the range depends on horizontal asymptotes and function behavior.

  • For f(x) = 1/x, domain is x ≠ 0.
  • Its range is also y ≠ 0.
Always check for restrictions caused by the denominator.

6. What is the difference between domain and range?

The domain refers to input values (x-values), while the range refers to output values (y-values).

  • Domain answers: “What can I plug in?”
  • Range answers: “What values can I get out?”
Understanding this difference is essential when graphing functions or solving equations.

7. Can you give an example of finding domain and range?

Yes, for f(x) = √(x − 2), the domain is x ≥ 2 and the range is y ≥ 0.

  • Step 1: Set expression inside root ≥ 0 → x − 2 ≥ 0.
  • Step 2: Solve → x ≥ 2 (domain).
  • Step 3: Square roots are non-negative → y ≥ 0 (range).
This method works for all square root functions.

8. How do you write domain and range in interval notation?

Domain and range are written in interval notation using parentheses and brackets.

  • Use ( ) for values not included.
  • Use [ ] for values included.
Example: If x ≥ 2, write domain as [2, ∞). If x ≠ 3, write domain as (−∞, 3) ∪ (3, ∞).

9. Why is the domain important in a function?

The domain is important because it defines where the function is mathematically valid.

  • Prevents undefined operations like division by zero.
  • Ensures real-number outputs when required.
  • Helps in graphing correctly.
Ignoring domain restrictions can lead to incorrect solutions.

10. What are common mistakes when finding domain and range?

Common mistakes in finding domain and range include ignoring restrictions and confusing inputs with outputs.

  • Forgetting to exclude denominator zeros.
  • Allowing negative values under even roots.
  • Mixing up domain (x-values) with range (y-values).
Always check algebraic restrictions carefully before stating the final answer.