solve second order ODE equation

1 次查看(过去 30 天)
Mark
Mark 2022-5-28
评论: Torsten 2022-5-29
I try to symbolic the function psi_m(y) and psi_m(x) and solve the equation b with matlab obe solver. The results should come out as equation c.
However my matlab script indicate the error. Could you help me take a look my matlab code below to debug?
Thank you very much!!
clc
clear
syms psi_m(y) psi_m(x) lamda_m psi(x,y) s_sqar
psi(x,y)=psi_m(y)*sin(lamda_m*x)-psi_m(x)*sin(lamda_m*y)
delta_psi(x,y)=diff(psi(x,y),x,2)+diff(psi(x,y),y,2)
ode=delta_psi(x,y)-s_sqar*psi(x,y)==0
psi_mSol(x)=dsolve(ode)
  2 个评论
Walter Roberson
Walter Roberson 2022-5-28
I do not think you can have the same function with two different variables
Torsten
Torsten 2022-5-29
psi_m (x) = sinh(k_m*x)
is not a solution of the differential equation
psi_m''(x) + (lambda_m^2+s^2)*psi_m(x) = 0,
but of the differential equation
psi_m''(x) - (lambda_m^2+s^2)*psi_m(x) = 0
if k_m is set to
k_m = sqrt(lambda_m^2+s^2)

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by