1.82k likes | 2.16k Views
Chapter 3 Linear Ordinary Differential Equations in The Time Domain. 3.1 Introduction The ordinary differential equation is very important in both science and engineering. In general, the equation. is a linear ordinary differential equation of order N.
E N D
Chapter 3Linear Ordinary Differential Equations in The Time Domain
3.1 Introduction The ordinary differential equation is very important in both science and engineering. In general, the equation is a linear ordinary differential equation of order N.
Each coefficient ak(t) depends on the variable t. No general method can be used to solve this ODE Equation
We shall show how to find the solution of linear ordinary equation with manual computation and symbolic computation with MATLAB symbolic toolbox.
Theorem 1: The solution for the first order ordinary differential equation is where c is a constant.
<Proof:> according to Equation 3.2 we have
Thus, The solution is
<Matlab Solution:> g = dsolve('Dg + a(t)*g = 0', 't') g= exp(-int( a(t) ,dt))* C1
Theorem 2: The solution for the linear differential equation is
Multiplying Equation 3.7 with we obtain The equation above can be rewritten as
Thus, The solution is
The solution g(t) is called the general solution of Equation 3.7. It is a solution that involves an arbitrary constant c.The solution can be written as where is called a particular solution and
The particular solution is also called the steady state solution since
As The complementary solution is also called the transient solution.
<MATLAB Solution:> g= dsolve(‘Dy + a(t)*y =f(t)’, ‘t’) g= exp(-int(a(t),t))*int(exp(int(a(t),t))*f(t),t) +exp(-int(a(t),t))*C1
The problem is called an initial-value problem and g(0)= g0 is called the initial condition.
Example 1: Solve subject to the initial condition g(0)=1.
<Manual Solution:> The particular solution is
The complementary solution is The solution is
With the initial condition we have Thus, The solution is
<Matlab Solution:> g = dsolve('Dg + 4*t*g = t', 'g(0) = 1','t') 1/4 + 3/4 exp(- 2*t^2)
3.3 Linear Differential Equations with Constant Coefficients If ak(t), can be written as
To solve this equation we need to specify the following N initial values: The zero state response g(t) = h(t) when the input f(t) = d(t) is the impulse response of the system..
For conveniences, is written as where the operator D denote a differentiator.
It can be also written as if we are not confused that g(t) and f(t) are functions of the variable t.
3.3.1 First Order Differential Equations The following theorem solves the linear differential equation of order 1 with a constant coefficient.
Theorem 3: The solution is
<Matlab Solution :> g = dsolve('Dg + a*g = f(t)', 't') g=exp(- a*t)*int( exp(a*t)*f(t) ,t) + exp(- a*t)*C1
Note that the zero state response requires g(0) = 0. Thus, c = 0.
The impulse response of the system is The output can be written as
Example 2: Solve subject to the initial condition g(0)=1.
<Matlab Solution:> g = dsolve('Dg + 4*g = t', 'g(0) = 1','t') g = 1/4*t - 1/16 +17/16* exp(-4*t)
Example 3: Solve < Matlab Solution:> g = dsolve('Dg + a*g = exp(j*w*t)', 't') g = 1/(a+w*j)*exp(j*w* t)+1/(a+w*j)*exp(-a*t) *C1*a+ 1/(a+w*j)*exp(-a*t)*C1*w*j
Example 4: Solve < Matlab Solution:> g = dsolve('Dg + a*g = sin(w*t)', 't') g = -w/(a^2+w^2)*cos(w*t)+a/(a^2+w^2)*sin(w*t) +1/(a^2+w^2)exp(-a*t)*C1*a^2+1/(a^2+w^2) *exp(-a*t)*C1*w^2
Theorem 4: The solution is
<Matlab Solution:> g = dsolve('Dg + a*g = 0', 't') g = exp(- a*t)*C1
Example 5: Figure 3.1(a) shows a circuit where R and L in series. Figure 3.1(a) The R-L series circuit.
The voltage across the inductor is and the voltage across the resistor is Ri(t). Thus, The current in the RL series circuit is
<Matlab Solution:> i = dsolve('L* Dx + R*x = V', 'x(0) = 0','t') i = V/R-exp(-1/L*R*t)*V/R The following program plot the current i(t) in the RL series circuit, here R=10, L= 0.5, and V=12.
<Matlab Program:> V = 12; R = 10; L = 0.5; t = 0:0.01:1; i = V/R *(1- exp(-R*t/L) ); plot(t,i); set(gca,'Xlim',[0 1]); xlabel('t'); ylabel('i(t)');
Example 6: Figure 3.2(a) shows a circuit where R=10 and C=0.5 in series with a constant voltage V=12.
When the switch is closed at t =0 i(0)=V/R and the charge on the capacitor is q(0) =0. The voltage across the capacitor is and the voltage across the resistor is Ri(t). Thus,
It can be written as The current is