Lecture 3 - Solving Equations, Curve Fitting, and Numerical Techniques
Lecture 3 - Solving Equations, Curve Fitting, and Numerical Techniques
EE 8207
LECTURE 3:
2022/2023
OUTLINE
Linear Algebra
Polynomials
Optimization
Linear Algebra
Polynomials
Optimization
Linear Algebra
Polynomials
Optimization
Polynomials in engineering.
Where
𝑦(𝑡) represents the response (output) of the system at time
𝑡, and 𝑓(𝑡) is the forcing function (input) that drives the
system.
The 𝑎𝑖 and 𝑏𝑖 coefficients are real constants.
The solution for 𝑦(𝑡) is the sum of a natural response (𝑦𝑛𝑎𝑡)
and a forced response (𝑦𝑓)
for 𝑦, as follows:
𝑝(𝑥) = 0
Circuit model:
di 1
v = iR + L +
dt C
idt
Differentiate wrt to time and re-arrange
❖ x2 + 2x – 7
❖ x4 + 3x3 -15x2 - 2x + 9
❖ s4 + 3s3 - 15s2 - 2s + 9
❖ 3x3 - 9
Subtraction
>> a = [3 0 0 2]; % s3 + 2
>> b = [0 0 1 7]; %s+7
>> c = b - a % -s3 + s + 5
c=
-3 0 1 5
Instructor: E.Tarimo Solving Equations 2022/2023
POLYNOMIALS MATHEMATICS
Multiplication : Multiplication is done by convolution
operation .
Syntax z = conv(x, y)
>> a = [1 2 ]; %s+2
>> b = [1 4 8 ]; % s2 + 4s + 8
>> c = conv (a, b) % s3 + 6s2 + 16s + 16
c=1 6 16 16
Try this: find the product of (s+3), (s+6) & (s+2). Hint: two at
a time
>> b = [1 4 8]; % b = s2 + 4s + 8
c=2
r=0 0 0 0
Linear Algebra
Polynomials
Optimization
» linprog
➢linear programming using interior point methods
» quadprog
➢quadratic programming solver
» fmincon
➢constrained nonlinear optimization
Instructor: E.Tarimo Solving Equations 2022/2023
EXERCISE: MIN-FINDING