Domain and Range

Finding domain and range of functions

Domain and Range

What are Domain and Range?

Domain: The set of all possible INPUT values (x-values) for a function.

Range: The set of all possible OUTPUT values (y-values or f(x)-values) for a function.

Think of it this way:

  • Domain = What you can PUT INTO the function
  • Range = What you can GET OUT OF the function

Why Domain and Range Matter

Not all inputs make sense for every function:

  • Can't divide by zero
  • Can't take square root of negative (in real numbers)
  • Real-world constraints (can't have negative time)

Understanding domain and range helps you:

  • Know when a function is defined
  • Understand function behavior
  • Solve real-world problems correctly
  • Avoid mathematical errors

Interval Notation

We use interval notation to write domain and range efficiently.

Symbols:

  • (a, b) means all numbers between a and b, NOT including a or b (open interval)
  • [a, b] means all numbers between a and b, INCLUDING both a and b (closed interval)
  • (a, b] means between a and b, NOT including a but INCLUDING b
  • [a, b) means between a and b, INCLUDING a but NOT including b
  • โˆž (infinity) always uses parentheses: (a, โˆž) or (-โˆž, b)

Examples:

  • (2, 5) means 2 < x < 5
  • [2, 5] means 2 โ‰ค x โ‰ค 5
  • (-โˆž, 3] means x โ‰ค 3
  • [4, โˆž) means x โ‰ฅ 4
  • (-โˆž, โˆž) means all real numbers

Set Notation

Another way to express domain and range:

{x | condition} reads as "the set of all x such that condition"

Examples:

  • {x | x > 0} means "all x greater than 0"
  • {x | x โ‰  2} means "all x except 2"
  • {x | x โˆˆ โ„} means "all real numbers"

Domain of Linear Functions

Linear functions: f(x) = mx + b

Domain: ALL real numbers Written as: (-โˆž, โˆž) or {x | x โˆˆ โ„}

Why? You can plug any number into a linear function.

Examples:

  • f(x) = 2x + 3, Domain: (-โˆž, โˆž)
  • g(x) = -x + 7, Domain: (-โˆž, โˆž)
  • h(x) = 5, Domain: (-โˆž, โˆž)

Range of Linear Functions

Non-constant linear: Range is ALL real numbers (-โˆž, โˆž)

Constant function: f(x) = c Range is just {c} (a single value)

Examples:

  • f(x) = 2x + 3, Range: (-โˆž, โˆž)
  • g(x) = 5, Range: {5} or [5, 5]

Domain of Quadratic Functions

Quadratic functions: f(x) = axยฒ + bx + c

Domain: ALL real numbers (-โˆž, โˆž)

Why? You can square any real number.

Examples:

  • f(x) = xยฒ, Domain: (-โˆž, โˆž)
  • g(x) = -2xยฒ + 3x - 1, Domain: (-โˆž, โˆž)

Range of Quadratic Functions

Range depends on the vertex and direction of opening.

If parabola opens UP (a > 0): Range: [k, โˆž) where k is the y-coordinate of the vertex (minimum value)

If parabola opens DOWN (a < 0): Range: (-โˆž, k] where k is the y-coordinate of the vertex (maximum value)

Example 1: f(x) = xยฒ - 4x + 3

Find vertex: x = -(-4)/(2ยท1) = 2 f(2) = 4 - 8 + 3 = -1 Vertex: (2, -1)

Opens up (a = 1 > 0) Range: [-1, โˆž)

Example 2: g(x) = -xยฒ + 6x - 5

Vertex: x = -6/(2ยท(-1)) = 3 g(3) = -9 + 18 - 5 = 4 Vertex: (3, 4)

Opens down (a = -1 < 0) Range: (-โˆž, 4]

Domain Restrictions: Division

Cannot divide by zero!

When a function has a variable in the denominator, exclude values that make the denominator zero.

Example 1: f(x) = 1/x

Denominator = x Set equal to zero: x = 0 Domain: All real numbers EXCEPT 0 Written as: (-โˆž, 0) โˆช (0, โˆž) or {x | x โ‰  0}

Example 2: g(x) = 3/(x - 5)

Denominator = x - 5 Set equal to zero: x - 5 = 0, so x = 5 Domain: All real numbers EXCEPT 5 Written as: (-โˆž, 5) โˆช (5, โˆž) or {x | x โ‰  5}

Example 3: h(x) = (2x + 1)/(xยฒ - 4)

Denominator = xยฒ - 4 Set equal to zero: xยฒ - 4 = 0 xยฒ = 4 x = ยฑ2

Domain: All real numbers EXCEPT 2 and -2 Written as: (-โˆž, -2) โˆช (-2, 2) โˆช (2, โˆž) or {x | x โ‰  ยฑ2}

Domain Restrictions: Square Roots

Cannot take square root of negative number (in real numbers).

When a function has a square root, the expression inside must be โ‰ฅ 0.

Example 1: f(x) = โˆšx

Inside square root: x Requirement: x โ‰ฅ 0 Domain: [0, โˆž)

Example 2: g(x) = โˆš(x - 3)

Inside: x - 3 Requirement: x - 3 โ‰ฅ 0 Solve: x โ‰ฅ 3 Domain: [3, โˆž)

Example 3: h(x) = โˆš(5 - x)

Inside: 5 - x Requirement: 5 - x โ‰ฅ 0 Solve: -x โ‰ฅ -5 Multiply by -1 (flip inequality): x โ‰ค 5 Domain: (-โˆž, 5]

Example 4: f(x) = โˆš(xยฒ - 9)

Inside: xยฒ - 9 Requirement: xยฒ - 9 โ‰ฅ 0 xยฒ โ‰ฅ 9 |x| โ‰ฅ 3 This means x โ‰ค -3 or x โ‰ฅ 3 Domain: (-โˆž, -3] โˆช [3, โˆž)

Combined Restrictions

Sometimes functions have BOTH division and square roots.

Example: f(x) = โˆšx / (x - 4)

Square root restriction: x โ‰ฅ 0 Division restriction: x โ‰  4

Combined domain: [0, 4) โˆช (4, โˆž)

We need x โ‰ฅ 0 AND x โ‰  4.

Finding Range from Graphs

From a graph:

  1. Look at the y-axis
  2. Identify the lowest and highest y-values the graph reaches
  3. Write the range

Example: If a graph goes from y = -2 up to y = 5 (including both) Range: [-2, 5]

Example: If a parabola opening up has vertex at y = 3 Range: [3, โˆž)

Example: If a parabola opening down has vertex at y = -1 Range: (-โˆž, -1]

Finding Domain from Graphs

From a graph:

  1. Look at the x-axis
  2. Identify all x-values that have corresponding points on the graph
  3. Write the domain

Example: If a graph extends forever left and right Domain: (-โˆž, โˆž)

Example: If a graph starts at x = 2 and extends right Domain: [2, โˆž)

Example: If there's a gap (like at x = 3) Domain might be: (-โˆž, 3) โˆช (3, โˆž)

Absolute Value Functions

f(x) = |x| Domain: (-โˆž, โˆž) Range: [0, โˆž) (absolute value is never negative)

f(x) = |x - h| + k Domain: (-โˆž, โˆž) Range: [k, โˆž) if upright V, (-โˆž, k] if upside-down

Example: f(x) = |x - 2| + 3 Domain: (-โˆž, โˆž) Range: [3, โˆž) The vertex of the V is at (2, 3).

Piecewise Functions

Domain is typically all real numbers (unless specified). Range depends on the individual pieces.

Example: f(x) = x + 1 if x < 0 f(x) = xยฒ if x โ‰ฅ 0

Domain: (-โˆž, โˆž)

For range, consider both pieces:

  • When x < 0: f(x) = x + 1 gives values from (-โˆž, 1)
  • When x โ‰ฅ 0: f(x) = xยฒ gives values from [0, โˆž)

Range: (-โˆž, 1) โˆช [0, โˆž) = (-โˆž, โˆž)

Real-World Domain and Range

Context matters! Physical constraints restrict domain and range.

Example 1: Area of square A(s) = sยฒ where s is side length

Mathematical domain: (-โˆž, โˆž) Real-world domain: (0, โˆž) because side length must be positive

Mathematical range: [0, โˆž) Real-world range: (0, โˆž) because area must be positive

Example 2: Projectile h(t) = -16tยฒ + 64t where t is time

Real-world domain: [0, 4] (from launch until it hits ground) Real-world range: [0, 64] (from ground to maximum height)

Example 3: Cost function C(n) = 50 + 10n where n is number of items

Real-world domain: {0, 1, 2, 3, ...} (can't buy 2.5 items) Real-world range: {50, 60, 70, 80, ...} (discrete values)

Practice: Finding Domain

For each function, find the domain:

Problem 1: f(x) = 3x - 7 Linear, no restrictions Domain: (-โˆž, โˆž)

Problem 2: g(x) = 1/(x + 2) Denominator zero when x = -2 Domain: (-โˆž, -2) โˆช (-2, โˆž)

Problem 3: h(x) = โˆš(x + 4) Inside must be โ‰ฅ 0: x + 4 โ‰ฅ 0, so x โ‰ฅ -4 Domain: [-4, โˆž)

Problem 4: f(x) = xยฒ No restrictions Domain: (-โˆž, โˆž)

Problem 5: g(x) = โˆš(2x - 6) Inside โ‰ฅ 0: 2x - 6 โ‰ฅ 0, so 2x โ‰ฅ 6, thus x โ‰ฅ 3 Domain: [3, โˆž)

Practice: Finding Range

Problem 1: f(x) = x - 5 Linear (non-constant) Range: (-โˆž, โˆž)

Problem 2: g(x) = xยฒ + 1 Parabola opening up, vertex at (0, 1) Range: [1, โˆž)

Problem 3: h(x) = -xยฒ + 4 Parabola opening down, vertex at (0, 4) Range: (-โˆž, 4]

Problem 4: f(x) = |x| - 3 V-shape with vertex at (0, -3), opens up Range: [-3, โˆž)

Problem 5: g(x) = 7 Constant function Range: {7}

Union Notation

Use โˆช (union) to combine separate intervals.

Example: x < 2 or x > 5 Written as: (-โˆž, 2) โˆช (5, โˆž)

Example: All real numbers except x = 3 Written as: (-โˆž, 3) โˆช (3, โˆž)

Example: -4 โ‰ค x < -1 or 2 < x โ‰ค 7 Written as: [-4, -1) โˆช (2, 7]

Common Mistakes to Avoid

  1. Using wrong brackets Remember: ( ) for open, [ ] for closed Infinity ALWAYS uses ( )

  2. Forgetting to solve inequalities โˆš(x - 3) requires x - 3 โ‰ฅ 0, which gives x โ‰ฅ 3

  3. Confusing domain and range Domain = inputs (x), Range = outputs (y)

  4. Missing restrictions Always check for division by zero and square roots

  5. Ignoring graph direction Parabola up: range [k, โˆž) Parabola down: range (-โˆž, k]

  6. Writing infinity with brackets Never write [โˆž) or (-โˆž] Always (โˆž) and (-โˆž)

Domain and Range from Tables

Table: | x | y | |----|-----| | -2 | 3 | | 0 | 5 | | 2 | 7 | | 4 | 9 |

Domain: {-2, 0, 2, 4} (discrete values shown) Range: {3, 5, 7, 9}

If the pattern continues forever: Domain: all even integers Range: all odd integers starting from 3

Continuous vs. Discrete

Continuous domain/range: Any value in an interval Example: (-โˆž, โˆž), [2, 5]

Discrete domain/range: Only specific separate values Example: {0, 1, 2, 3, ...}, {-2, 0, 2, 4}

Real-world examples of discrete:

  • Number of students (can't have 25.5 students)
  • Number of cars (whole numbers only)
  • Days of the week (discrete set)

Testing Your Understanding

Quick checks:

For domain:

  • Can I divide by zero? If yes, exclude that x-value
  • Is there a square root? If yes, set inside โ‰ฅ 0
  • Are there real-world constraints? If yes, apply them

For range:

  • Is it linear (non-constant)? Range is (-โˆž, โˆž)
  • Is it quadratic? Find vertex, check if up or down
  • Is there a minimum or maximum? Use [ or ]
  • Can I reach all y-values or only some?

Step-by-Step Process

Finding Domain:

  1. Identify function type
  2. Check for division (denominator โ‰  0)
  3. Check for square roots (inside โ‰ฅ 0)
  4. Check for other restrictions
  5. Apply real-world constraints if applicable
  6. Write in interval notation

Finding Range:

  1. Determine function type
  2. For linear: usually (-โˆž, โˆž) unless constant
  3. For quadratic: find vertex and direction
  4. For other functions: analyze graph or behavior
  5. Apply real-world constraints if applicable
  6. Write in interval notation

Advanced Example

f(x) = โˆš(4 - xยฒ)

Domain: Inside square root: 4 - xยฒ โ‰ฅ 0 -xยฒ โ‰ฅ -4 xยฒ โ‰ค 4 |x| โ‰ค 2 -2 โ‰ค x โ‰ค 2 Domain: [-2, 2]

Range: When x = 0: f(0) = โˆš4 = 2 (maximum) When x = ยฑ2: f(ยฑ2) = โˆš0 = 0 (minimum) Range: [0, 2]

This is actually the upper half of a circle!

Quick Reference

Common Domains:

  • Linear: (-โˆž, โˆž)
  • Quadratic: (-โˆž, โˆž)
  • f(x) = 1/x: (-โˆž, 0) โˆช (0, โˆž)
  • f(x) = โˆšx: [0, โˆž)
  • Absolute value: (-โˆž, โˆž)

Common Ranges:

  • Linear (non-constant): (-โˆž, โˆž)
  • Constant: {c}
  • Quadratic up: [k, โˆž)
  • Quadratic down: (-โˆž, k]
  • f(x) = โˆšx: [0, โˆž)
  • f(x) = |x|: [0, โˆž)

Tips for Success

  • Always check for division by zero
  • Square roots need non-negative inputs
  • Graph the function if unsure about range
  • Use correct bracket notation
  • Consider real-world constraints
  • Domain comes from input restrictions
  • Range comes from output possibilities
  • Practice with various function types
  • When in doubt, make a table or graph

๐Ÿ“š Practice Problems

1Problem 1easy

โ“ Question:

Find the domain and range of: {(1, 3), (2, 5), (4, 7), (6, 9)}

๐Ÿ’ก Show Solution

Step 1: Understand the definitions: Domain = all x-values (inputs) Range = all y-values (outputs)

Step 2: List all x-values from the ordered pairs: x-values: 1, 2, 4, 6

Step 3: List all y-values from the ordered pairs: y-values: 3, 5, 7, 9

Step 4: Write in set notation: Domain: {1, 2, 4, 6} Range: {3, 5, 7, 9}

Answer: Domain: {1, 2, 4, 6}, Range: {3, 5, 7, 9}

2Problem 2easy

โ“ Question:

Find the domain of f(x)=3xโˆ’7f(x) = 3x - 7

๐Ÿ’ก Show Solution

This is a linear function. There are no restrictions (no division by zero, no square roots).

We can substitute any real number for xx.

Answer: Domain: all real numbers or (โˆ’โˆž,โˆž)(-\infty, \infty)

3Problem 3easy

โ“ Question:

What is the domain of f(x) = 2x + 5?

๐Ÿ’ก Show Solution

Step 1: Check for restrictions:

  • Is there division? No
  • Is there a square root of a variable? No
  • Are there any other restrictions? No

Step 2: Determine the domain: Since this is a linear function with no restrictions, x can be any real number.

Step 3: Write the answer: Domain: All real numbers

In interval notation: (-โˆž, โˆž) In set-builder notation: {x | x โˆˆ โ„}

Answer: All real numbers

4Problem 4medium

โ“ Question:

Find the domain of g(x)=1x+3g(x) = \frac{1}{x + 3}

๐Ÿ’ก Show Solution

Look for restrictions. We cannot divide by zero.

Set the denominator equal to zero: x+3=0x + 3 = 0 x=โˆ’3x = -3

We must exclude x=โˆ’3x = -3 from the domain.

Answer: Domain: all real numbers except x=โˆ’3x = -3

In interval notation: (โˆ’โˆž,โˆ’3)โˆช(โˆ’3,โˆž)(-\infty, -3) \cup (-3, \infty)

5Problem 5medium

โ“ Question:

What is the domain of g(x) = 1/(x - 3)?

๐Ÿ’ก Show Solution

Step 1: Identify restrictions: This is a rational function (has division). The denominator cannot equal zero.

Step 2: Find when the denominator is zero: x - 3 = 0 x = 3

Step 3: State the domain: x can be any real number except 3

Step 4: Write the answer in different notations:

Words: All real numbers except 3

Interval notation: (-โˆž, 3) โˆช (3, โˆž)

Set-builder notation: {x | x โ‰  3}

Answer: All real numbers except 3

6Problem 6medium

โ“ Question:

What is the domain of h(x) = โˆš(x + 4)?

๐Ÿ’ก Show Solution

Step 1: Identify the restriction: For a square root function, the radicand (expression under the root) must be non-negative. We need: x + 4 โ‰ฅ 0

Step 2: Solve the inequality: x + 4 โ‰ฅ 0 x โ‰ฅ -4

Step 3: Interpret the result: x must be greater than or equal to -4

Step 4: Write the answer in different notations:

Words: All real numbers greater than or equal to -4

Interval notation: [-4, โˆž)

Set-builder notation: {x | x โ‰ฅ -4}

Answer: x โ‰ฅ -4 or [-4, โˆž)

7Problem 7hard

โ“ Question:

Find the range of f(x)=x2โˆ’4x+1f(x) = x^2 - 4x + 1

๐Ÿ’ก Show Solution

This is a quadratic function that opens upward (a=1>0a = 1 > 0).

Step 1: Find the vertex (the minimum point) x=โˆ’b2a=โˆ’โˆ’42(1)=2x = -\frac{b}{2a} = -\frac{-4}{2(1)} = 2

Step 2: Find the y-coordinate of the vertex f(2)=(2)2โˆ’4(2)+1=4โˆ’8+1=โˆ’3f(2) = (2)^2 - 4(2) + 1 = 4 - 8 + 1 = -3

The vertex is (2,โˆ’3)(2, -3).

Since the parabola opens upward, the minimum y-value is โˆ’3-3 and it goes to โˆž\infty.

Answer: Range: [โˆ’3,โˆž)[-3, \infty)

8Problem 8hard

โ“ Question:

Find the domain and range of f(x) = xยฒ - 4

๐Ÿ’ก Show Solution

Step 1: Find the domain: This is a quadratic function with no restrictions. Domain: All real numbers or (-โˆž, โˆž)

Step 2: Understand the graph: f(x) = xยฒ - 4 is a parabola that opens upward (because coefficient of xยฒ is positive).

Step 3: Find the vertex (minimum point): This is in the form f(x) = (x - 0)ยฒ - 4 Vertex is at (0, -4)

Step 4: Determine the range: Since the parabola opens upward and the minimum y-value is -4, all y-values are โ‰ฅ -4.

Step 5: Write the range: Range: [-4, โˆž) or {y | y โ‰ฅ -4}

Answer: Domain: (-โˆž, โˆž), Range: [-4, โˆž)