Matlab Lab 4 Example 1 (System of Linear Equations) To find the general solution to the system of equations π₯ β² = π₯ + 2π¦ π¦ β² = β2π₯ + π¦ type at the command line and Matlab returns the following: To solve the same equation with the initial condition π₯(0) = 1, π¦(0) = 2, type the following two lines and the output follows: __________________________________________ Example 2 (Systems of Higher Orders) To solve the system of higher order of equations π₯ β²β² = 7π₯ β 6π¦ π¦β² = π₯ type at the command prompt the following: 1 __________________________________________ Example 3 (Laplace Transform) To find the Laplace transform of function π(π‘) = 2π‘ + 3 sin(2π‘) + π π‘ π’(π‘ β 2) type at the command prompt __________________________________________ Example 4 (Laplace Inverse Transform) To find the inverse Laplace transform of function π (β2π ) (π β 5) πΉ(π ) = π (π + 2)2 type at the command prompt 2 __________________________________________ Example 5 (Laplace Transform for ODE) To solve this differential equation π¦ β²β² β 6π¦ β² + 8π¦ = 0, π¦(0) = β1, π¦ β² (0) = 2 by the Laplace transform method, type at the command prompt __________________________________________ Example 6 (Resonance Phenomenon) To solve this differential equation π¦ β²β² + 9π¦ = 6cos(3π‘), π¦(0) = 0, π¦ β² (0) = 0 3 by the Laplace transform method, type at the command prompt We can plot the solution to see that the amplitude increases with time: 4 __________________________________________ Example 7 (Piecewise Forcing) Use Matlab to solve this differential equation with piecewise forcing π¦ β²β² + 4π¦ = 1 β π’(π‘ β π), π¦(0) = 0, π¦ β² (0) = 0 by the Laplace transform method. Show all commands together with the simplified result: __________________________________________ Example 8 (Impulse Forcing) To solve this differential equation with impulse forcing π¦ β²β² + 2π¦ β² + π¦ = 3πΏ(π‘ β 2), π¦(0) = 2, π¦ β² (0) = 1 by the Laplace transform method, type at the command prompt __________________________________________ (See Lab 1 for instruction to prepare your hand-in work.) End Lab 4 5
© Copyright 2026 Paperzz