810 likes | 995 Views
ACS123 Functions. Dr Viktor Fedun Automatic Control and Systems Engineering, C09 Based on lectures by Dr Anthony Rossiter. Why is mathematics important?. Why do engineers need to be good at mathematics? Is it sufficient to memorise key results?
E N D
ACS123Functions Dr Viktor Fedun Automatic Control and Systems Engineering, C09 Based on lectures by Dr Anthony Rossiter
Why is mathematics important? Why do engineers need to be good at mathematics? Is it sufficient to memorise key results? Just because a learning technique worked at school, does that make it the best method now? What mathematics do I need to be good at?
Mathematics is a tool-kit A good engineer: • knows which is the best tool to use? • Is proficient in using the tool? • Can adapt the tool to a new use. It is not good enough to memorise key results as the most important skill is abstraction. You must put your effort into understanding.
Module assessment • 3 in class tests in weeks 4, 7, 11, 13 These will be similar to exam questions. • An exam in May or June If you want feedback on an answer you have done, ask in a tutorial. 20 credit module, similar pattern in semester 2.
Module organisation I will teach the first semester Lectures and tutorials Of the 5 timetabled hours, 2-3 will be used for lectures (these times may vary each week).
MOLE Please use the discussions board to ask questions. Then everyone can see the question and answer. I will not respond to email queries unless of a personal or private nature.
Resources Learning is only effective where students engage in self-discovery. • What you hear, you will usually forget. • You only really understand something when you use it. • We will provide ample materials, but YOU will only learn if you use these properly. [5-6 hours per week] Lecturers are here to guide – NOT TO TEACH! We will answer queries and be as helpful as possible, but only you can do the work.
Be a function Stand up. • Use your arms to illustrate y=x. • What about y=-x? • Can you do y=x2, or even x3. • What about sine(x) – you may need a partner. Now do cosine(x). • Can you y=mod(x)? Or even y=sqrt(x2)? • Can you think of any more?
Common functions • sine, cosine, tangent (and their inverses) • logarithm, exponential • sinh and cosh • straightline, quadratic, general polynomial • combinations of above as products, composites and fractions. You should be familiar with shapes of common functions and be able to sketch quickly.
Example 1 (Page 136, Kuldeep and Singh, Example 3) [Mechanics] The displacement, φ(t), of a particle at time t is given by: φ(t)= 2t3 +t2 - 10t + 10 • Evaluate φ(2), φ(3), φ(5). • Find simplified expressions for: (i) φ(t2) (ii) φ(t + 1)
Example 1 Solution Solution: • We have • φ(2) = (2 x 23) + 22 – (10 x 2) + 10 = 10 • φ(3) = (2 x 33) + 32 – (10 x 3) + 10 = 43 • φ(5) = (2 x 53) + 52 – (10 x 5) + 10 = 235
Example 1 Solution (b) (i) For φ(t2) we replace the t with t2 in φ(t)= 2t3 +t2 - 10t + 10: φ(t2) = 2(t2)3 +(t2)2 – 10(t2) + 10 = 2t6 +t4 – 10t2 + 10 (ii) For φ(t + 1) we replace t with t+1 in φ(t)= 2t3 +t2 - 10t + 10: φ(t+1)= 2(t+1)3 +(t+1)2 – 10(t+1) + 10:
What is a function? • A rule which translates an input, usually to a single output. • What are the functions for: • Double the input • Shift the input by 3 • Cube the input and subtract 1. • Write down in words the functions for
What variables can a function have? What is the difference between the functions f(x), g(w), h(y) and k(x) A function describes a relationship, the variable names are unimportant. Engineers typically use variable names that relate to the topic: W for weight, h for height, L for length, etc.
What is a function argument? The part that appears in the brackets; • For y=f(x), x is the argument. • For z=g(w), w is the argument. Thus argument is another word for the input to the function. Independent and dependent variables: what do you think these are? Use common sense.
Composition of functions What do the following statements mean?
Evaluate the following Find y when x=pi/2. Find w when z=1.
Function products Evaluate A given that: A = y2h with x=2 and z=3 Write down a detailed function expression to express A.
Example 2 (Page 152 Kuldeep Singh, Example 16) [Reliability Engineering] The failure density function, f(t), for a component is given by: f(t) = 1/8 where 0 < t < 8 years. Find F(t), R(t) and h(t) where these are defined as: F(t) = tf(t) (Failure Distribution function) R(t) = 1-F(t) (Reliability function) h(t) = f(t) / R(t) (hazard Rate function) and 0 < t < 8 years.
Example 2 (Page 152 Example 16) Solution We have: F(t) = tf(t) = t(1/8) = t/8. R(t) = 1-F(t) = 1- t/8 h(t) = f(t) / R(t) = (1/8)/(1-t/8) = 1/(8-t)
Graphs and sketching By first producing a suitable table, sketch the graphs of the following functions in the domain -3 to 3. Domain is the values allowed to the argument or independent variable. Range is the values the output (dependent variable) can take. What is the range of these?
Example 3 (Page 110 Example 7) [Fluid Mechanics] The streamlines of fluid flow are given by: y = x2 + c where c is constant. Sketch the streamlines for c = 0, -1 ,1, -2, 2, -3 and 3.
Example 3 (Page 110 Example 7) Solution The graphs of y = x2 + c for c = 0, -1 ,1, -2, 2, -3 and 3 are: (c=0) y = x2 (c=-1) y = x2 - 1 (c=1) y = x2 + 1 (c=-2) y = x2 -2 (c=2) y = x2 +2 (c=-3) y = x2 – 3 (c=3) y = x2 + 3
y c = 3 c =2 c =1 c =0 c =-1 3 c =-2 2 c =-3 1 1 -2 -1 2 0 x -1 -2 -3 Notice how the graph of y=x2 + c varies as c changes. The c is where the curve cuts the y axis.
Inverse function mean that all we’ve done is made a switch in emphasis
Inverse function mean that all we’ve done is made a switch in emphasis 7 – 4 = 3 3 + 4 = 7
Inverse function mean that all we’ve done is made a switch in emphasis 7 – 4 = 3 3 + 4 = 7 Both of this statements say the same thing, but with a change in emphasis
Inverse function mean that all we’ve done is made a switch in emphasis 7 – 4 = 3 3 + 4 = 7 Both of this statements say the same thing, but with a change in emphasis
Inverse function mean that all we’ve done is made a switch in emphasis 7 – 4 = 3 3 + 4 = 7 Both of this statements say the same thing, but with a change in emphasis -1
Inverse function example y=2x-7; y=f(x)=2x-7
Inverse function example y=2x-7; y=f(x)=2x-7 Identity function
Inverse function example y=2x-7; y=f(x)=2x-7 Identity function and If inverse function
Inverse function example y=2x-7; y=f(x)=2x-7 Identity function and If inverse function Composition of functions
Inverse function -1 f f -1 A function f and its inverse f . Because f maps 1 to 4, the inverse f maps 4 back to 1. -1
One to one function For every value of x, there is a distinct value of y and for every value of y there is a distinct value of x. Which of the following is one to one? Draw the graph and it should be obvious.
Inverse function What about? Proof
Inverse functionexample Sometimes the inverse of a function cannot be expressed by a formula with a finite number of terms. For example, if f is the function -1 then f is one-to-one, and therefore possesses an inverse function f . The formula for this inverse has an infinite number of terms:
Many-to-one and one-to-many Give some examples of many-to-one and one-to-many functions. The logic goes from independent variable to dependent variable.
Notation Get into groups and decide three example functions with the following properties [3 for each item]. • Continuous • Discontinuous • Periodic (Why are these important?) • Odd • Even
Summary Independent variable (domain) Dependent variable (range) Function Many-to-one (one-to-one,…) Odd, even, periodic Inverse function Continuous/discontinuous Composite function Straight lines
Exponential functions On some rough paper, do a sketch of the following functions. In what sense are the functions equivalent? With a suitable rescaling of x, they are all the same shape. Functions of this form are called exponentials.
Exponential properties If you double the value of the independent variable, you square the value of the dependent variable. There is a constant ratio which depends solely on the difference of the argument: For all x!
Exponential properties Exponentiation is not commutative 4 5 4 + 5 = 5 + 4 4 * 5 = 5 * 4 but 4 = 5 256 = 625
Exponential properties Exponentiation is not commutative 4 5 4 + 5 = 5 + 4 4 * 5 = 5 * 4 but 4 = 5 256 = 625 Exponentiation is not associative (2 + 3) + 4 = 2 + (3 + 4) (2 * 3) * 4 = 2 * (3 * 4) 4 4 ( ) 3 3 ( ) 2 = 2.417.851.639.229.258.349.412.353 2 = 4096 but