Professional Documents
Culture Documents
Week8 ENG1060 Lecture15
Week8 ENG1060 Lecture15
• Engineering
root-finding
examples of
linear algebraic
eqns • ‘Bracketing methods’ for root finding
→ Chemical Eng → Bisection method
→ Electrical Eng → False position method
→ Civil Eng
• Next lecture
• Optimization problems
2
Last Lecture: Newton-Raphson
• Last lecture Let us again consider our problem of deciding the thickness, t,
• Today’s Lecture of the pipe we are going to use to transport oil/gas.
• Engineering
K IC PR
examples of
g (t )
t / 2 Cos t / 2 t
linear algebraic
eqns
→ Chemical Eng
1.50E+08
→ Electrical Eng
• Lecture -5.00E+07 t
summary
-1.00E+08
• Next lecture
-1.50E+08
-2.00E+08
3
Last Lecture: Newton-Raphson
• Last lecture Let us again consider our problem of deciding the thickness, t,
• Today’s Lecture of the pipe we are going to use to transport oil/gas.
• Engineering
examples of
linear algebraic Step 1. Make an initial guess of t, t1
eqns
→ Chemical Eng
t1
1.50E+08
→ Electrical Eng
• What do we 5.00E+07
mean by linear
eqns? 0.00E+00
0 0.05 0.1 0.15 0.2
g(t)
• Lecture -5.00E+07 t
summary
-1.00E+08
• Next lecture
-1.50E+08
-2.00E+08
4
Last Lecture: Newton-Raphson
• Last lecture Let us again consider our problem of deciding the thickness, t,
• Today’s Lecture of the pipe we are going to use to transport oil/gas.
• Engineering
examples of
linear algebraic Step 2. Draw the tangent to g(t) at t1.
eqns
→ Chemical Eng
t1
1.50E+08
→ Electrical Eng
• What do we 5.00E+07
mean by linear
eqns? 0.00E+00
0 0.05 0.1 0.15 0.2
g(t)
• Lecture -5.00E+07 t
summary
-1.00E+08
• Next lecture
-1.50E+08
-2.00E+08
5
Last Lecture: Newton-Raphson
• Last lecture Let us again consider our problem of deciding the thickness, t,
• Today’s Lecture of the pipe we are going to use to transport oil/gas.
• Engineering
examples of
linear algebraic Step 2. Draw the tangent to g(t) at t1.
eqns
Your new guess of t is where the tangent passes through zero
→ Chemical Eng
t 1 t2
1.50E+08
→ Electrical Eng
• What do we 5.00E+07
mean by linear
eqns? 0.00E+00
0 0.05 0.1 0.15 0.2
g(t)
• Lecture -5.00E+07 t
summary
-1.00E+08
• Next lecture
-1.50E+08
-2.00E+08
6
Last Lecture: Newton-Raphson
• Last lecture Let us again consider our problem of deciding the thickness, t,
• Today’s Lecture of the pipe we are going to use to transport oil/gas.
• Engineering
examples of
linear algebraic Step 3. Repeat Step 2
eqns
→ Chemical Eng
t2
1.50E+08
→ Electrical Eng
• What do we 5.00E+07
mean by linear
eqns? 0.00E+00
0 0.05 0.1 0.15 0.2
g(t)
• Lecture -5.00E+07 t
summary
-1.00E+08
• Next lecture
-1.50E+08
-2.00E+08
7
Last Lecture: Newton-Raphson
• Last lecture Let us again consider our problem of deciding the thickness, t,
• Today’s Lecture of the pipe we are going to use to transport oil/gas.
• Engineering
examples of
linear algebraic Repeat Step 2. Draw the tangent to g(t) at t2.
eqns
Your new guess of t is where the tangent passes through zero
→ Chemical Eng
t 2 t3
1.50E+08
→ Electrical Eng
• What do we 5.00E+07
mean by linear
eqns? 0.00E+00
0 0.05 0.1 0.15 0.2
g(t)
• Lecture -5.00E+07 t
summary
-1.00E+08
• Next lecture
-1.50E+08
-2.00E+08
8
Last Lecture: Newton-Raphson
• Last lecture Let us again consider our problem of deciding the thickness, t,
• Today’s Lecture of the pipe we are going to use to transport oil/gas.
• Engineering
examples of
linear algebraic Repeat Step 2.
eqns
→ Chemical Eng
t3
1.50E+08
→ Electrical Eng
• What do we 5.00E+07
mean by linear
eqns? 0.00E+00
0 0.05 0.1 0.15 0.2
g(t)
• Lecture -5.00E+07 t
summary
-1.00E+08
• Next lecture
-1.50E+08
-2.00E+08
9
Last Lecture: Newton-Raphson
• Last lecture Let us again consider our problem of deciding the thickness, t,
• Today’s Lecture of the pipe we are going to use to transport oil/gas.
• Engineering
examples of
linear algebraic Repeat Step 2. Draw the tangent to g(t) at t3.
eqns
Your new guess of t is where the tangent passes through zero
→ Chemical Eng
t3 t 4
1.50E+08
→ Electrical Eng
• What do we 5.00E+07
mean by linear
eqns? 0.00E+00
0 0.05 0.1 0.15 0.2
g(t)
• Lecture -5.00E+07 t
summary
-1.00E+08
• Next lecture
-1.50E+08
-2.00E+08
10
Last Lecture: Newton-Raphson
• Last lecture Let us again consider our problem of deciding the thickness, t,
• Today’s Lecture of the pipe we are going to use to transport oil/gas.
• Engineering
examples of
linear algebraic Repeat Step 2.
eqns
→ Chemical Eng
t4
1.50E+08
→ Electrical Eng
• What do we 5.00E+07
mean by linear
eqns? 0.00E+00
0 0.05 0.1 0.15 0.2
g(t)
• Lecture -5.00E+07 t
summary
-1.00E+08
• Next lecture
-1.50E+08
-2.00E+08
11
Last Lecture: Newton-Raphson
• Last lecture Let us again consider our problem of deciding the thickness, t,
• Today’s Lecture of the pipe we are going to use to transport oil/gas.
• Engineering
examples of
linear algebraic Repeat Step 2. Draw the tangent to g(t) at t4.
eqns
Your new guess of t is where the tangent passes through zero
→ Chemical Eng
t4t5
1.50E+08
→ Electrical Eng
• What do we 5.00E+07
mean by linear
eqns? 0.00E+00
0 0.05 0.1 0.15 0.2
g(t)
• Lecture -5.00E+07 t
summary
-1.00E+08
• Next lecture
-1.50E+08
-2.00E+08
12
Last Lecture: Newton-Raphson
• Last lecture Let us again consider our problem of deciding the thickness, t,
• Today’s Lecture of the pipe we are going to use to transport oil/gas.
• Engineering
examples of
linear algebraic Repeat Step 2 until the difference between your current guess and
eqns
the new guess is less than some specified amount
→ Chemical Eng
t5
1.50E+08
→ Electrical Eng
• What do we 5.00E+07
mean by linear
eqns? 0.00E+00
0 0.05 0.1 0.15 0.2
g(t)
• Lecture -5.00E+07 t
summary
-1.00E+08
• Next lecture
-1.50E+08
-2.00E+08
That’s it!
13
Today’s Lecture
• Last lecture
The last two lectures have looked at methods to find the root
• Today’s Lecture
of one equation:
• Engineering
examples of
linear algebraic
i.e. find t which satisfied g(t)=0
eqns
14
An engineering example…..
• Last lecture Consider that you work as a chemical engineer for a
• Today’s Lecture big oil refinery. It is your job to make sure that the oil
• Engineering
examples of
is mixed correctly when it is piped out of the plant……
linear algebraic
eqns
→ Chemical Eng
• Next lecture
Qij flow rate from i to j ( m3 s 1 )
xi concentration in reactor i(kg m 3 )
F feed (kg s 1 )
15
An engineering example…..
• Last lecture Mixing oil……
• Today’s Lecture
• Engineering
examples of
linear algebraic
eqns
Q13
F Q35
→ Chemical Eng
Q55
Q12 Q34
→ Electrical Eng
We can control Qij using valves on each pipe and we can control the
feed, F.
16
An engineering example…..
• Last lecture Mixing oil……
• Today’s Lecture
• Engineering
examples of
linear algebraic
eqns
Q13
F Q35
→ Chemical Eng
Q55
Q12 Q34
→ Electrical Eng
We can control Qij using valves on each pipe and we can control the
feed, F. Our job is to make sure that each reactor has the correct
concentrations, xi. In particular, x4 and x5…….
17
An engineering example…..
• Last lecture Mixing oil……
• Today’s Lecture
• Engineering
examples of
linear algebraic
eqns
Q13
F Q35
→ Chemical Eng
Q55
Q12 Q34
→ Electrical Eng
18
An engineering example…..
• Last lecture Mixing oil……
• Today’s Lecture
• Engineering
examples of
linear algebraic
eqns
Q13
F Q35
→ Chemical Eng
Q55
Q12 Q34
→ Electrical Eng
19
An engineering example…..
• Last lecture Mixing oil……
• Today’s Lecture
• Engineering
examples of
linear algebraic
eqns
Q13
F Q35
→ Chemical Eng
Q55
Q12 Q34
→ Electrical Eng
• Engineering
examples of
linear algebraic
eqns
Q13
F Q35
→ Chemical Eng
Q55
Q12 Q34
→ Electrical Eng
Next lecture we will start talking about how to solve these equations
21
An engineering example…..
• Last lecture Consider now that you work as an electrical engineer.
• Today’s Lecture You job is the design of circuits for a new generation
• Engineering
examples of
of CPU. Overheating is a problem.
linear algebraic
eqns
→ Chemical Eng
→ Electrical Eng
→ Civil Eng
• What do we
mean by linear
eqns?
• Lecture
summary
• Next lecture
22
An engineering example…..
• Last lecture Consider now that you work as an electrical engineer.
• Today’s Lecture You job is the design of circuits for a new generation
• Engineering
examples of
of CPU. Overheating is a problem.
linear algebraic
eqns You need to understand well the currents in all the
→ Chemical Eng segments of your circuit.
→ Electrical Eng
23
An engineering example…..
• Last lecture Consider now that you work as an electrical engineer.
• Today’s Lecture You job is the design of circuits for a new generation
• Engineering
examples of
of CPU. Overheating is a problem.
linear algebraic
eqns You need to understand well the currents in all the
→ Chemical Eng segments of your circuit.
→ Electrical Eng
We know the resistances Rij and we know the applied voltage difference
V1-V2. But we need to know the current, iij, in each segment to
make sure we don’t overheat…..
24
An engineering example…..
• Last lecture Overheating CPU........
• Today’s Lecture
3 R23 2 R12 1
• Engineering
examples of
V1
linear algebraic
eqns
R34 R25
→ Chemical Eng
• Lecture
Kirchoff’s Law I -
summary the algebraic sum of the currents meeting at a junction
(node) is zero
• Next lecture
i3
i1 + i2 - i3 = 0
i1
i2 i=0
25
An engineering example…..
• Last lecture Overheating CPU........
• Today’s Lecture
3 R23 2 R12 1
• Engineering
examples of
V1
linear algebraic
eqns
R34 R25
→ Chemical Eng
• Lecture
Kirchoff’s Law II –
summary the algebraic sum of the voltage drops and e.m.f’s around any
• Next lecture closed circuit is zero
(E - iR) = 0
26
An engineering example…..
• Last lecture Overheating CPU........
• Today’s Lecture
3 R23 2 R12 1
• Engineering V1
examples of
linear algebraic
eqns
+ve direction R34 R25
→ Chemical Eng
R45 R56
→ Electrical Eng
V2
→ Civil Eng 4 5 6
• What do we
mean by linear
eqns? i12 i23 i25 0 node 2
• Lecture i25 i45 i56 0 node 5
summary
Linear Algebraic Eqns i23 i34 0 node 3
• Next lecture
i34 i45 0 node 4
R23i23 R34 i34 R45i45 R25i25 0 LH loop
R12i12 R25i25 R56i56 (V1 V2 ) 0 RH loop
27
An engineering example…..
• Last lecture Overheating CPU........
• Today’s Lecture
3 R23 2 R12 1
• Engineering V1
examples of
linear algebraic
eqns
+ve direction R34 R25
→ Chemical Eng
R45 R56
→ Electrical Eng
V2
→ Civil Eng 4 5 6
• What do we
mean by linear
eqns?
i12 i23 i25 0
• Lecture
summary i25 i45 i56 0
• Next lecture i23 i34 0
i34 i45 0
R23i23 R25i25 R34 i34 R45i45 0
R12i12 R25i25 R56i56 (V1 V2 ) 0
28
An engineering example…..
• Last lecture Overheating CPU........
• Today’s Lecture
3 R23 2 R12 1
• Engineering V1
examples of
linear algebraic
eqns
+ve direction R34 R25
→ Chemical Eng
R45 R56
→ Electrical Eng
V2
→ Civil Eng 4 5 6
• What do we
mean by linear
eqns? i12 i23 i25 0 node 2
• Lecture i25 i45 i56 0 node 5
summary
Linear Algebraic Eqns i23 i34 0 node 3
• Next lecture
i34 i45 0 node 4
R23i23 R34 i34 R45i45 R25i25 0 LH loop
R12i12 R25i25 R56i56 (V1 V2 ) 0 RH loop
29
An engineering example…..
• Last lecture
Overheating CPU........
• Today’s Lecture
3 R23 2 R12 1
• Engineering V1
examples of
linear algebraic
eqns
+ve direction R34 R25
→ Chemical Eng
→ Electrical Eng
R45 R56
V2
→ Civil Eng 4 5 6
• What do we
mean by linear
eqns?
→ Electrical Eng
R45 R56
V2
→ Civil Eng 4 5 6
• What do we
mean by linear
eqns?
i12 i23 i25 0
• Lecture
summary i25 i45 i56 0
• Next lecture i23 i34 0
i34 i45 0
R23i23 R25i25 R34 i34 R45i45 0
R12i12 R25i25 R56i56 (V1 V2 )
31
An engineering example…..
• Last lecture
Overheating CPU........
• Today’s Lecture
i12 i23 i25 0
• Engineering
examples of i25 i45 i56 0
linear algebraic
i23 i34 0 Linear
eqns Algebraic
i34 i45 0 Eqns
→ Chemical Eng
R23i23 R25i25 R34 i34 R45i45 0
→ Electrical Eng
R12i12 R25i25 R56i56 (V1 V2 )
→ Civil Eng
• What do we
mean by linear
1 1 1 i12 0
eqns? 1 1 1 i23 0
• Lecture
summary 1 1 i25 0 Linear Algebraic
Eqns expressed
• Next lecture
1 1 i
34 0 in matrix format
R23 R25 R34 R45 i45 0
R12 R25 R56 i56 V1 V2
32
An engineering example…..
• Last lecture
Overheating CPU........
• Today’s Lecture
• Engineering 1 1 1 i12 0
examples of
linear algebraic
1 1 1 i23 0
eqns
1 1 i25 0 Linear Algebraic
→ Chemical Eng
Eqns expressed
→ Electrical Eng 1 1 i
34 0 in matrix format
→ Civil Eng
R23 R25 R34 R45 i45 0
• What do we R12 R25 R56 i56 V1 V2
mean by linear
eqns?
• Lecture
summary
33
An engineering example…..
• Last lecture
Lets consider one more example: Static force balance
• Today’s Lecture
• Engineering
examples of – three bungee jumpers
linear algebraic
eqns joined by elastic chords
→ Chemical Eng
34
An engineering example…..
• Last lecture
Lets consider one more example: Static force balance
• Today’s Lecture
→ Chemical Eng
→ Electrical Eng F = ma
→ Civil Eng but a = 0 so F = 0
( F = 0 better)
• What do we
mean by linear
eqns?
• Lecture
summary
• Next lecture
• Engineering m1 g k 2 ( x2 x1 ) k1 x1 0
examples of
linear algebraic
eqns
m2 g k3 ( x3 x2 ) k 2 ( x2 x1 ) 0
→ Chemical Eng
m3 g k3 ( x3 x2 ) 0
→ Electrical Eng
Free-body diagrams:
→ Civil Eng
net force on each person is zero
• What do we
mean by linear
eqns?
• mi is the mass of the ith jumper [kg]
• g = 9.81 m/s2
36
An engineering example…..
• Last lecture
Lets consider one more example: Static force balance
• Today’s Lecture
m1 g k 2 ( x2 x1 ) k1 x1 0
• Engineering
examples of m2 g k3 ( x3 x2 ) k 2 ( x2 x1 ) 0
linear algebraic
eqns m3 g k3 ( x3 x2 ) 0
→ Chemical Eng
→ Electrical Eng
→ Civil Eng
• What do we
mean by linear
eqns?
• Lecture
summary
• Next lecture
2 2
38
An engineering example…..
• Last lecture
Lets consider one more example: Static force balance
• Today’s Lecture
What if the force from each elastic band was not linear in
• Engineering
examples of displacement, x? (i.e. Hooke’s Law did not apply)
linear algebraic
eqns e.g. Fi=ki*x2
→ Chemical Eng
→ Electrical Eng
Our simultaneous equations are no longer linear in x
→ Civil Eng
2
• What do we
m1 g k 2 ( x 2 x1 ) 2 k1 x1 0
mean by linear
eqns? m2 g k 3 ( x3 x 2 ) 2 k 2 ( x 2 x1 ) 2 0
• Lecture
summary m3 g k 3 ( x 3 x 2 ) 2 0
• Next lecture
These are significantly more difficult to solve and will not be considered
in this introductory course
39
Engineering examples…..
• Last lecture
(k1 k 2 ) k 2 0 x1 m1g
• Today’s Lecture
k 2 (k 2 k 3 ) k3 x 2 m2 g
• Engineering
0 k 3 k 3
x 3
m3 g
examples of Statics:
linear algebraic System
eqns
(Q12 Q13 ) x1 F characteristics
→ Chemical Eng
Q12 Q24 x 2 0
Q13 (Q34 Q35 ) x 3 0
→ Electrical Eng
Q24 Q34 Q44 x 4 0
→ Civil Eng Q55
Reactors:
Q35
x 5
0
Variables or
• What do we
mean by linear unknowns
eqns? 1 1 1 i12 0
1 1 1 i23 0
• Lecture 1 1 i25 0
summary Forcing
1 1 i
0
• Next lecture
34
i45 0
parameters
R23 R25 R34 R45
R12 R25 R56 i56 V1 V2
Circuit:
• Today’s Lecture
• Engineering
• Introduction to linear algebraic
examples of
linear algebraic equations
eqns
→ Chemical Eng
→ Electrical Eng
• Considered a number of
→ Civil Eng engineering examples
• What do we
mean by linear
eqns?
• Expressed sets of linear algebraic
• Lecture
summary
equations in matrix format
• Next lecture
41
Next lecture
• Last lecture
• Today’s Lecture
• Engineering
• Quick revision of Matrices and their
examples of
linear algebraic properties
eqns
→ Chemical Eng
→ Electrical Eng
• Using MATLAB to solve linear
→ Civil Eng algebraic problems
• What do we
mean by linear
eqns?
• Introduction to the numerical
• Lecture
summary
routines used to solve these sets of
equations
• Next lecture
42