Mathematica で基礎的な微分を行う
極限
x -> Infinityとした場合の式の極限関数を計算することができます.
![[Graphics:Images/index2_gr_78.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_78.gif)
![[Graphics:Images/index2_gr_79.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_79.gif)
Limit関数を使って次の導関数の定義をテストすることもできます.
![[Graphics:Images/index2_gr_80.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_80.gif)
![[Graphics:Images/index2_gr_81.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_81.gif)
![[Graphics:Images/index2_gr_82.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_82.gif)
![[Graphics:Images/index2_gr_83.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_83.gif)
どの方向から極限を計算するかの指定もできます.次の例ではtan(x)の極限を決定する際にDirectionオプションが使われています.
![[Graphics:Images/index2_gr_84.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_84.gif)
![[Graphics:Images/index2_gr_85.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_85.gif)
![[Graphics:Images/index2_gr_86.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_86.gif)
![[Graphics:Images/index2_gr_87.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_87.gif)
導関数の計算
Mathematica はDコマンドを使って導関数を計算します.
![[Graphics:Images/index2_gr_88.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_88.gif)
![[Graphics:Images/index2_gr_89.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_89.gif)
この例ではt についての2次導関数を求めるのにDが使われています.このため,{t, 2}がDの第2引数となっています.
![[Graphics:Images/index2_gr_90.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_90.gif)
![[Graphics:Images/index2_gr_91.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_91.gif)
積分の計算
Mathematica のユニークで最もパワフルな側面のひとつは,関数を数値的にだけでなく記号的にも積分できることです.まずはじめに代数式を積分します.
![[Graphics:Images/index2_gr_92.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_92.gif)
![[Graphics:Images/index2_gr_93.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_93.gif)
ここで,Mathematica は指定された0から3の区間の曲線の下の面積を計算します.
![[Graphics:Images/index2_gr_94.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_94.gif)
![[Graphics:Images/index2_gr_95.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_95.gif)
記号的には行えない積分もあります.
![[Graphics:Images/index2_gr_96.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_96.gif)
![[Graphics:Images/index2_gr_97.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_97.gif)
次の定積分は記号的には解けません.しかし,NIntegrateを使うと問題となっている積分の数値近似値が返されます.
![[Graphics:Images/index2_gr_98.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_98.gif)
![[Graphics:Images/index2_gr_99.gif]](http://library.wolfram.com/howtos/calculus/Images/index2_gr_99.gif)
|