Quarry School

Write and evaluate a piecewise function — quick review

In plain words

Picture a parking sign with different prices for different lengths of stay.

Rule

Choose the condition your input satisfies, then use that piece's formula.
The whole domain is the union of the pieces' domains; each allowed input must receive one output.

Step

  1. 1. Identify what the input measures and where the rule changes.

  2. 2. Write a formula for each region and state its condition with the boundary ownership explicit.

  3. 3. Include any context limits, such as positive whole-number people counts.

  4. 4. To evaluate, compare the input with all conditions before using a formula.

  5. 5. Substitute into the selected formula and follow the order of operations.

  6. 6. At a boundary, check which condition includes equality. Do not add the outputs of different pieces.

Question

A data plan has C(g) = 25 for 0 < g < 2, and C(g) = 25 + 10(g − 2) for g ≥ 2. Here g is gigabytes and C is dollars. Find C(1.5) and C(4).

Answer

C(1.5) = $25.
C(4) = $45.

Trap

Using a formula because it is familiar before reading its condition. At g = 2 the data plan uses the g ≥ 2 piece. At g = 0 neither piece applies.

Strategy

  1. 1. Identify what the input measures and where the rule changes.

  2. 2. Write a formula for each region and state its condition with the boundary ownership explicit.

  3. 3. Include any context limits, such as positive whole-number people counts.

  4. 4. To evaluate, compare the input with all conditions before using a formula.

  5. 5. Substitute into the selected formula and follow the order of operations.

  6. 6. At a boundary, check which condition includes equality. Do not add the outputs of different pieces.

Term

Function

Definition

A rule assigning exactly one output to each allowed input. Different inputs may share an output.

Term

Input

Definition

The value you choose or supply to a function before its rule calculates an output.

Term

Output

Definition

The result a function produces from a chosen allowed input.

Term

Formula

Definition

A mathematical recipe describing how quantities are related or how to calculate a result.

Term

Domain

Definition

The set of all inputs allowed for a function, considering its arithmetic and any stated context or restrictions.

Term

Range

Definition

The set of all outputs a function actually produces from its allowed inputs.

Term

Coordinate

Definition

One number describing a point's position along an axis. In (x, y), x is horizontal and y is vertical.

Term

Discrete function

Definition

A function with separate allowed inputs, such as whole-number counts. Its graph has isolated points rather than every intervening input.

Term

Continuous function

Definition

A function with no break at its domain points. On an interval, its graph has no jumps or holes between allowed inputs.

Term

Undefined

Definition

Having no assigned value in the number system or function being used. Division by zero is undefined in real arithmetic.

Term

Inequality

Definition

A comparison using <, >, ≤ or >=. It describes which amount is smaller or larger and whether equality is allowed.

Term

Nonnegative

Definition

Greater than or equal to 0. It includes positive numbers and 0, but excludes negative numbers.

Term

Positive

Definition

Strictly greater than 0. Zero is excluded.

Term

Negative

Definition

Strictly less than 0. Negative numbers lie to the left of 0 on a number line.

Term

Number line

Definition

A straight line placing real numbers in order, with smaller numbers left and greater numbers right.

Term

Interval

Definition

A set containing every real number between its limits, with endpoints included or excluded as specified. It may extend without bound.

Term

Bracket

Definition

The interval symbols [ and ], indicating that the adjacent finite endpoint belongs to the set.

Term

Graph

Definition

A picture of points representing input and output pairs, usually with inputs horizontal and outputs vertical.

Term

Magnitude

Definition

A real number's size without its sign, measured by its absolute value or distance from 0.

Term

Modulus

Definition

Another name for the absolute value of a real number, its nonnegative distance from 0.

Term

Piecewise function

Definition

A function using different formulas on specified parts of its domain. Each allowed input must have exactly one output.

Term

Piece

Definition

One formula together with the input condition telling you where it is used in a piecewise function.

Term

Boundary

Definition

An input where an interval starts or ends, or where a piecewise condition changes. Check which condition includes it.

Term

Tax bracket

Definition

An income interval with its assigned tax rule. In a marginal model, a higher rate applies only to income within its bracket.