second analytical solution of implicit equation

When I do the command
F = M*exp(-M^2/2)==(2.72498/r)^2*exp(1.5-2*(2.72498/r));
solve(F, M)
it returns only 1 analytical solution of the two. Is there a way to get the expression for the second solution? When the function is plotted implicitly you can see that it goes like the figure.
How to get to an expression for the other branches? I succeeded in plotting the braches seperatly, but I need the expression for further calculation and plotting of other values containing these M and r, composed of solutions of the different branches.

2 件のコメント

Star Strider
Star Strider 2022 年 12 月 30 日
It returns two solutions in r, and one solution in M
syms M r
F = M*exp(-M^2/2)==(2.72498/r)^2*exp(1.5-2*(2.72498/r));
M_sol = solve(F, M)
M_sol = 
r_sol = solve(F, r)
r_sol = 
.
renee
renee 2022 年 12 月 30 日
Indeed, but my question is: how to get to the second solution in M which it clearly has.

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

回答 (2 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022 年 12 月 30 日

0 投票

This is the same as the solution proposed by Star Strider:
syms M r
EQN = M*exp(-M^2/2)==(2.72498/r)^2*exp(1.5-2*(2.72498/r));
Solution_M =solve(EQN,M,'IgnoreAnalyticConstraints',true)
Solution_M = 
Solution_M =solve(EQN, r,'IgnoreAnalyticConstraints',true)
Solution_M = 
Star Strider
Star Strider 2022 年 12 月 30 日

0 投票

I believe you are plotting ‘M’ as a funciton of ‘r’ however it likely does not have an analytic solution. In the lambertw argument, it is a function of and more generally, , however I doubt that it is possible to factor it further. A numeric solution is the only option.
syms M r
F = M*exp(-M^2/2)==(2.72498/r)^2*exp(1.5-2*(2.72498/r));
Fc(r,M) = M*exp(-M^2/2) - ((2.72498/r)^2*exp(1.5-2*(2.72498/r)));
M_sol = solve(F, M)
M_sol = 
Mr_sol = solve(M_sol,r)
Mr_sol = Empty sym: 0-by-1
r_sol = solve(F, r)
r_sol = 
figure
fsurf(Fc, [0 5 0.01 5])
colormap(turbo)
figure
fimplicit(Fc, [0 5 0.01 5])
colormap(turbo)
xlabel('r')
ylabel('M')
.

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

質問済み:

2022 年 12 月 29 日

回答済み:

2022 年 12 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by