SJMathTube · CALCULUS FOUNDATIONS · LESSON 01

Functions Explained:
Notation, Domain and Graphs

Start with a walk. Build a mathematical model. Then learn to read, combine, and reverse functions.

You need basic algebra. Begin with one example and work at your own pace.

TIME5 seconds
multiply by 3
DISTANCE15 metres

One input. One determined output.

Preparing mathematical notation…

01 · START WITH A QUESTION

How far has he walked?

A man walks along a straight path at a constant speed of 3 metres per second. We measure distance travelled from the moment he starts.

In 5 seconds, he travels 15 metres. In 10 seconds, he travels 30 metres. What happens when we replace the time with a letter?

\[d(t)=3t\]

Here, \(t\) is elapsed time in seconds, and \(d(t)\) is distance in metres. Read \(d(t)\) as “the distance at time t.”

Try a different time

Distance: 15 m

The graph shows the first 20 seconds. Fractional seconds are allowed.

What makes the model work? The speed stays constant. The distance starts at zero. We use \(t\geq0\), for as long as these assumptions hold.

Check the idea: what does d(8) mean?

It means the distance travelled after 8 seconds. \(d(8)=3(8)=24\text{ m}\).

02 · GIVE THE IDEA A PRECISE NAME

Each allowed input has exactly one output.

Functions help us express relationships and build mathematical models. A function does not have to describe a real-world situation, and it can be represented by a rule, a table, a graph, or a mapping.

A function \(f:A\to B\) assigns exactly one element of B to every element of A.

The input can be a number or a complete collection of values, such as an ordered pair.

Domain

The allowed inputs. For our walking model, elapsed time is nonnegative.

Codomain

The stated set in which outputs must lie. We can declare \(d:[0,\infty)\to\mathbb R\).

Range

The outputs actually reached. For this idealized walking model it is \([0,\infty)\), a subset of the chosen codomain.

Allowed: shared outputs

\(-3\mapsto9\)
\(3\mapsto9\)

Both inputs have one output. The rule \(f(x)=x^2\) is a function.

Not a function of this input

\(3\mapsto7\)
\(3\mapsto10\)

The same input has two different outputs. It fails the function requirement.

Vertical line test: a graph represents y as a function of x if every vertical line meets it at most once. Inputs outside the domain need not have a graph point.

Notation: \(f(x)\) is the output of f at x. It does not mean f multiplied by x.

03 · BUILD THREE MODELS

Can a T-shirt business make a profit?

The setup costs $60. Each shirt costs $4, and each sells for $10. Assume all the shirts are sold and there are no other costs.

\[\begin{aligned}C(n)&=60+4n\\R(n)&=10n\\P(n)&=R(n)-C(n)=6n-60\end{aligned}\]

Each rule has a different job. Cost measures spending, revenue measures sales income, and profit measures what remains after costs.

Cost$100
Revenue$100
Profit$0

Break-even: revenue equals cost.

Here \(n\) is a nonnegative integer. The graph uses separate points because a fraction of a shirt is not an allowed sales count.

Compare three sales totals, in dollars
ShirtsCostRevenueProfit
58050−30
101001000
1512015030
Why do we need to sell 10 shirts to break even?

Each sale contributes \(10-4=6\) dollars towards the setup cost. Solve \(6n=60\), giving \(n=10\).

04 · A TOOLKIT FOR THE QUESTIONS

Read it. Combine it. Reverse it.

Open a topic when you need it. Start with the first two if function notation is new to you.

Allowed inputs, outputs, and familiar graphs

A denominator cannot be zero. The expression under a real square root must be nonnegative. The argument of a real logarithm must be positive.

\[\dfrac1{x-3}:x\ne3\qquad\sqrt{x-2}:x\geq2\qquad\ln x:x>0\]

Linear, quadratic, absolute-value, rational, exponential, logarithmic, and trigonometric functions form a useful reference collection.

On a graph, zeros are the inputs where the output is zero. Increasing means outputs grow as inputs move right. An even function has \(f(-x)=f(x)\); an odd function has \(f(-x)=-f(x)\). A periodic function repeats after a fixed positive input interval.

Tables and piecewise functions

A table may contain only selected values. A missing entry does not, by itself, prove that a function is undefined there.

\[h(x)=\begin{cases}2x+1&x<2\\x^2&x\geq2\end{cases}\]

Choose the branch using the input, then calculate. At \(x=2\), use the second branch: \(h(2)=4\).

Composite functions: the output becomes another input

In \(f(g(x))\), apply g first. Then feed its output into f.

\[(f\circ g)(x)=f(g(x))\]

If \(g(x)=x+4\) and \(f(u)=3u-2\), then \(f(g(x))=3(x+4)-2=3x+10\).

Check the domain: x must be allowed for g, and \(g(x)\) must be allowed for f. If composition is required on the whole domain of g, its entire range must fit within the domain of f; otherwise state a suitable restricted domain.

Some syllabuses write fg for composition. Other texts use fg for multiplication. Here we use \(f(g(x))\) or \(f\circ g\) for composition and \(f(x)g(x)\) for multiplication.

Inverse functions: undo the rule

An inverse reverses the input-output relationship. For a function to have an inverse on its range, different inputs must give different outputs: it must be one-to-one.

\[f(x)=4x-7\quad\Longrightarrow\quad f^{-1}(x)=\dfrac{x+7}{4}\]

The graphs of a function and its inverse reflect in the line \(y=x\). Their domain and range exchange roles. A quadratic needs a suitable domain restriction before it has an inverse function.

For \(f(x)=x^2\) restricted to \(x\geq0\), the inverse is \(\sqrt x\). Inverse notation does not mean a reciprocal: \(f^{-1}(x)\) and \(\dfrac1{f(x)}\) generally differ.

Transformations and combining outputs

\(f(x-a)+b\) moves a graph right by a and up by b. Multiplying the output by k scales it vertically; replacing x by kx changes horizontal distances by the reciprocal scale when \(k\ne0\), with a reflection when k is negative.

Functions can also be added, subtracted, multiplied, or divided. Use their common allowed inputs, and exclude zeros of the divisor for a quotient.

\[(f+g)(x)=f(x)+g(x)\qquad\left(\dfrac fg\right)(x)=\dfrac{f(x)}{g(x)}\]
Prepare for calculus: f(a + h)

Replace every input variable with the complete expression \(a+h\). For \(f(x)=x^2\):

\[f(a+h)=(a+h)^2=a^2+2ah+h^2\]

The change in output is \(f(a+h)-f(a)\). For a nonzero change h in the input:

\[\dfrac{f(a+h)-f(a)}h=\dfrac{2ah+h^2}h=2a+h,\qquad h\ne0\]

This is algebraic preparation. The later limits and derivative lessons explain what happens as h approaches zero.

05 · EXPLORE FURTHER

What if one number is not enough?

A model might use both study time t and the number of practice questions p to produce a predicted mark.

\[(t,p)\longmapsto M(t,p)\]

The complete input is an ordered pair. Each allowed pair still gives one output. Two input coordinates and one output can be shown on a three-dimensional graph.

Illustrative model output: 86.5 out of 100

See the model used in this illustration
\[M(t,p)=100\left(1-e^{-0.2t-0.02p}\right)\]

At \((5,50)\), the output is \(100(1-e^{-2})\approx86.5\).

This is an invented teaching model. Actual marks depend on many factors; these coefficients are not measured predictions or a promise of results.

06 · EXPLORE FURTHER

Twenty inputs. One journey-time prediction.

Imagine a model that uses twenty factors to estimate the time needed for a particular journey.

\[D=f(x_1,x_2,\ldots,x_{20})\]

Road and route

Distance, lanes, speed limits, junctions, roadworks.

Traffic

Vehicle count, average speed, incoming flow, bus activity, signal delay.

Conditions

Rain, visibility, surface condition, incidents, pedestrian activity.

Timing

Departure time, day of week, holidays, nearby events, school activity.

These are twenty illustrative inputs, not a validated traffic model. Each complete input combination produces one predicted journey time.

What does “dimension” mean here? Twenty input coordinates describe the model's input space. Adding one scalar output gives 21 coordinates for its graph. These are not twenty physical directions in the road.

We can understand parts of such a model by fixing most inputs and examining selected slices. This is an extension beyond the single-variable focus of this foundation course.

Ready to use the ideas?

Choose one practice topic. You can return to any explanation whenever you need it.

SJMathTube · Original practice for this lesson. AP Calculus preparation, GCSE Higher topics, and AS/A Level foundations. This is a lesson self-check, not an official examination.

Formulae

Available Formula Sheets

⌂ Home
Latest
Latest Content Auto
Home