Electronic Analog Computer by Dr. Amin Danial Asham References Modern Control Engineering Katsuhiko Ogata III. Solving Linear Differential Equations ο§ The mathematical operation amplifiers can by used to solve various mathematical equations and results can be displayed on an oscilloscope. ο§ In this sections, examples of using the different types of amplifiers to solve mathematical problems will be introduced. III. Solving Linear Equations (continue) Example 1: ππ = 4 ππ ππ 4 π1 1 Solution Since π π1 = − π ππ = −4ππ 4 and π π ππ = − π1 = −π1 ∴ ππ = 4ππ πΉ = π π΄π΄ ππ III. Solving Linear Equations (continue) Example 2: π2π¦ ππ‘ 2 =π Solution : • To solve this problem, the input signal ππ = π has to be integrated twice to get the output ππ = π¦. π1 = 1 − π πΆ ππ ππ‘ = 1 π πΆ π1 ππ‘ = ππ = − 1 ππ¦ − π πΆ ππ‘ 1 2 π πΆ ππ π¦ If the value of π = 1 πΩ and πΆ = 1ππΉ ∴ π πΆ = 1 1 2 ∴ ππ = π¦ = π‘ 2 π 1 π πΆ π1 0 ππ 1 π πΆ 0 III. Solving Linear Equations (continue) Example 2 (continue): Simulating this example with π = 2, π = 1πΩ, and πΆ = 1ππΉ. We get the following solution. III. Solving Linear Equations (continue) Example 3: Solve the following differential equation: π₯ + 10π₯ + 16π₯ = 0, π₯ 0 = 0, π₯ 0 =8 Solution: ο§From the differential equation, we get: π₯ = −10π₯ − 16π₯ ο§Therefore, we have to integrate π₯ twice to get π₯ ο§First Integrator integrates π₯ to get −π₯ ο§Therefore, initial condition −π₯(0) = −8 ο§Second integrator integrates −π₯ to π₯ π 10 The analog computer diagram for solving the Differential Equation −π 16 0 -8 −π π 1 1 III. Solving Linear Equations (continue) Example 3: (Continue) - Circuit Diagram of the analog computer These contacts change their state after a short time at the start of the circuit III. Solving Linear Equations (continue) Example 3: (Continue) – The result from analog computer III. Solving Linear Equations (continue) Example 3: (Continue) – Numerical Solution using Matlab on a digital computer. III. Solving Linear Equations (continue) Example 3: (Continue) οΆ For the differential equation: π₯ + 10π₯ + 16π₯ = 0, π₯ 0 = 0, π₯ 0 =8 • If the scale factors are π1 for π₯ and π2 for π₯ then 10 16 π₯+ π π₯ + π π₯ =0 π2 2 π1 1 Therefore 10 16 π₯=− π2 π₯ − π1 π₯ π2 π1 ππ ππ ππ ππ −π 1 0 -8 ππ −ππ π ππ π ππ ππ −ππ π π π π 1 III. Solving Linear Equations (continue) Example 3: (Continue) • The diagram can be simplified for the minimum number of OpAmp’s as follows: ππ ππππ ππ 0 -8 ππ −ππ π ππ π ππ ππ −ππ π 1 III. Solving Linear Equations (continue) Example 3: (Continue) •For π1 = 4 πππ π2 = 2 ππ −ππ 4π π π 0 -8 ππ −ππ 1 III. Solving Linear Equations (continue) Example 3: (Continue) III. Solving Linear Equations (continue) Example 3: (Continue) III. Solving Linear Equations (continue) Time scale factor: Time scale factor is used to slow down or speed up the time of the simulation compared to the real time to make the analysis easier. Example 4: π2 π¦ ππ¦ ππ¦ + 0.25 + π¦ = 1 π¦ 0 = 1, 0 =2 2 ππ‘ ππ‘ ππ‘ π Let π = ππ‘, hence for π¦ π‘ πππππππ π¦( ) (π‘ is the real time and πis the π simulation time) In other words each π is replaced with π π Therefore: ππ¦ ππ¦ ππ ππ¦ = . =π ππ‘ ππ ππ‘ ππ And 2π¦ π2π¦ π ππ¦ π ππ¦ ππ π 2 = = π . = π ππ‘ 2 ππ‘ ππ‘ ππ ππ ππ‘ ππ 2 III. Solving Linear Equations (continue) Example 4: (continue) The Differential equation becomes: 2 π π¦ ππ¦ 2 π + 0.25π +π¦ =1 2 ππ ππ Therefore π 2 π¦ 0.25 ππ¦ π¦ 1 + + 2= 2 2 ππ π ππ π π Consequently since π = 0 π€βππ π‘ = 0 ππ¦ ππ¦ 0 =2=π 0 ππ‘ ππ Therefore ππ¦ 0 ππ¦ ππ‘ 0 = = 2/π ππ λ III. Solving Linear Equations (continue) Example 4: (continue) 1 π. ππ π π ππ π ππ −π − −π π π π π 1 1 III. Solving Linear Equations (continue)-Example 4: (continue) Thanks