C. Content · Calculus 12: Functions, Limits, Derivatives, Integrals and Their ApplicationsFunctions and Graphs: Parent, Piecewise and Inverse Trigonometric Functions
BC CALC 12: functions and graphs BC CALC 12: piecewise functionsAbout 70 minutes
Learning goals- I can state the domain, range and shape of the parent functions listed for Pre-calculus 12.
- I can evaluate, graph and write piecewise functions, including absolute value as a piecewise function.
- I can evaluate inverse trigonometric functions using their restricted ranges, in radians.
Words to know
parent function
The simplest function of a family, such as y = x^2 for all quadratics. Others come from it by transformations.
piecewise function
A function defined by different rules on different parts of its domain.
domain and range
The domain is the set of allowed inputs; the range is the set of outputs.
inverse trigonometric function
A function such as arcsin x that gives the angle (in a restricted interval) whose sine, cosine or tangent is x.
radian
The angle that cuts off an arc equal to the radius. A full turn is 2pi radians, so pi radians = 180 degrees.
Why start with functions?
Calculus is the mathematics of change. Before we can ask how fast something changes, we need to describe it, and functions are how we do that. The B.C. Calculus 12 content starts with functions and graphs: the parent functions from Pre-calculus 12, piecewise functions and inverse trigonometric functions.
Knowing the shape of each parent graph by heart pays off all year. When you see y = 3sqrt(x - 2) + 1, you should picture the square root curve moved right 2 and up 1 and stretched by 3, before doing any algebra.
| Parent function | Equation | Domain | Range | Key feature |
|---|
| Linear | y = x | all real x | all real y | constant slope 1 |
| Quadratic | y = x^2 | all real x | y ≥ 0 | vertex at (0, 0) |
| Cubic | y = x^3 | all real x | all real y | point of symmetry at (0, 0) |
| Absolute value | y = |x| | all real x | y ≥ 0 | sharp corner at (0, 0) |
| Square root | y = sqrt(x) | x ≥ 0 | y ≥ 0 | starts at (0, 0) |
| Reciprocal | y = 1/x | x ≠ 0 | y ≠ 0 | asymptotes x = 0 and y = 0 |
| Exponential | y = b^x (b > 0, b ≠ 1) | all real x | y > 0 | asymptote y = 0, passes (0, 1) |
| Logarithmic | y = log_b x | x > 0 | all real y | asymptote x = 0, passes (1, 0) |
| Sine and cosine | y = sin x, y = cos x | all real x | -1 ≤ y ≤ 1 | period 2pi |
| Tangent | y = tan x | x ≠ pi/2 + k·pi | all real y | period pi, vertical asymptotes |
The parent functions and their key features. In calculus, angles are in radians.Piecewise functions
A piecewise function uses different formulas on different intervals. To evaluate one, first decide which interval the input belongs to, then use only that formula.
On a graph, a closed dot means the endpoint is included and an open dot means it is not. The graph below shows
f(x) = x + 3 if x < -1; f(x) = x^2 if -1 ≤ x ≤ 2; f(x) = 6 - x if x > 2.
Notice the jump at x = -1 (the pieces do not meet) and the smooth join at x = 2 (both pieces give 4). We will use this idea of pieces meeting, or not, when we study continuity.
The piecewise function f. At x = -1 the open dot at (-1, 2) is not on the graph; the closed dot at (-1, 1) is. At x = 2 the pieces meet at (2, 4).Worked exampleExample 1: Evaluating a piecewise function
For the function f above, find f(-3), f(-1), f(1.5) and f(5).
- x = -3 is less than -1, so use x + 3: f(-3) = 0.
- x = -1 is in -1 ≤ x ≤ 2, so use x^2: f(-1) = 1 (the closed dot).
- x = 1.5 is in -1 ≤ x ≤ 2: f(1.5) = 1.5^2 = 2.25.
- x = 5 is greater than 2, so use 6 - x: f(5) = 1.
f(-3) = 0, f(-1) = 1, f(1.5) = 2.25, f(5) = 1
Worked exampleExample 2: Absolute value as a piecewise function
Write g(x) = |2x - 6| without absolute value bars.
- The expression inside, 2x - 6, is zero at x = 3.
- When x ≥ 3, 2x - 6 ≥ 0, so |2x - 6| = 2x - 6.
- When x < 3, 2x - 6 < 0, so |2x - 6| = -(2x - 6) = 6 - 2x.
g(x) = 2x - 6 if x ≥ 3, and g(x) = 6 - 2x if x < 3
Inverse trigonometric functions
Sine is not one-to-one: sin x = 1/2 for x = pi/6, 5pi/6, 13pi/6 and so on. To get an inverse function, we restrict sine to an interval where it takes each value once. The inverse functions give one answer, called the principal value.
The notation sin^(-1) x means arcsin x, the inverse function. It does not mean 1/sin x (that is csc x).
| Function | Domain | Range (the answer is always here) |
|---|
| y = arcsin x (sin^(-1) x) | -1 ≤ x ≤ 1 | -pi/2 ≤ y ≤ pi/2 |
| y = arccos x (cos^(-1) x) | -1 ≤ x ≤ 1 | 0 ≤ y ≤ pi |
| y = arctan x (tan^(-1) x) | all real x | -pi/2 < y < pi/2 |
Restricted ranges of the three main inverse trigonometric functions. The graph of y = arctan x rises from the asymptote y = -pi/2 to the asymptote y = pi/2. Its domain is all real numbers.Worked exampleExample 3: Exact values
Find (a) arcsin(1/2), (b) arccos(-1/2), (c) arctan(-1), (d) arcsin(sin(5pi/6)).
- (a) Which angle in [-pi/2, pi/2] has sine 1/2? pi/6.
- (b) Which angle in [0, pi] has cosine -1/2? The reference angle is pi/3 and cosine is negative in quadrant II: 2pi/3.
- (c) Which angle in (-pi/2, pi/2) has tangent -1? -pi/4.
- (d) sin(5pi/6) = 1/2, and arcsin(1/2) = pi/6, not 5pi/6, because 5pi/6 is outside the range of arcsin.
Radians, always
Set your calculator to radian mode for all of Calculus 12. Derivative rules such as d/dx sin x = cos x are only true when x is in radians.
Hands-on activityDesign a two-step rate
Many bills use piecewise pricing. Suppose (a made-up example, not a real price list) a utility charges $0.10 per kWh for the first 1000 kWh in a billing period and $0.15 per kWh after that.
- Write the cost C(k) for k kWh as a piecewise function. (C(k) = 0.10k if 0 ≤ k ≤ 1000; C(k) = 100 + 0.15(k - 1000) if k > 1000.)
- Find C(800) and C(1400). ($80 and $160.)
- Graph C. Do the pieces meet at k = 1000? Why would a company want them to?
- Look at a real bill at home with an adult and compare its structure.
Just for funPuzzle: with a calculator in radian mode, add arctan 1 + arctan 2 + arctan 3. You get 3.14159..., which is exactly pi. Can you see why? (Hint: draw the three angles on grid paper as slopes 1, 2 and 3.)
Your turn
1State the domain and range of y = sqrt(x - 4) + 1.
Domain x ≥ 4, range y ≥ 1 (the square root curve moved right 4 and up 1).
2g(x) = 2x if x < 1, and g(x) = x^2 + 1 if x ≥ 1. Find g(0), g(1) and g(3).
g(0) = 0, g(1) = 1 + 1 = 2, g(3) = 9 + 1 = 10.
pi/6, since cos(pi/6) = sqrt(3)/2 and pi/6 is in [0, pi].
-pi/4 (in [-pi/2, pi/2]).
6Write |x + 4| as a piecewise function.
x + 4 if x ≥ -4, and -x - 4 if x < -4
7State the range of y = 3 - 2^x.
2^x > 0, so 3 - 2^x < 3. Range: y < 3.
More practice
1Evaluate arcsin(2), or explain why you can't.
Undefined. Sine is never more than 1, so 2 is not in the domain of arcsin.
cos(-pi/3) = 1/2 and arccos(1/2) = pi/3 (the answer must be in [0, pi]).
3h(x) = x^2 if x ≤ 2, and h(x) = k - x if x > 2. Find k so the two pieces meet at x = 2.
Left piece gives 4; right piece gives k - 2. Set k - 2 = 4: k = 6.
4State the domain of y = log(x + 5).
5Find the exact value of cos(arcsin(3/5)).
Let theta = arcsin(3/5), so sin theta = 3/5 with theta in quadrant I. A 3-4-5 triangle gives cos theta = 4/5.
Check your understandingQuiz
1. For f(x) = x + 3 if x < -1, x^2 if -1 ≤ x ≤ 2, and 6 - x if x > 2, what is f(-1)?
3. What does sin^(-1) x mean?
4. What is the domain of y = 1/x?
5. Which is the range of y = arctan x?
For parents and teachersHow to help: Ask your teen to sketch each parent function from memory and name its domain and range; quick sketches are a great warm-up. For piecewise functions, ask: "Which rule applies to this input, and why?"
Common mistakes:
- Using the wrong piece at a boundary (check < versus ≤).
- Reading sin^(-1) x as 1/sin x.
- Giving an inverse trig answer outside the restricted range (for example arcsin(1/2) = 5pi/6).
- Leaving the calculator in degree mode.