Identifying and solving a pair of ODE's

  • Context: Graduate 
  • Thread starter Thread starter Milsomonk
  • Start date Start date
  • Tags Tags
    Pair
Click For Summary

Discussion Overview

The discussion revolves around identifying and solving a pair of ordinary differential equations (ODEs) that are later clarified to be partial differential equations (PDEs) related to a laser system. Participants explore the nature of the equations, boundary conditions, and potential methods for finding solutions, both analytically and numerically.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant initially identifies the equations as non-homogeneous, non-linear ODEs and questions whether they are coupled due to derivatives with respect to different variables.
  • Another participant corrects this by stating that the equations are PDEs, as they involve functions of both z and t, and suggests using partial derivatives.
  • There is a discussion about the necessity of boundary and initial conditions, with one participant emphasizing the need for more conditions to solve the equations effectively.
  • Participants clarify that the pumping power is constant and that the upper state population n starts at zero when pumping begins.
  • One participant proposes a numerical approach to solving the equations, outlining a method of iterating through time steps to find solutions for n and P.

Areas of Agreement / Disagreement

Participants generally agree on the identification of the equations as coupled non-linear PDEs and the nature of the boundary conditions. However, there is no consensus on the best method for finding an analytical solution, with some favoring numerical methods instead.

Contextual Notes

Participants note the importance of boundary conditions, such as the initial state of n and the behavior of P over time, which remain somewhat unresolved in terms of specific values or functions.

Who May Find This Useful

This discussion may be useful for those interested in solving coupled PDEs, particularly in the context of laser systems and related mathematical modeling techniques.

Milsomonk
Messages
100
Reaction score
17
TL;DR
Classifying ODE's and identifying solving techniques.
Good afternoon folks,
I have a pair of ODE's which I would like to solve. Firstly i'd want to correctly identify the problem and then find the best method for finding a solution.

\begin{align}
\frac{dP_{(z,t)}}{dz} &= An_{(z,t)}P_{(z,t)}-BP_{(z,t)} \\
\frac{dn_{(z,t)}}{dt} &= Cn_{(z,t)}P_{(z,t)}-DP_{(z,t)}-En_{(z,t)}
\end{align}

Where $$A,B,C,D,E$$ are constants.

I think I have correctly identified these as Non-Homogeneous, Non-linear ODE's. I'm not sure if they are coupled as their derivatives are wrt to different variables? as such I am not sure the best method to find a solution, is there a suitable solver in Python or Matlab?

Any ideas or guidance would be appreciated, I'm certainly not looking for a solution, just a hint or a nudge in the right direction. Many thanks in advance.
 
Physics news on Phys.org
Since n and P are functions of z and t, these are PDEs, not ODEs. So I think you should write:
\begin{align}
\frac{\partial P_{(z,t)}}{\partial z} &= An_{(z,t)}P_{(z,t)}-BP_{(z,t)} \\
\frac{\partial n_{(z,t)}}{\partial t} &= Cn_{(z,t)}P_{(z,t)}-DP_{(z,t)}-En_{(z,t)}
\end{align}
A couple of questions:
(1) Are you looking for an analytic solution or a numeric solution?
(2) What do you know about the boundary or initial conditions?
 
  • Like
Likes   Reactions: berkeman
Thanks for your reply!

It was my quite possibly erroneous understanding that for an equation to be a PDE it had to contain a partial derivative wrt to each variable (z,t), is this not the case?

I am looking for an analytic solution ideally.

In terms of boundary conditions, z will run from 0 to some finite length L. t on the other hand I am not certain about. I don't know if this will help but these are essentially rate equation for a laser system, with P being pump power (from a CW laser) and n being upper state population.

In fact, we do know at z=0 Dp/dt =0.

Thanks again for your help.
 
Last edited:
Milsomonk said:
It was my quite possibly erroneous understanding that for an equation to be a PDE it had to contain a partial derivative wrt to each variable (z,t), is this not the case?
Since P and n are functions of z and t, and you are only differentiating with respect to one variable, these are partial derivatives, are they not?

I am looking for an analytic solution ideally.
In terms of boundary conditions, z will run from 0 to some finite length L. t on the other hand I am not certain about. I don't know if this will help but these are essentially rate equation for a laser system, with P being pump power (from a CW laser) and n being upper state population.

In fact, we do know at z=0 Dp/dt =0.

Thanks again for your help.

You will need more boundary conditions than this. If it's a pumped syatem, do you start pumping at t = 0? So is n(z,0) = 0? What about the pumping power P? Isn't it an input to the equations? Is the pumping power constant, or does it ramp up with time? Can you say P(0,t) = P0 or something like this?
 
  • Like
Likes   Reactions: berkeman
Ok, I see my mistake, so I believe I have a pair of coupled non-linear PDE's.

Pumping will be constant and so P(0,t)=P_0, the only thing that will vary P will be absorption via the varying of n. n(z,0)=0 at the onset of pumping. Whilst there may be a ramp up time in pumping, I think I will neglect this and assume the laser is given time to reach a steady state.
 
I don't know how to solve these analytically, but I think it's fairly straightforward to solve them numerically. At t=0, you know n everywhere, and you know P at z=0. You use the top equation to solve for P(z), so then you know n and P everywhere. Then you use the bottom equation to solve for \partial n(z,0)/ \partial t. Then you take a small time step forward to find n(z, δt). Then you again use the top equation to find P(z, δt), and use the bottom equation to find \partial n(z,\delta t)/ \partial t. You just keep iterating in this way until you are done.
 
Many thanks for your help! it all makes a lot more sense now.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K