math - Finding capable function in an equation with Mathematica or Matlab -
i want find function f(xi) suffices following equation:
(vi-xi)f(xi)'=f(xi)
when xi = k*vi, vi constant , xi variable.
anyone know howto describe problem in mathematica or matlab? great thanks!
mathematica
eq = (vi - xi) d[f[xi], xi] == f[xi]; dsolve[eq, f[xi], xi] (* {{f[xi] -> c[1]/(vi - xi)}} *)
matlab
syms vi xi f(xi) dsolve( (vi -xi)*diff(f)==f) ans = c2/(vi - xi)
maple
restart; dsolve((vi - xi)*diff(f(xi),xi)=f(xi),f(xi)); (* f(xi) = _c1/(vi-xi) *)
Comments
Post a Comment