1st order differential equation , boundary conditions
2 views (last 30 days)
Show older comments
please can someone help me to solve this 1st differential equation my function is Dp=kp ln(450/p) p(0)=40 and p(15)=95 , k is constant can someone help please, i am new to MATLAB k is constant and p is p(t)
0 Comments
Accepted Answer
Torsten
on 14 Sep 2018
syms y1(t) y2(t)
eqn = [diff(y1,t) == y2*y1*log(450/y1), diff(y2,t) == 0];
cond = [y1(0)==40, y1(15)==95];
[y1Sol(t) y2Sol(t)] = dsolve(eqn,cond)
2 Comments
More Answers (2)
Takey Asaad
on 14 Sep 2018
1 Comment
Torsten
on 17 Sep 2018
Because you use "ln" in your problem formulation.
And please do not always create answers in this thread. The replies you give are comments to answers.
What do you get for y1Sol ?
Best wishes
Torsten.
See Also
Categories
Find more on Assumptions 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!