Exact solution of ode using matlab dy/dx=x^2+y^2 condition y(0)=0
11 views (last 30 days)
Show older comments
Abdullahi Abubakar
on 28 Jun 2021
Answered: Bjorn Gustavsson
on 28 Jun 2021
clear all clc close all syms y(x) ode=(diff(y,x)+((y))==(x^2)+(y^2) cond = y(0) ==1; ySol(x)=dsolve(ode,cond) ySol(x)= -x^2-2*x-2+2*exp(x)
0 Comments
Accepted Answer
Bjorn Gustavsson
on 28 Jun 2021
That is a Riccatti ODE. See Riccati_equation for information on how to solve it analytically. My version of matlab spits out a longish answer.
0 Comments
More Answers (0)
See Also
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!