Solving differential equations in four variables

Click For Summary
SUMMARY

The discussion focuses on solving a set of differential equations involving four variables using MATLAB, specifically questioning the adequacy of the ode45 and ode23 functions for this task. The equations presented include relationships between the variables w, x, y, z, and their derivatives, with initial conditions specified. The user, Sridatta, seeks insights into the functions f(z), g(z), and j(z), which represent complex exponential equations related to electromagnetic wave components in a waveguide. The goal is to plot 'dw/dz' versus 'z' based on the derived equations.

PREREQUISITES
  • Understanding of MATLAB programming and its numerical solvers, specifically ode45 and ode23.
  • Knowledge of differential equations and their applications in modeling dynamic systems.
  • Familiarity with complex exponential functions and their role in electromagnetic theory.
  • Basic concepts of waveguide theory and electromagnetic wave propagation.
NEXT STEPS
  • Explore the MATLAB documentation for ode45 and ode23 to understand their usage and limitations in solving differential equations.
  • Research methods for plotting derivatives in MATLAB, specifically how to visualize 'dw/dz' versus 'z'.
  • Study the mathematical formulation of complex exponential functions in the context of waveguides.
  • Investigate numerical stability and accuracy considerations when solving differential equations with multiple variables.
USEFUL FOR

Researchers, engineers, and students working on projects involving differential equations, particularly in fields related to electromagnetic theory and waveguide analysis.

Sridatta
Messages
2
Reaction score
0
I have been trying to solve a problem MATLAb regarding my project and it involves solving set of differential equations involving four variables. It is turning into quite a headache and i was actually wondering if ode45 or ode23 would be sufficient for such a problem.

Problem Structure
----------------------------------
dw/dt = f(z) * dy/dt
w * dx/dt = g(z) * dy/dt
w * dy/dt = f(z) + g(z) * dx/dt + j(z) * dz/dt
w * dz/dt = j(z) * dy/dt

x(0)=0, y(0)=0, z(0)=0, dx/dt(0)=0, dy/dt(0), dz/dt(0)=v

I am supposed to plot 'dw/dz' vs 'z'
----------------------------------

Any insights regarding the problem are extremely welcome.
Thank You,
Sridatta
 
Last edited:
Physics news on Phys.org
Do you know what f(), g() and j() are?

Different question, what if you just inspected your equations and wrote down (dw/dt)/(dz/dt)=
You need to be cautious with that and think about what it means and what you are doing. I'm not certain that will accomplish your goal.
 
yeah, f,g,j are complex exponential equations based on 'z' (actually they represent elctromagnetic wave components in a waveguide)
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K