04 - Elementary Functions - DT
04 - Elementary Functions - DT
COMP4001
Elementary Functions
Elementary Functions
Learning Outcomes
Propositional Logic
Elementary Functions
Topics to be covered
ØLinear functions
ØQuadratic functions
ØExponential functions
ØLogarithmic functions
Ø Trigonometric functions
Propositional Logic
Elementary Functions
Linear Function
y = mx +c where,
m,c are real numbers (m,c ∈ ℝ)
m = gradient/ slope of the line
c = y-intercept
Eg:
Propositional Logic
Elementary Functions
Sketch these graphs
1) m>0, c>0
2) m>0, c=0
3) m>0, c<0
4) m<0, c>0
5) m<0, c=0
6) m<0, c<0
Propositional Logic
Elementary Functions
Quadratic Function
Propositional Logic
Elementary Functions
Sketch these graphs
1) a>0, b2 – 4ac >0, I) c>0 II) c=0 III) c<0
2) a>0, b2 – 4ac =0, I) c>0 II) c=0 III) c<0
3) a>0, b2 – 4ac <0, I) c>0 II) c=0 III) c<0
4) a<0, b2 – 4ac >0, I) c>0 II) c=0 III) c<0
5) a<0, b2 – 4ac =0, I) c>0 II) c=0 III) c<0
6) a<0, b2 – 4ac <0, I) c>0 II) c=0 III) c<0
Propositional Logic
Elementary Functions
Sketch these graphs
1) a>0, b2 – 4ac >0, I) c>0 II) c=0 III) c<0
2) a>0, b2 – 4ac =0, I) c>0 II) c=0 III) c<0
3) a>0, b2 – 4ac <0, I) c>0 II) c=0 III) c<0
4) a<0, b2 – 4ac >0, I) c>0 II) c=0 III) c<0
5) a<0, b2 – 4ac =0, I) c>0 II) c=0 III) c<0
6) a<0, b2 – 4ac <0, I) c>0 II) c=0 III) c<0
Propositional Logic
Elementary Functions
Exponential functions
§Exponential Function
Øy = ax where a>0 and a≠1
output input
Propositional Logic
Elementary Functions
Exponential functions
§ Graph of Exponential Function ax when
a>1
Propositional Logic
Elementary Functions
Ex:
• Sketch Exponential Function ax when
0< a< 1
Propositional Logic
Elementary Functions
Exponential functions
x
y=a
§ Properties of exponential function
Ø az+c = az ac
Ø a0 = 1
Ø a-bx = 1/ abx
Propositional Logic
Elementary Functions
Logarithmic function
Propositional Logic
Elementary Functions
Logarithmic functions
Propositional Logic
Elementary Functions
Logarithmic functions
Propositional Logic
Elementary Functions
Relationship between exponential and
logarithmic functions
Domain =
Range =
Propositional Logic
Elementary Functions
Logarithmic functions
§Graph of logarithm when a>1
Propositional Logic
Elementary Functions
• Sketch Logarithmic Function logax when
0< a< 1
Eg: y= log(1/2)x
y= log0.25x
Propositional Logic
Elementary Functions
Logarithmic functions
ØCommon logarithm
Øbase is always 10
Øif no base is explicitly indicated, base 10 is
implied
Ølog x= lg x= log10x
ØNatural logarithm
Øbase is always 2.718281828
Øbase is usually indicated as e
Øusually indicated as ln x= logex
Propositional Logic
Elementary Functions
Logarithmic functions
Propositional Logic
Elementary Functions
Propositional Logic
Elementary Functions
S
l
i
d
e
2
2
o
§ Laws of logarithms
f ØFirst law
2
1 logb(A x B) = logbA + logb(B)
Eg: log7(10 x 5) = log710+ log75
NOTE THAT
logbA + logb(B)= logb(A x B)
¹logbA x logbB
Propositional Logic
Elementary Functions
S
l
i
d
e
2
3
o
f
2
æAö
1 log ç ÷
bè B ø
Propositional Logic
Elementary Functions
S
l
i
d
e
2
4 Ø Third Law
o
f ( the log of a number raised to a power p
2
1
is the same as p times the log)
logbAp = p x logbA
Propositional Logic
Elementary Functions
Trigonometry functions
§Introduction
Ø Radian measure vs. degree measure
Ø units used to measure an angle
Ø p radian = 1800
Propositional Logic
Elementary Functions
Trigonometry functions
§ Evaluation of Trigonometric functions
Consider the triangle with sides of length a>0, b>0 and
hypotenuse c>0 as in Figure below:
Propositional Logic
Elementary Functions
Trigonometry functions
Øthen Cosec q
Sec q
opposite
Øsin q = Cot q
hypotenuse
adjacent
Øcos q =
hypotenuse
opposite
Ø tan q = adjacent
Propositional Logic
Elementary Functions
Trigonometry functions
Quadrant sin cos tan 1st quadrant
2nd quadrant
1st +ve +ve +ve
2nd +ve -ve -ve
3rd -ve -ve +ve
4th quadrant
4th -ve +ve -ve 3rd quadrant
Propositional Logic
Elementary Functions
Quadrant sin cos tan
1st +ve +ve +ve
2nd +ve -ve -ve
3rd -ve -ve +ve
4th -ve +ve -ve
§Graphs of trigonometry functions
Ø Sine function
Propositional Logic
Elementary Functions
ØCosine function
-1 ≤ cos q ≤ 1
Propositional Logic
Elementary Functions
ØTangent function
-∞ ≤ tan q ≤ ∞
Propositional Logic
Elementary Functions
00 300 450 600 900
sin 0 1
cos 1 0
tan 0 1 Not
defined
Propositional Logic
Elementary Functions
Propositional Logic
Elementary Functions
Propositional Logic
Elementary Functions
Quadrant Writing in terms of an
acute angle
1st (all +) q
Propositional Logic
Elementary Functions
Evaluation of trigonometry
functions
• θ= -300
• y= 3x
x goes 1 round means y goes 3
rounds
Propositional Logic
Elementary Functions
Question and Answer Session
Q&A
Propositional Logic
Elementary Functions
What we will cover next
Probability
Propositional Logic
Elementary Functions