ExamShortcut

Functions, Graphs & Logarithms

Log in to track
medium importance25 formulasโšก 15 shortcuts5 subtopics
All subtopicsยทSubtopic 1 of 5

Functions, domain & range

Log in to track
โฑ 4 min read๐Ÿงฉ 6 question types๐ŸŽฏ 13 practice Q

By Vinay ยท How we check content ยท Spotted a mistake? Tell us

The idea in one minute

A function is a machine: one input in, exactly one output out. The domain lists the inputs the machine accepts, and the range lists the outputs it can actually produce.

01

A function is a machine

Think of a currency-exchange counter. You hand over a number, the machine applies one fixed rule, and hands back exactly one number. That is a function.

We write f(x)=2x+3f(x) = 2x + 3. Here ff is the rule, xx is the input, and f(x)f(x) is the output.

Feed in x=4x = 4: f(4)=2(4)+3=11f(4) = 2(4) + 3 = 11.

Rule: One input must give exactly one output. If some input gives two different outputs, it is not a function.

02

Checking a relation is a function

Take the pairs (1,2)(1, 2), (2,5)(2, 5), (1,7)(1, 7). The input 11 gives two outputs, 22 and 77. Not a function.

Now (1,2)(1, 2), (2,5)(2, 5), (3,5)(3, 5). Inputs 22 and 33 share the output 55 โ€” that is allowed. Two inputs may share one output; one input may not split into two outputs.

On a graph this becomes the vertical line test: a vertical line must cut the curve at most once.

03

Domain: which inputs are allowed

The domain is the set of inputs the machine accepts. Two things break a machine:

  1. Division by zero. In f(x)=1xโˆ’3f(x) = \dfrac{1}{x-3}, the input x=3x = 3 gives 10\dfrac{1}{0}. Reject it. Domain: all real numbers except 33.
  2. Square roots of negatives. In f(x)=xโˆ’5f(x) = \sqrt{x-5}, the input must keep xโˆ’5โ‰ฅ0x - 5 \ge 0, so xโ‰ฅ5x \ge 5.

Polynomials like x2+3xx^2 + 3x carry no such traps. Every real number is allowed.

Watch: For 1xโˆ’3\dfrac{1}{\sqrt{x-3}} both traps act together. The root needs xโˆ’3โ‰ฅ0x - 3 \ge 0 and the bottom cannot be zero, so x>3x > 3 strictly.

Worked: domain of x+1x2โˆ’5x+6\dfrac{x+1}{x^2 - 5x + 6}. Factor the bottom: (xโˆ’2)(xโˆ’3)(x-2)(x-3). Reject x=2x = 2 and x=3x = 3.

04

Range: which outputs can come out

The range is the set of outputs the machine can actually produce.

A straight line like f(x)=2x+5f(x) = 2x + 5 climbs forever in both directions. It can output every real number.

A parabola has a floor or a ceiling. Complete the square to find it:

f(x)=x2โˆ’4x+7=(xโˆ’2)2+3f(x) = x^2 - 4x + 7 = (x-2)^2 + 3

A square is never negative, so the smallest output is 33, reached at x=2x = 2. Range: f(x)โ‰ฅ3f(x) \ge 3.

If the x2x^2 term carries a minus sign, the parabola opens down. Then the vertex value is the maximum.

Tip: For a(xโˆ’h)2+ka(x-h)^2 + k, the range is [k,โˆž)[k, \infty) when a>0a > 0 and (โˆ’โˆž,k](-\infty, k] when a<0a < 0.

05

Even and odd functions

Replace xx by โˆ’x-x and simplify.

  • Same result: f(โˆ’x)=f(x)f(-x) = f(x) โ€” even. The graph mirrors in the yy-axis. Example: x4+x2x^4 + x^2 stays itself.
  • Sign flips: f(โˆ’x)=โˆ’f(x)f(-x) = -f(x) โ€” odd. The graph looks the same after a half turn. Example: x3+xx^3 + x flips sign cleanly.
  • Neither: f(x)=x+1f(x) = x + 1 gives โˆ’x+1-x + 1, which is neither f(x)f(x) nor โˆ’f(x)-f(x).

Note: Test the rule, not the powers. x2+1x^2 + 1 is even though 11 is an odd number; x3+1x^3 + 1 is neither.

06

Reading the question

Exams ask value, domain, range and symmetry as four separate question types.

  • "For which values is ff defined?" โ€” hunt denominators and roots first.
  • "The minimum value of f(x)f(x)" โ€” complete the square.
  • "Find kk given the minimum" โ€” vertex form, then compare.
  • "Even, odd or neither" โ€” compute f(โˆ’x)f(-x) fully before deciding.

Write the restriction first, then answer. That order catches almost every domain error.

07

Question types you will see

Each type: how to recognise it, the method step by step, and one question to try.

Type 1very common2 practice Q

Find the value of a function

How to spot it:

A rule like f(x)=3xโˆ’4f(x) = 3x - 4 is given and f(5)f(5) or f(a)+f(b)f(a) + f(b) is asked.

f(a)=(ruleย withย x=a)f(a) = \text{(rule with } x = a)
Method
  1. Write the rule.

  2. Replace every xx by the given number, in brackets.

  3. Simplify once, carefully.

  4. For f(a)+f(b)f(a) + f(b), evaluate each part separately.

Why it works:

A function value is just the output of the rule at that input, so substitution is the whole method.

Try this

If f(x)=x2+2xf(x) = x^2 + 2x, find f(3)f(3).

Show solution
  1. f(3)=32+2(3)f(3) = 3^2 + 2(3).

  2. =9+6=15= 9 + 6 = 15.

Answer

15

Type 2very common2 practice Q

Domain of a rational function

How to spot it:

The rule is a fraction. 'For what values of xx is ff defined?' is asked.

denominatorโ‰ 0\text{denominator} \ne 0
Method
  1. Set the bottom equal to zero.

  2. Solve for the rejected values.

  3. State the domain as all reals except those values.

  4. For a quadratic bottom, factor or use the formula.

Why it works:

Division by zero is undefined, so exactly the zeros of the bottom drop out of the domain.

Try this

Find the domain of f(x)=x+1x2โˆ’5x+6f(x) = \dfrac{x+1}{x^2 - 5x + 6}.

Show solution
  1. x2โˆ’5x+6=(xโˆ’2)(xโˆ’3)x^2 - 5x + 6 = (x-2)(x-3).

  2. Reject x=2x = 2 and x=3x = 3.

Answer

All real numbers except x=2x = 2 and x=3x = 3

Type 3common3 practice Q

Domain with a square root

How to spot it:

The rule contains โ€…โ€Š\sqrt{\;} of an expression in xx, alone or under a fraction.

(insideย ofย root)โ‰ฅ0\text{(inside of root)} \ge 0
Method
  1. Keep the inside of the root โ‰ฅ0\ge 0.

  2. Solve the inequality for xx.

  3. If the root sits in a denominator, make it strict: >0> 0.

  4. Combine both conditions when both appear.

Why it works:

Square roots of negative numbers are not real, so the inside must stay on the non-negative side.

Try this

Find the domain of f(x)=2xโˆ’8f(x) = \sqrt{2x - 8}.

Show solution
  1. 2xโˆ’8โ‰ฅ02x - 8 \ge 0.

  2. xโ‰ฅ4x \ge 4.

Answer

x โ‰ฅ 4

Type 4common2 practice Q

Range of a linear function

How to spot it:

f(x)=ax+bf(x) = ax + b with aโ‰ 0a \ne 0, and the set of possible outputs is asked.

aโ‰ 0โ‡’range=allย realย numbersa \ne 0 \Rightarrow \text{range} = \text{all real numbers}
Method
  1. Check the slope aa is not zero.

  2. A non-horizontal line climbs or falls forever.

  3. Conclude the range is all real numbers.

Why it works:

A slanted line keeps rising or falling without end, so no output value is missed.

Try this

Find the range of f(x)=2x+5f(x) = 2x + 5.

Show solution
  1. Slope 2โ‰ 02 \ne 0.

  2. As xx runs over all reals, 2x+52x + 5 also runs over all reals.

Answer

All real numbers

Type 5very common2 practice Q

Range or minimum of a quadratic

How to spot it:

ax2+bx+cax^2 + bx + c is given and its minimum (or maximum) value, or the full range, is asked.

a(xโˆ’h)2+kโ‡’min/max=ka(x-h)^2 + k \Rightarrow \text{min/max} = k
Method
  1. Complete the square, or use x=โˆ’b/2ax = -b/2a.

  2. Note the sign of aa: a>0a > 0 gives a minimum.

  3. Substitute the vertex input back into ff.

  4. Write the range from the vertex value.

Why it works:

The parabola turns around at its vertex, so the vertex value bounds the range on one side.

Try this

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

Show solution
  1. f(x)=(xโˆ’2)2+3f(x) = (x-2)^2 + 3.

  2. Smallest value 33 at x=2x = 2.

Answer

f(x) โ‰ฅ 3

Type 6common2 practice Q

Even, odd or neither

How to spot it:

'f(x)=โ€ฆf(x) = \ldots is:' with options even / odd / neither. Symmetry is asked without drawing.

f(โˆ’x)=f(x)ย even;f(โˆ’x)=โˆ’f(x)ย oddf(-x) = f(x) \text{ even}; \quad f(-x) = -f(x) \text{ odd}
Method
  1. Replace xx by โˆ’x-x everywhere.

  2. Simplify the new rule.

  3. Compare with f(x)f(x) and โˆ’f(x)-f(x).

  4. If neither matches, answer 'neither'.

Why it works:

Even means the rule is blind to the sign of xx; odd means the output flips sign with the input.

Try this

Classify f(x)=x4+x2f(x) = x^4 + x^2.

Show solution
  1. f(โˆ’x)=(โˆ’x)4+(โˆ’x)2=x4+x2f(-x) = (-x)^4 + (-x)^2 = x^4 + x^2.

  2. This equals f(x)f(x).

Answer

Even

08

Formula sheet

Domain: denominator
xโ‰ (zerosย ofย theย denominator)x \ne \text{(zeros of the denominator)}

Reject every input that makes the bottom zero.

Domain: square root
Aย needsย Aโ‰ฅ0\sqrt{A} \text{ needs } A \ge 0

The inside of a root stays on the non-negative side.

Range of a quadratic
a(xโˆ’h)2+kโ‡’range=[k,โˆž)ย ifย a>0a(x-h)^2 + k \Rightarrow \text{range} = [k, \infty) \text{ if } a > 0

Complete the square; $k$ is the floor or the ceiling.

Vertex input
x=โˆ’b2ax = -\frac{b}{2a}

Substitute back to get the minimum or maximum value.

Even / odd test
f(โˆ’x)=f(x)ย (even);f(โˆ’x)=โˆ’f(x)ย (odd)f(-x) = f(x) \text{ (even)}; \quad f(-x) = -f(x) \text{ (odd)}

Replace $x$ by $-x$ and simplify fully before deciding.

09

Shortcuts that save time

โšก Hunt the two troublemakers

For a domain, only two things can go wrong: a zero bottom or a negative root. Scan the rule for รท\div and \sqrt{}, write the condition, solve.

Example

Find the domain of f(x)=1xโˆ’7f(x) = \dfrac{1}{x - 7}.

Show solution
  1. Bottom is xโˆ’7x - 7; it must not be zero.

  2. xโ‰ 7x \ne 7; everything else is fine.

Answer

All real numbers except x=7x = 7

โšก Complete the square for range

Write ax2+bx+cax^2 + bx + c as a(xโˆ’h)2+ka(x - h)^2 + k. The square cannot go below 00, so kk is the smallest (or largest) output.

Example

Find the minimum value of f(x)=x2โˆ’4x+7f(x) = x^2 - 4x + 7.

Show solution
  1. f(x)=(xโˆ’2)2+3f(x) = (x-2)^2 + 3.

  2. (xโˆ’2)2โ‰ฅ0(x-2)^2 \ge 0, so the least value is 33.

Answer

3

โšก Test $f(-1)$ for even / odd

Compute f(โˆ’1)f(-1) and compare with f(1)f(1) and โˆ’f(1)-f(1). Equal means even, opposite means odd. Always confirm with the full rule f(โˆ’x)f(-x).

Example

Is f(x)=x3โˆ’xf(x) = x^3 - x even, odd or neither?

Show solution
  1. f(โˆ’x)=โˆ’x3+x=โˆ’(x3โˆ’x)f(-x) = -x^3 + x = -(x^3 - x).

  2. This equals โˆ’f(x)-f(x).

Answer

Odd

10

Mistakes to avoid

Where most students lose marks on this subtopic.

Mistake 01

Treating x=0x = 0 as always forbidden โ€” only a denominator equal to zero is forbidden, not the input zero itself.

Mistake 02

Giving the domain of xโˆ’4\sqrt{x-4} as all real numbers โ€” the inside must stay โ‰ฅ0\ge 0, so xโ‰ฅ4x \ge 4.

Mistake 03

Swapping domain and range โ€” domain is the set of inputs, range is the set of outputs.

Mistake 04

For 1xโˆ’2\dfrac{1}{\sqrt{x-2}}, writing xโ‰ฅ2x \ge 2 โ€” the bottom cannot be zero, so x>2x > 2 strictly.

Mistake 05

Testing even/odd at a single value and concluding without checking the rule f(โˆ’x)f(-x) for all xx.

Mistake 06

Judging even/odd from the powers alone โ€” x2+1x^2 + 1 is even and x3+1x^3 + 1 is neither; only the test with f(โˆ’x)f(-x) decides.

11

Quick revision

Read this the night before the exam.

  • Function: one input gives exactly one output.

  • Domain traps: denominator โ‰ 0\ne 0; inside of \sqrt{} โ‰ฅ0\ge 0.

  • 1/xโˆ’a1/\sqrt{x-a} needs x>ax > a strictly.

  • Line ax+bax + b, aโ‰ 0a \ne 0: range is all real numbers.

  • Quadratic a(xโˆ’h)2+ka(x-h)^2 + k: least or greatest value is kk.

  • Even: f(โˆ’x)=f(x)f(-x) = f(x). Odd: f(โˆ’x)=โˆ’f(x)f(-x) = -f(x).

12

Practice: 13 questions

Sets of 10, mixed across the question types above. Every answer has a step-by-step explanation.

Topic test ยท 13 questions

Suggested time 8 min ยท wrong answers go to your mistake notebook automatically.