Quarry School

Order changes the result, and units must fit — quick review

In plain words

Picture a store applying a discount and a coupon.

Rule

Usually f(g(x)) ≠ g(f(x)) as functions. Check both orders rather than assuming equality.
For a meaningful composition, the inner output must be an acceptable outer input, including its units.

Step

  1. 1. For each order, identify the function nearest the original input.

  2. 2. Evaluate or substitute that inner function into the other function.

  3. 3. Compare the resulting formulas and their domains. A different answer at one allowed input proves the functions differ.

  4. 4. For an application, label the starting input, intermediate output, and final output with units.

  5. 5. Check that the intermediate unit matches the outer function's expected input unit.

Question

(a) Let f(x) = 2x + 5 and g(x) = x2. Find f(g(x)) and g(f(x)). Decide whether they are the same function. (b) A delivery van drives at a steady speed, so the distance it covers in t hours is D(t) = 60t miles. The van uses fuel according to G(d) = d30 gallons for d miles driven. Find the meaningful composition that gives gallons used after t hours, and evaluate it at t = 3. Explain why the other order, D(G(d)), is not meaningful.

Answer

(a) f(g(x)) = 2x2 + 5 and g(f(x)) = 4x2 + 20x + 25. They are different functions, since at x = 1 the outputs are 7 and 49. (b) G(D(t)) = 2t gallons, and G(D(3)) = 6 gallons. D(G(d)) is not meaningful because G outputs gallons while D needs hours.

Trap

Treating a valid arithmetic calculation as proof that an application makes sense. Label the units as well as the numbers.

Strategy

  1. Find the combined formula inside first.

  2. Set that final output equal to the requested number.

  3. Solve for the original input, stating what it locates.

  4. Check the original functions at that input.

Strategy

  1. Write each function as its input quantity → its output quantity. A unit is a named measure such as hours or miles.

  2. Start with the function accepting the given input quantity; put it inside the other name.

  3. Pass its output to a function accepting that output quantity.

  4. For pure-number functions, calculate both formulas and their domains. One different output proves they differ; equality requires the same outputs everywhere and the same domain.

Term

Function

Definition

A rule that gives exactly one output for each input it accepts.

Term

Input

Definition

The starting value you give a function. It goes inside the parentheses in function notation.

Term

Output

Definition

The answer a function produces from an accepted input.

Term

Evaluate

Definition

Find the output of a function or the value of an expression for a given input.

Term

Domain

Definition

All inputs for which a function is defined.

Term

Inner function

Definition

The function evaluated first in a composition. Its output becomes the next function's input.

Term

Outer function

Definition

The function evaluated second in a two-function composition. It receives the inner function's output.

Term

Commutative

Definition

Describing an operation whose result stays the same when the order is reversed. Function composition usually does not have this property.

Term

Unit

Definition

The named measure attached to a quantity, such as hours, miles, gallons, or dollars.

Term

Substitution

Definition

Replacing a variable with a number or expression everywhere that variable appears. Parentheses hold a multi-term replacement together.

Term

Square root

Definition

The nonnegative number whose square is the given nonnegative number. Here the √ symbol names that one nonnegative value.

Term

Formula

Definition

A written rule using numbers, symbols, and operations to describe how a quantity is calculated.

Term

Graph

Definition

A picture of coordinate pairs. A function graph shows each input horizontally and its output vertically.

Term

Real number

Definition

A number on the ordinary number line, including negatives, zero, fractions, and numbers such as 2.

Term

Nonnegative

Definition

Greater than or equal to zero. Zero is included, while positive means greater than zero and excludes zero.

Term

Fraction

Definition

One number divided by another nonzero number. The top is divided by the bottom; equal pieces give a picture of its size.

Term

Intermediate answer

Definition

The in-between output of the first function, which becomes the next function’s input.

Term

Linear

Definition

A formula built from a constant times the input plus a constant. Its graph is a straight line.

Term

Solve

Definition

Find every input that makes a stated equality or inequality true. This differs from evaluating at a given input.

Term

Equation

Definition

A statement that two expressions have equal values.