Solving a Second order ODE in matlab

I need to solve the equation u" + 1 = 0 with BC's of du/dx at x = 0 = 0 and du/dx at x = 1 = -Bi*u(1,theta). u is a function of x and theta; u(x,theta). How can this be done easily in matlab. I assume I need to use ode45 but I am not very familiar with these functions in matlab.

2 件のコメント

Nick Alden
Nick Alden 2017 年 11 月 30 日
Forgot to mention this is a definite integral from x = 0 to x = 1
Nick Alden
Nick Alden 2017 年 11 月 30 日
I am trying to solve this so that I can find the Initial Condition, I am solving a problem where I have those two boundary conditions and the governing equation but don't know the IC and need the IC to continue further with this problem.

サインインしてコメントする。

 採用された回答

Torsten
Torsten 2017 年 12 月 1 日

0 投票

Solution is
u(x) = -0.5*x^2 + (2+Bi)/(2*Bi)
Best wishes
Torsten.

3 件のコメント

Nick Alden
Nick Alden 2017 年 12 月 1 日
Is there a good way for coding this in matlab so that in the future I can also easily solve these types of problems?
Torsten
Torsten 2017 年 12 月 1 日
Try dsolve:
https://de.mathworks.com/help/symbolic/dsolve.html
Best wishes
Torsten.
Nick Alden
Nick Alden 2017 年 12 月 1 日
Thanks, will give it a shot!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

質問済み:

2017 年 11 月 30 日

コメント済み:

2017 年 12 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by