ACS123 Functions: DR Viktor Fedun Automatic Control and Systems Engineering, C09
ACS123 Functions: DR Viktor Fedun Automatic Control and Systems Engineering, C09
Functions
Dr Viktor Fedun
Automatic Control and Systems
Engineering, C09
[Mechanics]
The displacement, φ(t), of a particle at time t
is given by:
φ(t)= 2t3 + t2 - 10t + 10
Solution:
(a) We have
y g ( f ( x)); f ( x) x ; g ( x) sin( x)
2
w h( g ( f ( z ))); h( x) x 3;
Evaluate the following
Find y when x=pi/2.
Find w when z=1.
y f ( g ( x)); f ( x) x 2 ; g ( x) sin( x)
w h( g ( f ( z ))); h( x) x 3;
Function products
Evaluate A given that:
A = y2h with x=2 and z=3
y f ( g ( x)); f ( x) x ; g ( x) sin( x)
2
w h( g ( f ( z ))); h( x) x 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)
Solution
We have:
F(t) = tf(t) = t(1/8) = t/8.
[Fluid Mechanics]
y = x2 + c
where c is constant.
Solution
c=3
c=2
c=1
c=0
c = -1
3
c = -2
2
1 c = -3
-2 -1 1 2
0
-1 x
-2
-3
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
y = f (x) x = f (y)
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
y=2x-7; y=f(x)=2x-7
Identity function
Composition of functions
Inverse function
-1
f f
-1
A function f and its inverse f . Because f maps 1 to 4,
-1
the inverse f maps 4 back to 1.
One to one function
For every value of x,
there is a distinct
value of y and for y 4x 2
y x 3x 1
every value of y there 2
is a distinct value of x.
Which of the following is ye x
one to one?
y sin( x)
1
y sin( x) x sin ( y )
y2
y 3x 2 x Proof
3
What about?
1
y sin( x) x cos ( x)
2
Inverse function
example
Inverse function
example
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:
Inverse function
examples
link
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].
1. Continuous
2. Discontinuous
3. Periodic (Why are these important?)
4. Odd
5. Even
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 y1 2 x
y2 3
following functions. x
x
In what sense are the y3 5 2
functions equivalent?
With a suitable rescaling of x,
they are all the same shape.
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
Exponential properties
If you double the value
of the independent f (2 x) [ f ( x)] 2
dependent variable.
There is a constant ratio
which depends solely f (ax)
f ([ a b]x)
on the difference of f (bx)
the argument: For all x!
Exponential properties
Exponential properties
3 4 (34)
but (2 ) = 4096 2 = 2.417.851.639.229.258.349.412.353
Exponential convention
1. When dealing with exponential functions
it is usual to assume the same base –
ALWAYS!
2. The assumed base is `e’.
3. It will become clearer later why `e’ is
chosen because this makes a lot of
common algebra much simpler.
4. `e’ is irrational, but has a value near 2.7
Exponential convention
1. When dealing with exponential functions
it is usual to assume the same base –
ALWAYS!
2. The assumed base is `e’.
3. It will become clearer later why `e’ is
chosen because this makes a lot of
common algebra much simpler.
4. `e’ is irrational, but has a value near 2.7
and more precisely
Common exponential
The most common
functions you will deal
with are:
A positive exponent
y e exp( x)
x
x
gives an increasing y e exp( x)
function with
increasing argument. y (t ) e at
bt
A negative exponent
gives a decreasing
y (t ) e
argument with
exponent.
2
exp(0.2t)
exp(-0.2t)
1.5
0.5
-1 -0.5 0 0.5 1 1.5 2 2.5 3
Exponentials and systems
engineering
The behaviour of real
systems is often
described as an
exponential decay.
at
1. Radioactivity follows a
curve of the form.
r (t ) r (0)e
2. An explosion might be
an increasing function. h(t ) h(0)e ct
f(-x)=f(x)
Examples of even functions
2
Notice symmetry about x=0
1.5
0.5
-0.5 x2-2
cos(x)
-1
sin(x)2
-1.5
-2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
Odd functions
An odd function is one whereby the vertical
axis reverses the value of the function.
In mathematical terms, this means that
f(-x)=-f(x)
Examples of odd functions
Notice asymmetry about x=0
6
x3-2x
4
sin(x)
tan(x)
2
-2
-4
-6
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
Constructing even and odd
functions
Every function can be made up of even and
odd functions. This can make some
engineering problems easier to handle.
EVEN FUNCTIONS ODD FUNCTIONS
f(x)=f(-x) f(x)=-f(-x)
1 1
f ( x) [ f ( x) f ( x)] [ f ( x) f ( x)]
2 2
1 1
f ( x) [ f ( x) f ( x)] [ f ( x) f ( x)]
2 2
Constructing even and odd
functions
EVEN ODD
1 1
f ( x) [ f ( x) f ( x)] [ f ( x) f ( x)]
2 2
1
g ( x) [ f ( x) f ( x)] g ( x)
2
1
h( x) [ f ( x) f ( x)] h( x)
2
EVEN FUNCTIONS ODD FUNCTIONS
f(x)=f(-x) f(x)=-f(-x)
Construct even and odd functions
to make up the following
f ( x) 3x cos( x)
h( z ) sin( z )
3
w
g ( w) w tan 2w e
2
Construct even and odd functions
to make up the following
3x cos( x) cos( x) 3x
sin( z ) sin cos z cos sin z
3 3 3
ew e w e w
e w
w2 tan 2w e w w2 tan 2w
2 2
1
EVEN [ f ( x) f ( x)]
2
USE
1
ODD [ f ( x) f ( x)]
2
Simple rules
• EVEN*EVEN = EVEN
• ODD*ODD = EVEN
• EVEN*ODD=ODD
• EVEN+EVEN=EVEN
• ODD+ODD=ODD
• ODD+EVEN=NEITHER ODD NOR EVEN
e x e x e x e x
cosh x ; sinh x
2 2
Plots of cosh and sinh
4
e x e x e x e x
cosh x ; sinh
0 x
2 2
-1
cosh(x)
-2 sinh(x)
-3
-4
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
Engineering examples of cosh and
sinh
• Some examples taken from the following
book:
– “Engineering Mathematics through
Applications”
• Kuldeep Singh
– Published by: Palgrave MacMillan
– ISBN 0-333-92224-7
Example 1 (Page 251 Example 21)
[Electrical Principles]
A transmission line of length L has voltage V.
At a distance x from the sending end, the
voltage is given by:
[Electronics]
In a semiconductor, a force, F, exerted on an
electron is given by:
F = Qcke-kx/(1+e-kx)2 (*)
Show that
F = Qck/2[1+cosh(kx)]
Show that F = Qck/2[1+cosh(kx)]
Solution:
F = Qcke-kx/(1+e-kx)2 (*)
so F = Qcke-kx/(1 + 2e-kx + e-2kx)
= Qcke-kx / e-kx (ekx + 2 + e-kx)
dt
The solution can be represented in two
similar ways.
at
x Ae Be ; OR
at
x C cosh at D sinh at
Identities
You should be familiar with common
identities using cosh and sinh.
Prove the following:
cosh x sinh x 1
2 2
2. Ellipse a x b y r
2 2 2 2 2
3. Hyperbola x y r
2 2 2
2
1.5
x y 1
2 2 2 x y 1
2 2 2
0.5
x2 y2
0
12
22 0.62
-0.5
-1
-1.5
-2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
Parametric descriptions
x y 1
2 2 2
x cos , y sin
x2 y2
2
2
12
x 2 cos , y 0.6 sin
2 0.6
the sine and cosine functions give a parametric equation for the ellipse
x 2 y 2 12 x cosh t , y sinh t
the hyperbolic sine and hyperbolic cosine give a parametric equation
for the hyperbola
e cos x i sin x
ix
ix
e e
ix
cos( x) cosh ix
2
ix
e e
ix
i sin( x) sinh ix
2