- First Order Differential Equation
- Solving Mathematical Equation
- MATLAB Simulink - Script
- MATLAB Simulink - Export Data
- MATLAB Simulink - For Loop
- MATLAB Simulink - Create Subsystem
- MATLAB Simulink - Function
- MATLAB Simulink - Sinewave
- MATLAB Simulink - Logic Gates Model
- Build Model & Apply If-else Logic
- MATLAB Simulink - Mathematical Library
- MATLAB Simulink - Adding Delay To Signals
- MATLAB Simulink - Signals Processing
- MATLAB Simulink - Build & Simulate Model
- MATLAB Simulink - Lines
- MATLAB Simulink - Blocks
- MATLAB Simulink - Starting Simulink
- MATLAB Simulink - Environment Setup
- MATLAB Simulink - Introduction
- MATLAB Simulink - Home
MATLAB Simulink Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
First Order Differential Equation
Here, we will learn how to solve the first order differential equation in Simupnk.
The first order differential equation that we are trying to solve using Simupnk is as follows −
dy/dt = 4sin2t - 10y
The equation can be solved by integrating dy/dt to the following −
y(t)=∫(4sin2t - 10y(t))dt
Following are the steps to build a model for above equation.
Pick up sine wave from sources pbrary and change the ampptude to 4 and frequency to 2. This will give us 4sin2t.
The integrator block will be used to show dy/dt that will give output y(t).
The gain block will represent 10y.
The input of step 1 and 3 will be given to step2.
We need scope block to see the output y(t). The step 4 will be connected to the scope block.
Let us see the above steps in model as shown below −
Run the block to see the following output −
Advertisements