Exploration Solver Help
Description:
Exploration Solver is a MATLAB graphical user interface (GUI) that plots the
mild solution, u(t), to the abstract differential equation
![]() | (1) |
where T > 0, A ∈ MN(ℝ), u 0 ∈ ℝN and f : [0,T] × ℝN → ℝN. The mild solution is given by the formula
![∫
At t A(t- s)
u(t) = e u0 + e f(s,u (s))ds,∀t ∈ [0,T ]
0](Exploration_Solver_Help1x.png)
To input a differential equation of the form (1), click-on Create Differential Equation.
A pop-up box will appear asking you to input the number of columns and rows in the matrix A. If A ∈ M3(ℝ), input 3. In general, input any positive integer.
Next, a pop-up will appear asking you to input the forcing function, f. Here it is important adhere to the notation in the interface and MATLAB syntax. The GUI assumes t represents the independent variable, u1 the first component of the solution, u2 the second component of the solution, u3 the third component of the solution, and so on and so forth. With this notation, you can input any functions that depend on t, u1, u2, u3, etc...provided you use MATLAB syntax. For example, a forcing function where every component is zero would represent a Homogeneous Cauchy Problem (HCP).
Or to input the Non-Homogenous Cauchy Problem (Non-CP) where the first component of the forcing function is sin (t), the second component is e-t and the third component is 1 input the following
Notice how the MATLAB syntax for the exponential function had to be used. To illustrate a Semi-Linear Cauchy Problem (Semi-CP), suppose the first component of the forcing function is u2 ⋅u3, the second component is e-u3⋅t and the third component is 1 + |t|.
The inputted definition of f and all of it’s components will not appear in the GUI. If you need to recall what you inputted just click on the Modify Forcing Function button. Next, a pop-up box will appear asking you to input the initial conditions of the components of the solution.
At this point, you need to focus on the User Panel to input the time interval for which you seek a solution, which matrix exponential definition you would like to use, integration method, type of linearity and time-step. Since the GUI assumes, the solution begins at time equal to zero, you only need to input the final time, named ‘t final’ in the GUI.
Matrix Exponential Definition: Choose either the Power Series or Resolvent
definition (See Appendix A2)
Integration Method: Since the GUI solves for the mild solution to (1), the
integration method can effect the plot of the solution. The most accurate, yet
slowest in computing time, is the ‘Quadrature’ integration method. The least
accurate, yet fastest in computing time, is the ‘Trapezoidal’ integration method.
Lastly, ‘Simpsons’ integration method is between the other methods both in
accuracy and speed.
Linearity: For HCP or Non-CP, choose ‘Linear’. For Semi-CP, choose
‘Semi-Linear’. IMPORTANT! If your differential equation is a Semi-CP then
you MUST choose ‘Semi-Linear’ in the ‘Linearity’ column.
Time-step: Since the matrix exponential and integration method depend on the
size of the time step, the mild solution formula directly depends on this value.
The general idea when choosing your time-step value is, the smaller the time
step the more accurate the graph of the solution will be, but the price to
be paid is that it will take the computer longer to graph the solution.
Note: Choosing very, very small time-steps can lead to issues as well. The most
obvious one is the amount of time it will take to find a solution. I recommend
choosing values between 1.0 × 10-5 and .01. Feel free to explore other values.
Just be prepared for problems to arise!
In the User Panel, you will also find buttons to modify the forcing function, the
initial condition or the matrix A. Modifications can occur before or after finding
the solution.
Lastly, click-on Solve to find the graph of the solution to (1). After
clicking-on Solve, you will be asked which components of the solution you
would like to plot. You can choose one, some or all of the components.
Next, you will be asked if you want to plot all selected components on the same axis. If you choose ‘No’, then the separate plots will appear outside of the GUI. Plotting outside the GUI, will allow you to edit and save the graph for later use.
Lastly, you will be asked if you would like save your solution as a .mat file. If you choose ‘Yes’, the matrix A, a time vector named t and a solution matrix named U will be saved to your directory. You will be given the option to name your file.
You can easily change parameters by clicking-on one of the ‘Modify’ buttons or delete the differential equation completely and start over by clicking-on the Delete Differential Equation button.
Trouble-Shooting Tips: The most common issue is not using MATLAB syntax in the definition of the forcing function. Click on the Modify Forcing Function Button and make sure you are using MATLAB syntax and the interface’s notation for the components of the solution. Common syntax errors: Using ‘e’ instead of exp(1), using sin t instead of sin (t) or not using an asterisk when multiplication occurs (e.g. u1t will produce an error, where as u1 * t will not)
If you are still receiving MATLAB error messages and you don’t know why, either delete the differential equation or close the GUI, type Exploration_Solver in the command-line and begin again.