# Can a system of differential equations have a solution when the rate of change of a variable is constant? And how to calculate it?

2 views (last 30 days)
Cola on 23 Aug 2021
Commented: Cola on 26 Aug 2021
There is a system of differential equations containing more than two variables, and the rate of change (with time) of one of the variables is constant c as shown in the following. That is, the differentials of the variables cannot all be zero at the same time, and the equilibrium point may not exist. Can one still calculate this system. Thank you. Walter Roberson on 23 Aug 2021
There is no problem having a rate of change that is a constant. For example if you were using an ode you might have
ode45(@(t,x) [x(1)+x(2)^2, -1.234])
and that would be for the case where x'' is the constant -1.234
Your system is a PDE rather than an ODE, but Yes, you can do it.
If you are constructing symbolic expressions, then make sure that dz is a symbolic function, such as
syms x y z
dz(x,y,z) = c;
do not use
dz = c;
in this case.
The reason for this is that in the case you just assign a numeric constant, then matlabFunction(dz) would generate @() c -- a function with no parameters permitted. But if you define dz(x,y,z) = c then matlabFunction(dz) would generate @(x,y,z) c -- which permits (but ignores) inputs.
Cola on 26 Aug 2021
Thank you for your help @Wan Ji @Walter Roberson @Paul . As Newton once said, if I have seen further, it is by standing on the shoulders of giants.