SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS Example: Mathematical model of a mechanical system is defined as a system of differential equations as follows:

Slides:



Advertisements
Similar presentations
1 Eng. Mohamed El-Taher Eng. Ahmed Ibrahim. 2 1.FUNCTION SUMMARY polyfun  Polynomial functions are located in the MATLAB polyfun directory. For a complete.
Advertisements

H(s) x(t)y(t) 8.b Laplace Transform: Y(s)=X(s) H(s) The Laplace transform can be used in the solution of ordinary linear differential equations. Let’s.
Math Review with Matlab: Application: Solving Differential Equations
example: four masses on springs
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Matlab Matlab is a powerful mathematical tool and this tutorial is intended to be an introduction to some of the functions that you might find useful.
Laplace Transforms 1. Standard notation in dynamics and control (shorthand notation) 2. Converts mathematics to algebraic operations 3. Advantageous for.
Ordinary Differential Equations Final Review Shurong Sun University of Jinan Semester 1,
SYSTEM OF DIFFERENTIAL EQUATIONS f(t) : Input u(t) and v(t) : Outputs to be found System of constant coefficient differential equations with two unknowns.
5.7 Impulse Functions In some applications, it is necessary to deal with phenomena of an impulsive nature—for example, voltages or forces of large magnitude.
EXAMPLES: Example 1: Consider the system Calculate the equilibrium points for the system. Plot the phase portrait of the system. Solution: The equilibrium.
CHAPTER III LAPLACE TRANSFORM
Autumn 2008 EEE8013 Revision lecture 1 Ordinary Differential Equations.
1 On Free Mechanical Vibrations As derived in section 4.1( following Newton’s 2nd law of motion and the Hooke’s law), the D.E. for the mass-spring oscillator.
Linear Differential Equations with Constant Coefficients: Example: f(t): Input u(t): Output (response) Characteristic Equation: Homogenous solution f(t)=0.
9. Solution of a Set of Linear Differantial Equations x : Column matrix of state variables (nx1) A: Square matrix (nxn), system matrix u: Input vector.
MATLAB Basics. The following screen will appear when you start up Matlab. All of the commands that will be discussed should be typed at the >> prompt.
Laplace Transforms 1. Standard notation in dynamics and control (shorthand notation) 2. Converts mathematics to algebraic operations 3. Advantageous for.
Prepared by Mrs. Azduwin Binti Khasri
1 Lecture #1 EGR 272 – Circuit Theory II Reading Assignment: Chapter 8 in Electric Circuits, 6th Edition by Nilsson Welcome to EGR 272 Circuit Theory II.
Mathematical Models and Block Diagrams of Systems Regulation And Control Engineering.
Examples: Write the transfer function of the electrical circuit including Op-Amp (Operational Amplifier). Write the Matlab program to calculate the eigenvalues.
SYSTEM OF DIFFERENTIAL EQUATIONS f(t) : Input u(t) and v(t) : Outputs to be found System of constant coefficient differential equations with two unknowns.
11/15/2006 Ch 7 System Consideration- Paul Lin 1 ECET 307 Analog Networks Signal Processing Ch 7 System Considerations 2 of 3 Fall 2006
Motivation Thus far we have dealt primarily with the input/output characteristics of linear systems. State variable, or state space, representations describe.
MESB374 Chapter8 System Modeling and Analysis Time domain Analysis Transfer Function Analysis.
Subsea Control and Communications Systems
Chapter 7 The Laplace Transform
, Free vibration Eigenvalue equation EIGENVALUE EQUATION
Lecture 3 Ordinary Differential equations Purpose of lecture: Solve 1 st order ODE by substitution and separation Solve 2 nd order homogeneous ODE Derive.
DIFFERENTIAL EQUATIONS Note: Differential equations are equations containing a derivative. They can be solved by integration to obtain a general solution.
SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS
The formulae for the roots of a 3rd degree polynomial are given below
State Equations BIOE Processes A process transforms input to output States are variables internal to the process that determine how this transformation.
Inverse Laplace Transform. Laplace Transform of derivatives.
Exercise 1 Suppose we have a simple mass, spring, and damper problem. Find The modeling equation of this system (F input, x output). The transfer function.
Analogue and digital techniques in closed loop regulation applications
Lec 4. the inverse Laplace Transform
H(s) 8.b Laplace Transform:
Linear homogeneous ODEn with constant coefficients
MESB374 System Modeling and Analysis Transfer Function Analysis
Modeling and Simulation Dr. Mohammad Kilani
CHAPTER III LAPLACE TRANSFORM
© Dr. Elmer P. Dadios - DLSU Fellow & Professor
Teknik kendali.
The formulae for the roots of a 3rd degree polynomial are given below
(x(t) depends on the initial conditions)
Equations of Motion: Kinetic energy: Potential energy: Sin≈
ME375 Handouts - Fall 2002 MESB374 Chapter8 System Modeling and Analysis Time domain Analysis Transfer Function Analysis.
Equations of Motion: Kinetic energy: Potential energy: Sin≈
Example: Obtain the equation of motion of the mechanical system given below. Write the form of the output θ(t) in case of free vibration and determine.
(x(t) depends on the initial conditions)
(x(t) depends on the initial conditions)
§1-2 State-Space Description
SYSTEM OF DIFFERENTIAL EQUATIONS
Equations of Motion: Kinetic energy: Potential energy: Sin≈
Homework 1: Electrical System
SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS
Equivalent State Equations
HOMEWORK 08B Impulse, step response Problem 1: Problem 2: Problem 3:
8. Solution of Linear Differential Equations: f(t): Input,
Linear Differential Equations with Constant Coefficients:
8. Solution of Linear Differential Equations: f(t): Input,
8. Solution of Linear Differential Equations: f(t): Input,
INTRODUCTION TO CONTROL SYSTEMS
SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS
SYSTEM OF DIFFERENTIAL EQUATIONS
(x(t) depends on the initial conditions)
Presentation transcript:

SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS Example: Mathematical model of a mechanical system is defined as a system of differential equations as follows: where f is input, x 1 are x 2 outputs. At t=0 x 1 =2 and x 2 =-1. a)Find the eigenvalues of the system. b)If f is a step input having magnitude of 3, find x 1 (t). c)If f is a step input having magnitude of 3, find x 2 (t). d)Find the response of x 1 due to the initial conditions. e)Find the response of x 2 due to the initial conditions. f)How do you obtain [sI-A] -1 with MATLAB?

Let us obtain the State Variables Form so as to 1 st order derivative terms are left-hand side and non-derivative terms are on the right-hand side. State Variables Form A B D(s) SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

a) Eigenvalues are roots of the polynomial D(s) or eigenvalues of the matrix A. or b) x 1 (t) due to the forcing General Solution Solution due to the initial conditions Homogeneous Solution Solution due to the input Particular Solution Initial Conditions clc;clear; num=[ ]; den=[ ]; [r,p,k]=residue(num,den) SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

System is instable because of the positive root. c) x 2 (t) due to input clc;clear; num=[6 174]; den=[ ]; [r,p,k]=residue(num,den) Laplace transform of x 2p SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

d) x 1 due to the initial conditions. clc;clear; num=[2 -25]; den=[ ]; [r,p,k]=residue(num,den) e) x 2 due to the initial conditions clc;clear; num=[-1 4]; den=[ ]; [r,p,k]= residue(num,den) f) [sI-A] -1 with Matlab. clc;clear; syms s; i1=eye(2) A=[-20 15;12 5]; a1=inv(s*i1-A) pretty(a1) SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

Example: Mathematical model of a system is given below. Where V(t) is input, q 1 (t) and q 2 (t) are outputs. a)Write the equations in the form of state variables. b)Write Matlab code to obtain eigenvalues of the system. c)Write Matlab code to obtain matrix [sI-A] -1. d)Results of (b) and (c) which are obtained by computer are as follows: At t=0and V(t) is a step input having magnitude of 2. Find the Laplace transform of due to the initial conditions. e) Find the Laplace transform of q 1 due to the input. 2 t (s) V 2 (t) SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

a) State variables are q 1, q 2 and. System of differential equations is arranged so as to 1 st order derivative terms are left- hand side and non-derivative terms are on the right-hand side. b) Matlab code which gives the eigenvalues of the system. A=[ ;0 0 1; ]; eig(A) c) Matlab code which produces [sI-A] -1 clc;clear A=[ ;0 0 1; ]; syms s; i1=eye(3); sia=inv(s*i1-A); pretty(sia) A B State variables SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

d) e) SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

Example: Write the equation of motion of the mechanical system given below in the State Variables Form. Force applied on the system is F(t)=100 u(t) (a step input having magnitude 100 Newtons) and at t=0 x 0 =0.05 m and dx/dt=0. Find x(t) and v(t). State variables are x and v=dx/dt. m=20 kg c=40 Ns/m k=5000 N/m Matlab program to obtain eigenvalues: >>a=[0 1; ];eig(a) SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

Applying Laplace transform and arranging, Solution due to the inputSolution due to the initial conditions SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

For x(t) ; clc;clear; num=[ ]; den=[ ]; [r,p,k]=residue(num,den) clc;clear; syms s; A=[0 1; ]; i1=eye(2); %unit matix with dimension 2x2 siA=s*i1-A; x0=[0.05;0]; %Initial conditions B=[0;0.05]; Fs=100/s; X=inv(siA)*x0+inv(siA)*B*Fs; pretty(X) SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

Steady-state value (Final value) Initial value, x 0 SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

For v(t) clc;clear; num=[-7.5]; den=[ ]; [r,p,k]=residue(num,den) SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

Example: Mathematical model of a mechanical system having two degrees of freedom is given below. If F(t) is a step input having magnitude 50 Newtons, find the Laplace transforms of x and θ. R=0.2 m m=10 kg k=2000 N/m c=20 Ns/m State variables SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS

clc;clear A=[ ; ; ; ]; syms s; eig(A) i1=eye(4); sia=inv(s*i1-A); pretty(sia) If the initial conditions are zero, only the solution due to the input exists. Eigenvalues: System is stable since real parts of all eigenvalues are negative. SYSTEM OF ORDINARY DIFFERENTIAL EQUATIONS