Precalculus · Textbook draft · 10 minute reading

Functions, Domains, and Representations

Connect formulas, tables, graphs, and piecewise definitions.

Before you begin

  • Coordinates, equations, and inequalities.

Learning objectives

  • Determine domains and ranges from a specification.
  • Evaluate and interpret piecewise functions.
  • Distinguish function inputs, outputs, and graph properties.

A parking charge depends on how long a vehicle stays. A rule might assign one price to the first hour and another to each later hour. The input is elapsed time and the output is a charge, but the rule need not be one algebraic formula. Function notation gives us a common language for formulas, tables, graphs, and rules defined in pieces.

A function includes its allowed inputs

A function assigns exactly one output to every input in its domain. For a real-valued function, the outputs are real numbers. The range is the set of outputs actually obtained, which can be smaller than a stated codomain of possible outputs.

The formula f(x)=x2f(x)=x^2 on R\mathbb R has range [0,∞)[0,\infty). The same formula restricted to [2,4][2,4] has range [4,16][4,16]. Domains therefore distinguish functions even when their formulas agree.

The notation f(3)f(3) means the output associated with input 3. For f(x)=x2−2xf(x)=x^2-2x, f(3)=3f(3)=3, while f(a+h)=(a+h)2−2(a+h)f(a+h)=(a+h)^2-2(a+h). Substitute the entire input wherever the variable occurs. The expression f(x+h)f(x+h) does not generally equal f(x)+f(h)f(x)+f(h); for the square function, the missing cross term is 2xh2xh.

Domains come from the operations

A real square root requires a nonnegative argument, while division requires a nonzero denominator. Thus

f(x)=x+4x−2f(x)=\frac{\sqrt{x+4}}{x-2}

has domain [−4,2)∪(2,∞)[-4,2)\cup(2,\infty). Both conditions apply to the original expression. A simplification may hide a restriction but cannot erase it from the specified function.

A formula in a physical model may carry further restrictions. The volume V(t)=80−5tV(t)=80-5t of an emptying tank is meaningful here only for 0≤t≤160\le t\le16 minutes. The polynomial formula exists at later inputs, but the tank model stops when the tank empties.

For a rational formula, examine every denominator before combining fractions. For a piecewise rule, check the specified intervals as well as the formulas within them. These steps define what counts as an allowed input before we try to find a range or solve an equation.

Tables and graphs carry the same assignment

A table listing (1,4),(2,7),(3,10)(1,4),(2,7),(3,10) gives one output per listed input. It could represent a function with domain exactly {1,2,3}\{1,2,3\}, or observations from an unknown larger-domain function. The table alone does not establish how the rule behaves at unlisted inputs.

The graph of ff is the set of points (x,f(x))(x,f(x)). A vertical line meets it at most once, since one input cannot have two outputs. The circle x2+y2=9x^2+y^2=9 fails this test over most of its horizontal extent. Its upper semicircle y=9−x2y=\sqrt{9-x^2} is a function on [−3,3][-3,3].

Horizontal crossings answer a different question. If a horizontal line meets the graph more than once, several inputs share an output. That is permitted for a function, but it will matter when trying to recover the input from its output.

Piecewise definitions describe changing rules

Consider the hypothetical parking charge

C(t)={0,t=0,4,0<t≤1,4+3(t−1),1<t≤5.C(t)= \begin{cases} 0,&t=0,\\ 4,&0<t\le1,\\ 4+3(t-1),&1<t\le5. \end{cases}

The domain is [0,5][0,5] hours. A half-hour stay costs 4 dollars; a three-hour stay costs 10 dollars. The formulas agree at the transition t=1t=1, but the separate zero-time rule creates a jump just after zero. Endpoint symbols determine which rule supplies the value at a boundary.

Function behavior is an interval statement

A function is increasing on an interval if larger inputs always produce larger outputs there. Formally, u<vu<v implies f(u)<f(v)f(u)<f(v). The square function is decreasing on (−∞,0](-\infty,0] and increasing on [0,∞)[0,\infty). Its output at zero is an absolute minimum.

For distinct inputs a,ba,b, the average rate of change is [f(b)−f(a)]/(b−a)[f(b)-f(a)]/(b-a). With f(t)=t2f(t)=t^2, the average from 1 to 3 is (9−1)/2=4(9-1)/2=4. This rate describes the interval and does not imply that every shorter interval has the same rate. Linear functions will be the special case in which all such averages agree.

Exercises

  1. For f(x)=2x2−1f(x)=2x^2-1, calculate f(−2)f(-2) and f(a+1)f(a+1).
  2. Find the domain of 5−x/(x+1)\sqrt{5-x}/(x+1).
  3. Give the range of x2x^2 on [−2,3][-2,3].
  4. Does the relation y2=xy^2=x define one real yy for every allowed xx?
  5. Use the parking rule to calculate C(0)C(0), C(1)C(1), and C(4)C(4).
  6. Find the average rate of f(x)=x2−3xf(x)=x^2-3x from 0 to 4.
Worked solutions
  1. f(−2)=7f(-2)=7. Expanding 2(a+1)2−12(a+1)^2-1 gives 2a2+4a+12a^2+4a+1.
  2. The root requires x≤5x\le5 and the denominator excludes −1-1, giving (−∞,−1)∪(−1,5](-\infty,-1)\cup(-1,5].
  3. The minimum is 0 at x=0x=0 and maximum 9 at x=3x=3, so the range is [0,9][0,9].
  4. No. For positive xx there are two values, ±x\pm\sqrt x. Selecting the nonnegative branch gives a function.
  5. The charges are 0, 4, and 4+3(3)=134+3(3)=13 dollars.
  6. f(4)=4f(4)=4 and f(0)=0f(0)=0, so the average rate is 1 output unit per input unit.
Your study progress · Optional

Keep your place

Mark this lesson complete after you've read it, attempted its exercises, and explained its central idea in your own words.

Progress is not saved unless you choose to mark the lesson complete.

Saved only in this browser's local storage. No required account, server transmission, or analytics. You can reset your saved progress on the course page. Clearing browser data also clears the record.