25
577/6553 Mathematical Methods / General Mathematics G 2014/s1 Lecture 2 Functions 2 Dr Peter Vassiliou Week 2 MMeths/GMG 2014/s1, Lecture 2 p.1

MM Lecture 2 Blank 2014

Embed Size (px)

Citation preview

Page 1: MM Lecture 2 Blank 2014

577/6553 Mathematical Methods / General Mathematics G 2014/s1

Lecture 2Functions 2

Dr Peter Vassiliou

Week 2

MMeths/GMG 2014/s1, Lecture 2 p.1

Page 2: MM Lecture 2 Blank 2014

The straight line - (sec. 1.1)In the USA they use the Fahrenheit temperature scale and inAustralia we use Celsius. What is the relationship?

Its a “straight line relationship”!

The formula expressing degrees Fahrenheit (F) as a function ofdegrees Celsius (C) is

F(C) =95

C+32.

Graph looks like:

MMeths/GMG 2014/s1, Lecture 2 p.2

Page 3: MM Lecture 2 Blank 2014

C0 20 40 60 80 100

F

0

50

100

150

200

F as a function of C

MMeths/GMG 2014/s1, Lecture 2 p.3

Page 4: MM Lecture 2 Blank 2014

The straight lineIn this example and in others the relationship is given by alinear model. i.e. F(C) = mC+b. More generally f (x) = mx+bor y = mx+b. The graph of such a function is always a straightline.

Number m is said to be the slope or gradient of the line.Number b is the y-intercept.

Example: f (x) = 2x−1

MMeths/GMG 2014/s1, Lecture 2 p.4

Page 5: MM Lecture 2 Blank 2014

The equation of a lineThe slope of a straight line passing through the points A(x1,y1)& B(x2,y2) is “vertical rise over horizontal run”

m =y2− y1

x2− x1

Example. What is the equation of the straight line containingpoints A(−1,2) and B(2,3)?

MMeths/GMG 2014/s1, Lecture 2 p.5

Page 6: MM Lecture 2 Blank 2014

Exercises with lines

Find the equation of the line with slope 2 and that goesthrough the point (1,3).

Find the equation of the line containing points A(2,3) andB(4,7).

MMeths/GMG 2014/s1, Lecture 2 p.6

Page 7: MM Lecture 2 Blank 2014

Parallel lines

The lines y = mx+b and y = nx+a are parallel if and only ifm = n.

Find a line parallel to y = 3x+2 that passes through thepoint (2,2).

MMeths/GMG 2014/s1, Lecture 2 p.7

Page 8: MM Lecture 2 Blank 2014

The lines y = mx+b and y = nx+a are perpendicular if andonly if mn =−1.

Find the line perpendicular to y = 2x+3 that passesthrough the point (1,2).

MMeths/GMG 2014/s1, Lecture 2 p.8

Page 9: MM Lecture 2 Blank 2014

InterceptsThe x-intercepts are the points where the graph crosses the xaxis.

Given a function, how can we find the x- intercepts?

MMeths/GMG 2014/s1, Lecture 2 p.9

Page 10: MM Lecture 2 Blank 2014

The y-intercepts are the points where the graph crosses the yaxis.

If we have a function, how can we find the y-intercepts?

MMeths/GMG 2014/s1, Lecture 2 p.10

Page 11: MM Lecture 2 Blank 2014

Exponential Function - (sec. 2.1)An exponential function is a function of the form: y = f (x) = bx

where b > 0 and b 6= 1.

Are the following exponential funtions?3x, 5x, x2

MMeths/GMG 2014/s1, Lecture 2 p.11

Page 12: MM Lecture 2 Blank 2014

Graph of an exponential functionWhat is the domain and range of an exponential function?If b > 1: for example, f (x) = 2x

If 0 < b < 1: for example, g(x) = (12)

x

MMeths/GMG 2014/s1, Lecture 2 p.12

Page 13: MM Lecture 2 Blank 2014

Exponential function rulesLet b > 0. Then for all x,y

1 bx.by = bx+y

2 bx

by = bx−y

3 (bx)y = bx.y

4 (b.c)x.= bx.cx

MMeths/GMG 2014/s1, Lecture 2 p.13

Page 14: MM Lecture 2 Blank 2014

(bc )

x = bx

cx

b1 = b

b0 = 1

b−x = 1bx = (1

b)x

MMeths/GMG 2014/s1, Lecture 2 p.14

Page 15: MM Lecture 2 Blank 2014

One-to-One FunctionsWe say that a function is one-to-one if and only if for eachdifferent input gives different outputs.

Example f (x) = x3 is one-to-one

Example f (x) = x2 is not one-to-one if the domain of f is−a < x < a for any a > 0.

MMeths/GMG 2014/s1, Lecture 2 p.15

Page 16: MM Lecture 2 Blank 2014

Horizontal Line TestIf we have a graph of a function, the horizontal line test can tellus if the function is one-to-one.

Horizontal Line Test(a) If there is a line parallel to the x-axis (a horizontal line),that cuts the graph at least in two points, then the functionis not one-to-one.(b) If each horizontal line cuts at most in one point of thegraph, then the function is one-to-one.

MMeths/GMG 2014/s1, Lecture 2 p.16

Page 17: MM Lecture 2 Blank 2014

Inverse functionsGiven a function f (x) where for each input we get an output, theinverse function of f is a function f−1, that for each output (fromf ) gives us an input from f .

Example. Degrees Fahrenheit (F) as a function of degreesCelcius (C): F = 9

5C+32. What if we know the degreesFahrenheit and we want degrees Celsius? Then we computethe inverse of the function C 7→ 9

5C+32.

MMeths/GMG 2014/s1, Lecture 2 p.17

Page 18: MM Lecture 2 Blank 2014

Example. What is f−1 if f (x) = 95 x+32?

Example. What is f−1 if f (x) = 1x −1?

Do all the functions have an inverse?

MMeths/GMG 2014/s1, Lecture 2 p.18

Page 19: MM Lecture 2 Blank 2014

Theorem: A function has an inverse if and only if the function isone-to-one.This means

If a function has an inverse then it is one-to-one.If a function is one-to-one then it has an inverse.

MMeths/GMG 2014/s1, Lecture 2 p.19

Page 20: MM Lecture 2 Blank 2014

If we have a function that is not one-to-one (therefore it doesn’thave an inverse), we can reduce its domain enough, so thefunction becomes one-to-one.

MMeths/GMG 2014/s1, Lecture 2 p.20

Page 21: MM Lecture 2 Blank 2014

Graph of f−1

If we have the graph of f (x) we can graph f−1(x). The graph off−1(x) is the reflexion of f (x) respect the line y = x.

Definition. The range of a function is the set of all its outputs.

range of f = domain of f−1

domain of f = range of f−1

MMeths/GMG 2014/s1, Lecture 2 p.21

Page 22: MM Lecture 2 Blank 2014

Examples.

MMeths/GMG 2014/s1, Lecture 2 p.22

Page 23: MM Lecture 2 Blank 2014

Logarithmic functions - (sec. 2.2)The inverse of the exponential function is the logarithm function.

Definition: y = loga x if and only if x = ay.

ie. y = loga x is the inverse function of y = ax and the functiony = ax is the inverse of y = loga x.

MMeths/GMG 2014/s1, Lecture 2 p.23

Page 24: MM Lecture 2 Blank 2014

Examples:

1 log2 x = 4, what is x?

2 loge(x+1) = 7, what is x?

3 log3(127) = y, what is y?

MMeths/GMG 2014/s1, Lecture 2 p.24

Page 25: MM Lecture 2 Blank 2014

How to graph the logarithm function?What is its domain and range? If a > 1, for example, y = log2 x

If 0 < a < 1, for example, y = log 12

x

MMeths/GMG 2014/s1, Lecture 2 p.25