Quarry School

Substitute the whole inside expression — quick review

In plain words

Before filling a form with letters, run the two machines with numbers.

Rule

To form f(g(x)), replace every input-variable occurrence in f with the whole parenthesized expression g(x).
(a + b)2 = a2 + 2ab + b2, because (a + b)(a + b) has two cross products ab.

Step

  1. 1. Copy the outer formula and identify every input slot.

  2. 2. Write the complete inner formula in parentheses in every slot.

  3. 3. Keep powers outside those parentheses so they act on the entire input.

  4. 4. Expand with distribution. For a square, multiply the two identical parentheses and keep both cross products.

  5. 5. Combine like terms, preserve any domain restrictions, and check a small allowed input by the two-stage route.

Question

Let f(x) = x2 − 6 and g(x) = 3x + 2. Find (f ∘ g)(x) and (g ∘ f)(x). You want one formula for each order. Plan: put the complete inner formula into the outer input place, multiply out any square using four products, and collect matching terms.

Answer

(f ∘ g)(x) = 9x2 + 12x − 2.
(g ∘ f)(x) = 3x2 − 16.
Both domains are all real numbers.

Trap

Writing (2x + 1)2 = 4x2 + 1. The square multiplies two whole sums, so the two cross products must appear.

Strategy

  1. 1. Copy the outer formula and identify every input slot.

  2. 2. Write the complete inner formula in parentheses in every slot.

  3. 3. Keep powers outside those parentheses so they act on the entire input.

  4. 4. Expand with distribution. For a square, multiply the two identical parentheses and keep both cross products.

  5. 5. Combine like terms, preserve any domain restrictions, and check a small allowed input by the two-stage route.

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

Domain

Definition

All inputs for which a function is defined.

Term

Outer function

Definition

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

Term

Substitution

Definition

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

Term

Reciprocal

Definition

One divided by a nonzero number. A fraction's reciprocal swaps its top and bottom, and their product is 1.

Term

Formula

Definition

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

Term

Variable

Definition

A symbol that stands for a number or quantity. Its value may change or may be the unknown you need to find.

Term

Denominator

Definition

The bottom of a fraction. It names the divisor and cannot be zero.

Term

Factor

Definition

One of the quantities multiplied together in a product.

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

Exponent

Definition

A raised number indicating a power. A positive whole-number exponent counts how many copies of the input are multiplied together.

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

Like terms

Definition

Terms with the same variable part and powers. Their number factors can be added or subtracted.

Term

Distribute

Definition

Multiply each term inside parentheses by the outside factor.

Term

Equation

Definition

A statement that two expressions have equal values.