Wanna find x that maximize a function including symbolic variables

13 ビュー (過去 30 日間)
嵩人 藤森
嵩人 藤森 2021 年 5 月 20 日
コメント済み: 嵩人 藤森 2021 年 5 月 22 日
Hello,
I wanna find x that maximize the following unction including symbolic variables. Please teach me how to do so.
K,m,T,D >0
-------------------------------------------------------------------------
syms K,m,T,D,x
f(x)=sqrt(1/( (K-(m+T*D)*x^2)^2 + x^2*(D+T*K-T*m*x^2)^2))
------------------------------------------------------------------------------
Best regards
  2 件のコメント
Torsten
Torsten 2021 年 5 月 20 日
編集済み: Torsten 2021 年 5 月 20 日
Set the denominator to zero and use Matlab's "solve" to solve for x^2.
If you don't get x real-valued, differentiate the denominator with respect to x, set the derivative to zero and again use Matlab's "solve" to solve for x.
嵩人 藤森
嵩人 藤森 2021 年 5 月 22 日
thx!!!

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

採用された回答

KSSV
KSSV 2021 年 5 月 20 日
syms K m T D x
f(x)=sqrt(1/( (K-(m+T*D)*x^2)^2 + x^2*(D+T*K-T*m*x^2)^2)) ;
df = diff(f,x)
df(x) = 
s = solve(df,x)
Warning: Solutions are only valid under certain conditions. To include parameters and conditions in the solution, specify the 'ReturnConditions' value as 'true'.
s = 

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by