【Mathematica】微分方程式の解き方

Mathematicaで微分方程式を解くときのコマンドは次のとおりである。

 \displaystyle \frac{d^{2}x(t)}{dt^{2}} = -\frac{k}{m}(x(t)-L)

DSolve[x”[t] == -(k/m) (x[t]-L), {x[t]}, {t}]

初期条件、境界条件を指定する場合は次のようにする。

DSolve[{x”[t] == -(k/m) (x[t]-L), x[0] == 0, x'[0] == 0}, {x[t]}, {t}]

sciencompass34 has written 157 articles

はじめまして!”あおやぎ”と言います。
メーカーで研究開発の仕事をしています。このブログでは、私の専門分野である半導体やそれに関連する内容を紹介していきます。
半導体関連の知識をまとめたデータベースのようにしたいなと思っています。

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください