How i can solve two coupled nonlinear first order differential equations

Helo
I want to solve two coupled nonlinear first order differential equations of
dA/dz=-a1*A-1i*w*k*B*(A^*)exp(1i*beta*z)
dB/dz=a2*B-1i*w*(k^*)*(A^2)exp(-1i*beta*z)
where a1,a2,k,w,beta are constant and boundary conditions are A(0)=A0 and B(L)=0
now how i can calculate A(z) and B(z)???
your good help will be highly helpful and appreciable for me
best regards,

4 Comments

Hello Babak
I have a same equation to solve. Please let me know the method of solution if you have gotten that.
Thank you for your help in advance
Best
Hi
you can solve the equation not from z = 0 to z = L, but from z = L to z = 0 and use the well-known Shooting Method.
For more details follow below link
https://link.springer.com/article/10.1007/s10946-012-9273-z
How did you code the first order ode equation using bvp4c in MATLAB

Sign in to comment.

Answers (2)

Dear Torsten and Babak,
Thank you very much for your help. Actually, I'm not expert in coding and I want to solve the following equation.
equations.jpg
with these boundary conditions Pe (end) = 0 and Ph (0) = 0.
I wondering to know if there is any solver function to do that.
Best

1 Comment

As I mentioned: use bvp4c.
But I guess you made an error while specifying your boundary conditions:
If Pe(end) = Ph(0) = 0, then Pe(x) = Ph(x) = 0 for all x.

Sign in to comment.

Thank you again,
The boundary conditions are right. I expect the result would be like this.
dsff.jpg

1 Comment

Insert Pe = Ph = 0 for all x in the differential equations and you'll see that they are solutions.

Sign in to comment.

Categories

Find more on Parallel Computing Toolbox in Help Center and File Exchange

Asked:

on 3 Sep 2017

Commented:

on 21 Mar 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!