MATLAB: Can someone please help me solve this differential equation using MATLAB? dP/dt = k*P*ln(450/P) where k is an unknown constant. Given initial conditions are P(0)=40, and P(15)=95

I tried solving this question using this code
syms P(t) k
dsolve(diff(P,t) == k*P*ln(450/P), P(0)==40, P(15)==95)
There is an error in line 2

Best Answer

syms P(t) k
sol_P = dsolve(diff(P,t) == k*P*log(450/P), P(0)==40)
sol_k = solve( subs(sol_P, t, 15) == 95 );
simplify(subs(sol_P, k, sol_k))
Related Question