Steady State
MAT161 / Lecture 1
Lecture 1 · Barnett 1-1 to 1-2 · about 40 min

Functions and Their Graphs

What a function is, how to find its domain, evaluate it and build the difference quotient, the six basic graphs and how to move them, piecewise functions with open and closed dots, and the cost, revenue and profit functions of business problems.

By the end you can
  • Decide whether a rule or a graph defines a function, using the vertical line test
  • Find the domain of a function with denominators and square roots, and read the range from a graph
  • Evaluate f(a + h) and simplify the difference quotient
  • Sketch the basic functions and their shifts, reflections and stretches
  • Evaluate and graph piecewise functions with correct open and closed dots
  • Build cost, revenue and profit functions and invert a demand function

How the exam asks it: three core exam templates

In midterm exams, functions and graph questions test three canonical structures: domain restrictions, difference quotients, and piecewise or economic models. Master these three worked solutions, then follow the cheat-sheet and 4-step method below.

Exam template 1: Finding domain with radical and denominator restrictions

Question: Consider the functions f(x)=x+3x−2f(x) = \dfrac{\sqrt{x + 3}}{x - 2} and average cost Cˉ(x)=2000x+8\bar{C}(x) = \dfrac{2000}{x} + 8.
a) State the algebraic condition required for the square root x+3\sqrt{x + 3}.
b) State the algebraic condition required for the denominator x−2x - 2.
c) Write the domain of f(x)f(x) in interval notation.
d) If Cˉ(x)\bar{C}(x) is the daily average cost of a plant with maximum capacity of 500 units, determine its economic domain in interval notation.

Worked example · Full step-by-step solution for Template 1 (Domain analysis)0/12

f(x)=x+3x−2f(x) = \dfrac{\sqrt{x + 3}}{x - 2} and daily average cost Cˉ(x)=2000x+8\bar{C}(x) = \dfrac{2000}{x} + 8 with maximum capacity 500 units.

Exam template 2: Expanding and simplifying the difference quotient

Question: Let f(x)=x2−3x+1f(x) = x^2 - 3x + 1.
a) Find the expanded expression for f(x+h)f(x + h).
b) Compute and simplify the numerator f(x+h)−f(x)f(x + h) - f(x).
c) Find and simplify the difference quotient f(x+h)−f(x)h\dfrac{f(x + h) - f(x)}{h} for h≠0h \ne 0.
d) Evaluate the difference quotient when x=2x = 2 and h=0.1h = 0.1.

Worked example · Full step-by-step solution for Template 2 (Difference quotient)0/13

f(x)=x2−3x+1f(x) = x^2 - 3x + 1, evaluate the difference quotient at general (x,h)(x, h) and at (x=2,h=0.1)(x = 2, h = 0.1).

Exam template 3: Piecewise pricing schedules and demand inversion

Question: A courier charges delivery fee C(x)C(x) based on distance xx (in km): C(x)={20if 0<x≤520+3(x−5)if x>5C(x) = \begin{cases} 20 & \text{if } 0 \lt x \le 5 \\ 20 + 3(x - 5) & \text{if } x \gt 5 \end{cases} Separately, market demand for an item is given by p=D(x)=200−4xp = D(x) = 200 - 4x.
a) Find the courier cost for a delivery of x=4x = 4 km.
b) Find the courier cost for a delivery of x=12x = 12 km.
c) Invert the demand equation p=200−4xp = 200 - 4x to express quantity demanded xx as a function of price pp.

Worked example · Full step-by-step solution for Template 3 (Piecewise evaluation and function inverse)0/9

Piecewise pricing C(x)C(x) and linear demand equation p=200−4xp = 200 - 4x.

Cheat-sheet & the 4-step method

What a function is

A function assigns to each input exactly one output. Total cost depends on output: for each quantity xx there is one cost C(x)C(x), not two.

Function notationFormula sheet →
y=f(x)y = f(x)
xx
input (independent variable)
yy
f(x) = output (dependent variable)

Use it when you need to name a relationship, or evaluate it at a specific input.

Diagram · Vertical line testone x, one y
−5−4−3−2−112345−3−2−1123one hit eachy = ½x² − 2yx

Slide a vertical line across the graph. If it never hits the graph more than once, the graph is a function: each xx has one yy.

Check your understanding

A firm records, for each day of the month, the number of units sold. Is 'units sold' a function of 'day of the month'?

Domain and range

The domain is the set of allowed inputs, the range the set of outputs actually produced.

Inside the formulaRuleExample
Denominatormust not be 01x−3\frac{1}{x - 3}: x≠3x \ne 3
Square root u\sqrt{u}u≥0u \ge 0x−4\sqrt{x - 4}: x≥4x \ge 4
Root in a denominator 1u\frac{1}{\sqrt{u}}u>0u \gt 015−x\frac{1}{\sqrt{5 - x}}: x<5x \lt 5
Economic quantityoutput ≥0\ge 0, capacity0≤x≤5000 \le x \le 500
Worked example · Domain with a root and a denominator0/6

Find the domain of f(x)=x+3x−2f(x) = \dfrac{\sqrt{x + 3}}{x - 2}.

Check your understanding

What is the domain of f(x)=x−4f(x) = \sqrt{x - 4}?

Check your understanding

What is the domain of g(x)=15−xg(x) = \dfrac{1}{\sqrt{5 - x}}?

Worked example · Domain with an economic restriction0/6

Average cost is Cˉ(x)=2000x+8\bar C(x) = \frac{2000}{x} + 8 for xx units a day, and the factory can make at most 500 a day. Find the domain.

Evaluating and the difference quotient

Barnett asks for f(a+h)f(a + h) and the difference quotient because it becomes the derivative later. Brackets are everything.

Difference quotientKey formulaFormula sheet →
f(x+h)−f(x)h,h≠0\frac{f(x + h) - f(x)}{h}, \quad h \ne 0
f(x+h)f(x+h)
f with x replaced by (x + h)
hh
a small change in x

Use it when a question asks you to simplify the difference quotient, or the average rate of change from x to x + h.

Worked example · Difference quotient of a quadratic0/8

f(x)=x2−3x+1f(x) = x^2 - 3x + 1. Find and simplify f(x+h)−f(x)h\frac{f(x+h) - f(x)}{h}.

Your turn

f(x)=3x2−xf(x) = 3x^2 - x. Evaluate the difference quotient f(x+h)−f(x)h\frac{f(x+h) - f(x)}{h} at x=2x = 2, h=0.1h = 0.1.

The basic functions

Six graphs you must draw from memory (plus 1/x1/x). For each: three points, the shape, the domain and range.

Diagram · The basic functionsplot 3 points, know the shape
−4−3−2−11234−2−11234(2, 2)(−2, −2)y = xyx

Identity f(x)=xf(x) = x: straight line through the origin, slope 1. Domain (−∞,∞)(-\infty, \infty), range (−∞,∞)(-\infty, \infty). Plot (−2,−2)(-2,-2), (0,0)(0,0), (2,2)(2,2) and join.

FunctionKey pointsDomainRange
xx(0,0)(0,0), (1,1)(1,1)all realsall reals
x2x^2(0,0)(0,0), (±1,1)(\pm1, 1), (±2,4)(\pm2, 4)all reals[0,∞)[0, \infty)
x3x^3(0,0)(0,0), (±1,±1)(\pm1, \pm1)all realsall reals
x\sqrt{x}(0,0)(0,0), (1,1)(1,1), (4,2)(4,2)[0,∞)[0, \infty)[0,∞)[0, \infty)
x3\sqrt[3]{x}(0,0)(0,0), (±1,±1)(\pm1, \pm1)all realsall reals
∣x∣\lvert x \rvert(0,0)(0,0), (±2,2)(\pm2, 2)all reals[0,∞)[0, \infty)

Transformations

TransformationsRulesFormula sheet →
y=A f(x−h)+ky = A\,f(x - h) + k
hh
horizontal shift (right if h > 0)
kk
vertical shift (up if k > 0)
AA
vertical stretch, flip across the x-axis if A < 0

Use it when a graph is a basic function moved, flipped or stretched, such as y = -(x - 2)^2 + 3 or y = \sqrt{x + 1} - 2.

Diagram · Transformations of y = x²y = A·f(x − h) + k
−3−2−112345−2−11234vertex (2, 3)(0, −1)y = x²y = −(x − 2)² + 3yx

Read y=−(x−2)2+3y = -(x-2)^2 + 3 step by step: start from x2x^2, move right 2, flip (the minus), move up 3. Vertex (2,3)(2, 3), opens down, y-intercept −(0−2)2+3=−1-(0-2)^2 + 3 = -1.

Check your understanding

How is the graph of y=(x+3)2−2y = (x + 3)^2 - 2 obtained from y=x2y = x^2?

Check your understanding

Where does the graph of y=x+2−1y = \sqrt{x + 2} - 1 start?

Cost, revenue and profit functions

Cost, revenue and profitFormula sheet →
C(x)=fixed cost+(cost per unit) xR(x)=p xP(x)=R(x)−C(x)C(x) = \text{fixed cost} + (\text{cost per unit})\,x \qquad R(x) = p\,x \qquad P(x) = R(x) - C(x)
C(x)C(x)
total cost
R(x)R(x)
total revenue
P(x)P(x)
total profit
pp
price per unit

Use it when you are given a fixed cost, a per-unit cost and a price, and need any of the three functions.

Your turn

A workshop has fixed costs of 4,000 TL a month and variable costs of 35 TL per unit. It sells each unit for 75 TL. What is the profit from producing and selling 120 units?

Piecewise-defined functions

Tiered prices, tax brackets and bulk discounts use a different formula on different parts of the domain.

Worked example · Reading a piecewise price schedule0/8

A courier charges C(x)=20C(x) = 20 TL if 0<x≤50 \lt x \le 5 km, and C(x)=20+3(x−5)C(x) = 20 + 3(x - 5) TL if x>5x \gt 5 km. Find the cost of a 12 km delivery.

Graphing a piecewise function is the classic exam question. Watch the dots:

Diagram · Graphing a piecewise functionopen vs closed dots
−3−2−11234−11234f(−1) = 1f(2) = 4f(3) = 1yx

Values: f(−1)=−1+2=1f(-1) = -1 + 2 = 1, f(0)=02=0f(0) = 0^2 = 0 (the closed dot, not the open one at 2), f(2)=4f(2) = 4, f(3)=1f(3) = 1. Range: (−∞,2)∪[0,4]∪{1}=(−∞,4](-\infty, 2) \cup [0, 4] \cup \{1\} = (-\infty, 4].

Your turn

Using the courier's pricing above, what is the cost of a 4 km delivery?

Check your understanding

f(x)=x+2f(x) = x + 2 for x<0x \lt 0, x2x^2 for 0≤x≤20 \le x \le 2, 11 for x>2x \gt 2. What do you draw at x=2x = 2?

Composition of functions

(f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)): apply gg first, then feed the result into ff.

CompositionFormula sheet →
(f∘g)(x)=f(g(x))(f \circ g)(x) = f\big(g(x)\big)
gg
the inner function, applied first
ff
the outer function, applied to g's output

Use it when one quantity depends on a second, which depends on a third, such as cost in TL from cost in dollars from output.

Worked example · Composing cost with a conversion0/7

Cost in US dollars is C(x)=500+2xC(x) = 500 + 2x for xx units, and 1 USD = 34 TL, so T(C)=34CT(C) = 34C. Find the cost in TL of 300 units.

Check your understanding

If f(x)=x2f(x) = x^2 and g(x)=x+3g(x) = x + 3, what is (f∘g)(2)(f \circ g)(2)?

Inverse functions

If y=f(x)y = f(x), the inverse gives x=f−1(y)x = f^{-1}(y). Solving a demand function for xx gives quantity as a function of price.

Inverse functionFormula sheet →
f−1(f(x))=xf^{-1}\big(f(x)\big) = x
f−1f^{-1}
the inverse of f, which exists only where f is one-to-one

Use it when a demand or supply function is solved for one variable and you need it solved for the other.

Worked example · Inverting a demand function0/8

Demand is p=D(x)=200−4xp = D(x) = 200 - 4x. Find quantity as a function of price.

Exam practice

Exam question 1

Find the domain of f(x)=x−1x−5f(x) = \dfrac{\sqrt{x - 1}}{x - 5}.

Exam question 2

A firm's revenue is R(x)=60x−0.1x2R(x) = 60x - 0.1x^2. What is R(50)R(50)?

Exam question 3

A phone plan costs 100 TL for up to 10 GB, plus 15 TL for each GB beyond 10. Which function gives the cost for xx GB?

Exam question 4

f(x)=3x−1f(x) = 3x - 1 and g(x)=x2g(x) = x^2. Find (f∘g)(4)(f \circ g)(4).

Exam question 5

f(x)=2x2−5f(x) = 2x^2 - 5. Simplify f(x+h)−f(x)h\dfrac{f(x+h) - f(x)}{h}.

Exam question 6

f(x)=x2f(x) = x^2 if x≤1x \le 1, and f(x)=4−xf(x) = 4 - x if x>1x \gt 1. Find f(−2)+f(1)+f(3)f(-2) + f(1) + f(3).

Exam question 7

Sketch y=−∣x−1∣+3y = -|x - 1| + 3. Which description is right?

Exam question 8

For the piecewise function in the diagram (x+2x + 2 for x<0x \lt 0, x2x^2 on [0,2][0, 2], 1 for x>2x \gt 2), what is the range?

Summary and review

Review deck · 15 cards0/15 mastered