Need help to solve nonlinear ode in matlab
Show older comments
u''-2Ru'*u''+T=0 with boundary conditions u(0)=0 and u(1)=0 and u=u(x). R and T are constant. i have to change value of R in range 0.1 to 0.8.
assume T=1.
is it possible to get numerical solution to this non-linear ODE?
i also need assistance to plot the graph of u vs x.
Accepted Answer
More Answers (1)
Torsten
on 6 Mar 2022
Write your equation as
u'' = -T/(1-2*R*u'),
substitute u1 = u and u2 = u' to arrive at the system
u1' = u2
u2' = -T/(1-2*R*u2)
with boundary conditions
u1(0) = u1(1) = 0
and use bvp4c to solve.
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!