Exact Ordinary Differential Equation

28 ビュー (過去 30 日間)
JC.UT
JC.UT 2021 年 4 月 9 日
回答済み: Lakshmi 2023 年 12 月 11 日
syms y(x)
ode=y*(1-x^2)*(diff(y))== ((x*y^2)-(cos(x)*sin(x)))
sol=dsolve(ode)
ode(x) =
-y(x)*(x^2 - 1)*diff(y(x), x) == x*y(x)^2 - cos(x)*sin(x)
sol =
((C1 - cos(x)^2)*(x - 1)*(x + 1))^(1/2)/(x^2 - 1)
-((C1 - cos(x)^2)*(x - 1)*(x + 1))^(1/2)/(x^2 - 1)
Did I properly tranlate the problem below correctly using the right syntax and operations ? Can you please check my code, is it correct ?

採用された回答

Samuel Brewton
Samuel Brewton 2021 年 4 月 9 日
I just ran it through and got the same solution so it seems to check out.

その他の回答 (1 件)

Lakshmi
Lakshmi 2023 年 12 月 11 日
dx

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by