Functions

A function is a rule with one promise attached: give it an input and it returns exactly one output. Everything here follows from that promise. The last section, the difference quotient, is the one that matters most later — it is the algebra a derivative is built out of, so the fluency you build on it now is spent in every chapter that follows.

Calculus — graphing and functions

Graphing calculator
What the notation means
  • The promise

    Two outputs for one input and it is not a function. Two inputs sharing one output is perfectly fine.

  • Function notation

    is not times . It names the output that the rule gives for the input .

  • Evaluating

    Whatever goes in the brackets goes everywhere the x was, and goes in bracketed. That habit is what stops a sign, or a whole expression, breaking loose later.

  • Vertical line test

    Two crossings would be one input with two outputs, which the promise forbids.

  • Composition

    Inside out: g acts first. The order matters and swapping it usually gives a different function.

  • Difference quotient

    The slope between two points on the graph. Simplify until the h in the denominator cancels — that cancellation is the point of the exercise.

Finding a domain
The domain is every input the rule can actually take. Start by allowing everything, then take away what breaks.
  1. Start with every real number. A polynomial never breaks, so if there is no fraction, no even root and no log, the domain is all reals and there is nothing to do.

  2. Throw out anything that makes a denominator zero. Set each denominator equal to zero and solve; those values are excluded. loses .

  3. Throw out anything that makes an even root negative. Set the inside and solve. needs . An odd root takes anything, so a cube root adds no restriction at all.

  4. Both at once means strictly greater. An even root in a denominator has to be positive rather than merely non-negative, because zero would divide by zero. That turns a into a .

  5. Write it as intervals. Round brackets for an excluded end, square for an included one, and to join the pieces. Infinity is always excluded.

Worked examples — evaluating

Worked examples — domains

Combining two functions
Add, subtract, multiply or divide two functions value by value. The arithmetic is the easy half; the domain is the half that gets marked.
  • Sum and difference

    Work out each output separately, then combine the two numbers. Nothing clever happens.

  • Product

    Two radicals multiplied can be pulled under one radical sign, which tidies the answer and hides the domain. Write the domain down before you tidy.

  • Quotient

    The quotient carries one restriction the others do not: every with is thrown out, even though it sat happily inside both original domains.

  • Domain of any combination

    Both rules have to be computable before they can be combined, so only the overlap survives. The stricter of the two conditions wins.

The domain comes from the two functions you started with, never from the expression you finish with.

Worked examples — combining functions
The same pair throughout, so the only thing changing is the operation and what it does to the domain.

Piecewise, absolute value and step
One function, several rules, each owning a stretch of the domain. To evaluate, first decide which stretch the input lands in, then use only that rule.
  • A rule with two branches

    The condition is as much a part of the rule as the formula is. Reading the formula without it is the usual mistake.

  • ...and the other branch

    The conditions must cover the domain without overlapping. Exactly one branch owns any given input, which is what keeps it a function.

  • Absolute value is piecewise

    It returns the distance from zero, so it is never negative. The minus sign on the first branch is what turns a negative input positive.

  • Filled and hollow endpoints

    At a boundary the branch whose condition uses or takes the filled dot; the branch with a strict or takes the hollow one.

  • Step function

    A piecewise function whose every branch is a constant. The graph is a run of flat segments, each with one filled and one hollow end.

Worked examples — piecewise

Where this goes wrong
  • Function notation is not multiplication and does not distribute. For : , while .

  • For : , while . Two different instructions.

  • Cancelling simplifies the expression, but the function was defined by the original rule and that rule was never given a value at . Simplifying cannot hand it one.

  • Combining two rules can tidy into an expression that would accept more inputs than either original did. becomes , which alone would take \u2014 but never existed.

  • Exactly one branch may own the boundary. Against and , the input is the top rule's. Handing it to both would put two outputs on one input.

  • The promise is one output per input, not one input per output. Two inputs sharing an output is ordinary — it only means the graph fails the horizontal line test, which is about invertibility, not about being a function.

Practice

Type an answer and it gets marked. What you get right is kept on this device.