second order differential systems of a non linear ODE
Show older comments
Considering theth differential system equations to be solved are:
f''(t) = 3*f(t)*g(t) + 5 g''(t) = 4*g(t)*f(t) + 7 with initial conditions: f(0) = 1.5, g'(0) = 0 and boundary constraints tf = 1: g(1) = 3, f'(1) =q* f(1)
With q is natural number
how we can plot the solution satysfying the boundary conditions
8 Comments
Jan
on 18 Jun 2021
This sound like a job fpr bvp4c .
Lewis Fer
on 18 Jun 2021
Jan
on 19 Jun 2021
Start with reading the corresponding documentation:
doc bvp4c
Then modify the exmples given there to your problem. If you have a specific problem with this, post the details here.
The information, that q is a natural number does not allow to implement this. The readers of your question cannot guess, if you want to run the code for a certain number of inputs, if you should find a specific value of q.
Lewis Fer
on 19 Jun 2021
Jan
on 19 Jun 2021
What is your problem with solving the problem for different q? There is a huge number of different natural number, so what is the actual problem you want to solve?
Lewis Fer
on 19 Jun 2021
Lewis Fer
on 19 Jun 2021
Answers (1)
Sulaymon Eshkabilov
on 19 Jun 2021
Small typo err in your code:
xmesh = linspace(0,1,10);
sol = bvpinit(xmesh, @iguess);
sol = bvp5c(@odefcn,@bcfcn,sol,bvpset('RelTol ' ,1e-13 ,'AbsTol ',1e-13,'Nmax ',6000)); % ERR: No space after: 'RelTol', 'AbsTol', 'Nmax'
1 Comment
Lewis Fer
on 19 Jun 2021
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!