How to find ist and second derivative using MATLAB code?

5 ビュー (過去 30 日間)
Ayesha Aziz
Ayesha Aziz 2019 年 11 月 21 日
コメント済み: Walter Roberson 2022 年 1 月 7 日
Find the first and second derivative of the following function with respect to x using MATLAB command. Then create a surface plot of the given function and its first and second derivatives by defining X and Y using meshgrid command with hold on and hold off command. the function is f(x,y)= xy(x^2-y^2)
  2 件のコメント
KSSV
KSSV 2019 年 11 月 21 日
What have you tried?
Vladimir Sovkov
Vladimir Sovkov 2019 年 11 月 21 日
If you deal with only one function you present, the easiest way is to just find the required derivatives analytically via elementary calculus, and compute using the resulting equations. If you plan to work with many various analytical function, the "Symbolic Math Toolbox" provides the call function "diff" for that. For a function defined in a tabular form, via some complicated algorithms, etc., the derivatives can be computed numerically by the finite-difference algorithm, Fourier-transform algorithm... Whatever you want...

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

回答 (1 件)

Mayuri Tambat
Mayuri Tambat 2022 年 1 月 7 日
Determine the first and second derivative of the following functions using MATLAB symbolic functions g(x)=x^3-5x^2+2x+8

カテゴリ

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

製品


リリース

R2007a

Community Treasure Hunt

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

Start Hunting!

Translated by