Topic 2 - Functions - Student2023
Topic 2 - Functions - Student2023
Topic 2
Functions
2.1 Definition of Functions
Learning Outcomes
Define a function and its various components
1
(independent variable, dependent variable, domain, range)
2 Apply the vertical line test to determine if a graph represents a function or not
Each input must be matched with exactly one output. It's ok if there's
another input that gives the same output. For example, there might be
two slots in the vending machine that both hold the same flavour of
Input candy.
Output
✓ X
Components a Function
The first variable (x) is
called the independent
variable.
x y = f(x) The second variable (y) is
called the dependent
variable.
f +1
1 2
+1
2 3
+1
The complete set of 3 4 The complete set of
possible values of the possible values of the
independent variable (x) is dependent variable (y) is
y = f(x) = x + 1
called the domain of the called the range of the
function. function.
Representations of Functions
Equation Mapping Table Graph Set of Ordered Pairs
Polynomial Logarithmic
f (x) = 2x4 + 3x2 + 5 f (x) = 3 ln x
Exponential Trigonometric
f (x) = 3e2x f (x) = 2 sin x + 4 cos2 2x
f x = 5x 2 − 2x f x = 3x 2 − 4x + 5 f x = 3 cos 2x
P = 0.052T
2
Determine the domain of f x = .
ln x + 2
Topic 2
Functions
2.2 Composite and Inverse Functions
Learning Outcomes
1 Determine composite functions
For example,
f(x) = 2x − 1 g(x) = x2 + 3
fg x = f 𝐠 𝐱
f(x) = 2x − 1 g(x) = x2 + 3
= f 𝐱𝟐 + 𝟑
= 2 𝐱𝟐 + 𝟑 – 1
= 2x2 + 6 – 1
= 2x2 + 5
Composite Functions
Example 1
Given that f(x) = 2x − 1 and g(x) = x2 + 3 , find the composite function gf(x).
gf(x) = g 𝐟 𝐱 = g 𝟐𝐱 − 𝟏
g(x) = x2 + 3 f(x) = 2x − 1
= 𝟐𝐱 − 𝟏 2 + 3
= 4x 2 − 4x + 1 + 3
= 4x 2 − 4x + 4
fg x ≠ gf(x)
Composite Functions
Example 2
Given that 𝐟(𝐱) = 𝐱 and 𝐠(𝐱) = 𝐱 + 𝟑, find the expressions for fg(x) and gf(x). State the domain and
range of the composite functions.
x+3≥0 x≥0
x ≥ −3
fg(x) = f 𝐠 𝐱 = f 𝟑𝐱
= sin 2 𝟑𝐱 + 1
= sin(6x + 1)
fg(1) = sin 6 1 + 1
= sin 7
= 0.65699
≈ 0.657 (3. s. f. )
Composite Functions - Practice
The number N of bacteria in a refrigerated food is given by
where T is the temperature of the food in degrees Celsius. When the food
it removed from refrigeration, the temperature of the food is given by
𝑇 𝑡 = 4t + 2, 0≤𝑡≤3
where t is the time in hours.
(a) Find N(T(t)). (b) Find the time when the bacterial count
reaches 2000.
One-One Functions (Horizontal Line Test)
For every value of x, there is one and only one corresponding value of y.
For every value of y, it is result of one and only one value of x.
x f
y f-1
x x y = f(x)
f +1
f(x)= x2 f-1(x) = 𝒙 1 2
x y= x2 x –1
f-1 +1
2 3
Note: –1
f −1 x ≠ f x −1 ‼! +1
1
i.e. f −1 x is NOT the same as 𝑓 x !!! 3 4
–1
y = f(x) = x + 1
x = y – 1 ➔ f-1(x) = x – 1
Inverse Functions: f-1(x)
Example 1
Steps to find inverse function, f-1 (x) : Given that f(x) = 2x + 1.
Find the following:
1. Check if f(x) is one-one or define domain (a) f −1 (x)
where f(x) is one-one (b) f −1 (3)
x−1
2. Let f(x) = y and solve the given equation for (a)Let f(x) = y (b) f −1 x =
2
x (i.e. x is on the LHS of the equation and all
other terms on the RHS) y = 2x + 1 3−1
y − 1 = 2x f −1 3 =
y−1 2
3. Replace x with f-1 (x) and replace y with x 2
x = =
2 2
=1
x−1
Note: ∴ f −1 x =
f −1 x ≠ {f x }−1 ‼! 2
1
i.e. f −1 x is NOT the same as !!! Replace x on LHS with f-1(x) and
𝑓 x
replace y on RHS with x
Inverse Functions: f-1(x)
Example 2 Example 3
f(x) = x2 – 1 is not a one-one function. f x = x 3 + 3 is a one-one function. Find
Restrict the domain such that it is one-one and the inverse function of f(x) i.e. f −1 (x).
the range is not affected. Find 𝑓 −1 (1) of the
restricted function. Let f(x) = y
Restricted domain: x ≥ 0 y = 𝑥3 + 3
Let f(x) = y y − 3 = x3
x = 3 𝑦−3
y = x2 − 1
y + 1 = x2 3
∴ f −1 x = 𝑥−3
x = y+1
∴ f −1 x = x + 1
f −1 1 = 1 + 1
= 2 ≈ 1.41 (3. s. f. )
Inverse Functions: f-1(x)
Practice
f x = 3x 2 – 4, x ∈ R .
(a) Explain why f(x) does not have an inverse if its domain is x ∈ R.
(b) State the restricted domain of f x for it to have an inverse.
(c) By restricting the domain or otherwise, determine f −1 x .
Inverse Functions: f-1(x) – Application
TF TC = 1.8 TC + 32
(𝑓 𝑥 = 1.8 𝑥 + 32)
f f −1 x =x
f −1 f x =x
Example 1
Given that f x = ln x , prove that f(f −1 (x)) = x.
If f x = ln x
f −1 x = ex
f(f −1 (x)) = ln(ex ) = x
Relation between composite & inverse functions
−𝟏
The inverse function of f −1 x is f x . i.e., 𝐟 −𝟏 𝐱 = 𝐟(𝐱).
Example 2
Given that f(x) = x3. Prove that inverse function of f −1 (x) is f(x).
Example 3
Given that f x = 2x + 3 and g x = x 2 , prove the relationship fg −1
(x) = g −1 (f −1 x ).
f g x = 2 x 2 + 3 = 2x 2 + 3 Let y = f x Let y = g x
Let y = f(g x ) y = 2x + 3 y = x2
y = 2x 2 + 3 y − 3 = 2x x= y
y−3
y − 3 = 2x 2 x= ∴ g −1 x = x
2
x−3
y−3 ∴ f −1 x =
= x2 2
2
y−3 x−3 −1 −1 −1
x−3 x−3 −1
x= ⇒ ∴ fg −1 x = ∴g f x =g = = fg x
2 2 2 2
Mathematics for Applied Science (MAS)
Topic 2 y
Functions
x
2.3 Graphs of Linear Functions
Learning Outcome
Sketch linear graphs and determine important parameters such as gradient and y
1
intercept from the sketched graph
Graphs of Linear Functions
∆y
m=
∆x
∆y
Topic 2
Functions
2.4 Quadratic Graphs
Learning Outcomes
Sketch quadratic graphs with important parameters such as y-intercept, x-
1
intercepts and minimum/maximum point
Determine the minimum and maximum point of a quadratic equation using the
2
Complete the Square method
Quadratic Graphs
Quadratic functions have the following form:
f(x) = ax 2 + bx + c (a ≠ 0)
The shape of the graphs for quadratic functions is determined by the value of a.
𝐟 𝐱 = 𝐱𝟐 𝐟 𝐱 = −𝟑𝐱 𝟐 + 𝟔𝐱 + 𝟓
a > 0: ☺(minimum point, U) a < 0: (maximum point, ∩)
Determining the Minimum & Maximum Points
There are 2 methods for determining the minimum and maximum points of a quadratic equation:
dy
1. Differentiation method, i.e. = 0 (Topic 4)
dx
b 2
f x = ax 2
+ bx + c We know that x +
2a
≥ 0, and by
b 2
b taking x + = 0, the maximum
= a x2 +
2a
x +c or minimum value of f(x) is always
a given by the numerical value of the
2 2 b2
2
b b b term c −
4a
.
=a x +2 x+ +c −a
2a 2a 2a
Recall expansion of quadratic
𝟐
𝐛 𝐛𝟐 functions:
=𝐚 𝐱+ +𝐜− x 2 + 2px + p2 = x + p 2
𝟐𝐚 𝟒𝐚
a > 0: ☺ (minimum point, U) b2
a < 0: (maximum point, ∩) minimum or maximum value of f x = c −
4a
b
x+ =0
2a
b
x=− is the x value at which the min or max of f x occurs
2a
Sketching Quadratic Graphs
1. y-intercept, c 3. minimum / maximum points
• when x = 0, i.e. substitute x = 0 into the • a > 0: ☺ (minimum point, U)
quadratic equation and solve for y = f(x). b b2
x= − 2a y=c−
• y = f(x) = ax2 + bx + c = a(0)2 + b(0) + c = c 4a
b 3 3
x=− =− =−
2a 2 2 4
b2 3 2 9 23
y=c− =4− =4− =
4a 4 2 8 8
- 0,4
23
∴ minimum value of f x = x
8 3 23
3 23 − ,
4 8
∴ minimum point of the graph is at − ,
4 8
Sketching Quadratic Graphs
Example 2 Check discriminant:
D = b2 − 4ac = 6 2 − 4 −3 5 = 36 − −60 = 96 > 0
Determine the maximum or minimum value of Since D > 0, there are two x − intercepts.
the following function, and hence sketch the
graph of the function. −b ± b 2 − 4ac −6 ± 62 − 4(−3)(5)
x= = = −0.633 or 2.633
f x = −3x 2 + 6x + 5 2a 2(−3)
The x − intercepts are: −0.633,0 and 2.633,0 .
a = −3 < 0, maximum point
1,8
b 6 x
x=− =− =1
2a 2 −3
b2 6 2 36 - 0,5
y=c− =5− =5− =8
4a 4 −3 (−12)
∴ maximum value of f x =8
∴ maximum point of the graph is at 1,8 −0.633,0 2.633,0
x x
y − intercept, c =5 ⇒ coordinates (0,5)
Sketching Quadratic Graphs
Practice
Determine the maximum or minimum value of the following function, and hence sketch the graph of the
function.
f x = 2x 2 − 8
Sketching Quadratic Graphs - Application
50, 12.5
The logistic equation gives the instantaneous ∆N = − 0.5 0.01 N 2 + 0.5 N ∆N x
rate of change of a population (∆N) as = −0.005N 2 + 0.5N
[𝑦 = −0.005𝑥 2 + 0.5𝑥] 0, 0 N
∆N = r 1 − αN N = −rαN + rN 2 x x
100, 0
a = −0.005 < 0, maximum point
where
• r > 0 is the growth rate of the population in b 0.5
x=− =− = 50
the absence of intraspecific competition 2a 2 −0.005
• α > 0 is the per individual effect of x
competition b2 0.5 2
y=c− =0− = 12.5
• ∆N represents the rate at which the 4a 4 −0.005
population is growing / decaying at any
instant in time ∴ maximum value of f x = 12.5
• N is the population size ∴ maximum point of the graph is at 50, 12.5
Topic 2
Functions
2.5 Apply the Linear Law to non-linear equations for coefficient
determination
Learning Outcomes
1 Apply straight-line fitting to non-linear data
2 Determine the coefficients of the fitted straight line for the non-linear data
Fitting Non-Linear Equations
With some nonlinear equations you can still use straight-line fitting if you plot the data in a suitable manner.
Suppose, for example, that 𝑥 and 𝑦 are related by the equation y 2 = a𝑥 3 + 𝑏 . A plot of measured 𝑦 versus 𝑥
data would clearly be curved; however, a plot of 𝑦 2 versus 𝑥 3 would be a straight line with a slope and intercept .
𝑦 versus 𝑥 y 2 = 2𝑥 3 + 10 𝑦 2 versus 𝑥 3
Fitting Non-Linear Equations
In general, if any two quantities are related by an equation of the form
(Quantity 1) = m (Quantity 2) + c
then a plot of the first quantity versus the second on rectangular coordinates yields a straight line with slope, m
and intercept, c .
Plot y vs. x 2 Plot y 2 vs. 1/x Plot 1/y vs. (x + 3) Plot sin(y) vs. (x 2 − 4)
When sufficient time has elapsed for the concentration to drop to 0.01 g/L, the contents of the tank are then
discharged into a river that passes by the plant.
What plot would yield a straight line that would enable you to determine the parameters a and b?