{"id":4328,"date":"2020-02-12T18:00:37","date_gmt":"2020-02-12T09:00:37","guid":{"rendered":"https:\/\/virtualcast.jp\/blog\/?p=4328"},"modified":"2020-02-13T11:31:13","modified_gmt":"2020-02-13T02:31:13","slug":"unity_differential_equation","status":"publish","type":"post","link":"https:\/\/blog.virtualcast.jp\/blog\/2020\/02\/unity_differential_equation\/","title":{"rendered":"\u4e8c\u91cd\u632f\u308a\u5b50\u30ab\u30aa\u30b9\uff01"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001 t-kuhn \u3067\u3059\u3002\u4eca\u65e5\u306f\u4e8c\u91cd\u632f\u308a\u5b50\u3092 Unity \u3067\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3057\u3066\u307f\u305f\u8a71\u306b\u3064\u3044\u3066\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<div style=\"width: 1280px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-4328-1\" width=\"1280\" height=\"720\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2020\/02\/2020-02-04-11-15-17.mp4?_=1\" \/><a href=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2020\/02\/2020-02-04-11-15-17.mp4\">https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2020\/02\/2020-02-04-11-15-17.mp4<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\n<p>\u4e0a\u306e\u52d5\u753b\u306e\u4e8c\u91cd\u632f\u308a\u5b50\u306e\u52d5\u304d\u304c\u3053\u306e\u8a18\u4e8b\u306e\u6570\u5b66\u3092 Unity \u3067\u5b9f\u88c5\u3057\u305f\u7d50\u679c\u3067\u3059\u3002Unity \u306e\u7269\u7406\u30a8\u30f3\u30b8\u30f3\u3092\u4f7f\u308f\u305a\u306b\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u6570\u5024\u8a08\u7b97\u3067\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u53d6\u3063\u3066\u3044\u307e\u3059\u3002\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u4f7f\u3063\u305f\u5fae\u5206\u65b9\u7a0b\u5f0f\u306f\u4ee5\u4e0b\u306e\u4e8c\u3064\u3067\u3059\u3002<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\n(m_1 + m_2) l_1 \\ddot{\\theta}_1 + m_2 l_2 \\ddot{\\theta}_2 \\cos(\\theta_1 - \\theta_2)<br \/>\n\\\\+m_2 l_2 \\dot{\\theta}^2_2 \\sin(\\theta_1 - \\theta_2) + g (m_1 + m_2) \\sin \\theta_1 &amp;= 0<br \/>\n\\tag{0.1}<br \/>\n\\\\<br \/>\n\\\\<br \/>\nm_2 l_2 \\ddot{\\theta}_2 + m_2 l_1 \\ddot{\\theta}_1 cos(\\theta_1 - \\theta_2) \\\\<br \/>\n-m_2 l_1 \\dot{\\theta}^2_1 sin(\\theta_1 - \\theta_2) + m_2 g \\sin \\theta_2 &amp;= 0<br \/>\n\\tag{0.2}<br \/>\n\\end{align}<br \/>\n$$<\/p>\n<p>\u300c\u4f55\u3082\u5b9a\u7fa9\u305b\u305a\u306b\u7a81\u7136\u3053\u3093\u306a\u65b9\u7a0b\u5f0f\u3092\u51fa\u3055\u308c\u3066\u3082\u2026\uff01\u300d\u3068\u9854\u3092\u3057\u304b\u3081\u3066\u307b\u3057\u3044\u3067\u3059\u3002\u300c\u305d\u3082\u305d\u3082\u3069\u3053\u304b\u3089\u6765\u305f\u5fae\u5206\u65b9\u7a0b\u5f0f\u3060\u3088\uff01\u3069\u3046\u3084\u3063\u3066\u5c0e\u51fa\u3057\u305f\u306e\uff1f\u300d\u3068\u7591\u554f\u3092\u6301\u3063\u3066\u304f\u308c\u308c\u3070\u306a\u304a\u3055\u3089\u3067\u3059\u3002\u306e\u3061\u307b\u3069\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u307e\u305a\u4f1d\u3048\u305f\u3044\u306e\u306f<br \/>\n<b>\u300c\u3042\u308b\u7269\u7406\u30b7\u30b9\u30c6\u30e0\u3092\u73fe\u308f\u3057\u3066\u3044\u308b\u5fae\u5206\u65b9\u7a0b\u5f0f\u304c\u3042\u308c\u3070\u6570\u5024\u8a08\u7b97\u3067\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u304d\u308b\u300d<\/b><br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>Unity \u3067\u7269\u7406\u30b7\u30b9\u30c6\u30e0\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u3068\u304d\u306f\u6b21\u306e\u3088\u3046\u306a\u30b9\u30c6\u30c3\u30d7\u3092\u8e0f\u3093\u3067\u3044\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30b7\u30b9\u30c6\u30e0\u3092\u5206\u6790\u3001\u56f3\u5f62\u3092\u7528\u3044\u3066\u5909\u6570\u3092\u5b9a\u7fa9<\/li>\n<li>\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u5c0e\u51fa<\/li>\n<li>\u4e8c\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\uff12\u3064\u306e\u4e00\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u306b\u5206\u5272\uff08Euler \u6cd5\u3092\u4f7f\u3046\u305f\u3081\u306e\u6e96\u5099\uff09<\/li>\n<li>Euler \u6cd5\u3067\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b<\/li>\n<\/ol>\n<p>\u3044\u3046\u307e\u3067\u3082\u306a\u304f\u3001\u7269\u7406\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u3063\u3066\u306f\u5c11\u3057\u7570\u306a\u3063\u3066\u304d\u307e\u3059\u304c\u3001\u3053\u306e\u8a18\u4e8b\u3067\u53d6\u308a\u4e0a\u3052\u3066\u3044\u308b\u4e8c\u91cd\u632f\u308a\u5b50\u306e\u5834\u5408\u306f\u3053\u306e4\u30b9\u30c6\u30c3\u30d7\u3067\u3057\u305f\u3002<\/p>\n<h2>1. \u30b7\u30b9\u30c6\u30e0\u3092\u5206\u6790\u3001\u56f3\u5f62\u3092\u7528\u3044\u3066\u5909\u6570\u3092\u5b9a\u7fa9<\/h2>\n<p><img src=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2020\/02\/double-pendulum-fig-1.png\" alt=\"\u56f31\" \/><\/p>\n<p>\u624b\u66f8\u304d\u3067\u5c11\u3057\u8aad\u307f\u306b\u304f\u3044\u3068\u3053\u308d\u306f\u3042\u308b\u304c\u3001\u3053\u306e\u56f3\u304c\u3042\u308b\u3060\u3051\u3067\u524d\u7ae0\u306e\u5f0f\uff080.1\uff09\u3068\uff080.2\uff09\u304c\u3060\u3044\u3076\u8aad\u3081\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<ul>\n<li>$m_1$ \u3068 $m_2$ \u306f\u632f\u308a\u5b50\u306e\u305d\u308c\u305e\u308c\u8cea\u91cf\uff08\u5358\u4f4d\u306f $\\mathrm{kg}$ \uff09<\/li>\n<li>$l_1$ \u3068 $l_2$ \u306f\u8cea\u91cf\u3092\u6301\u305f\u306a\u3044\u30ea\u30f3\u30af\u306e\u9577\u3055\uff08\u5358\u4f4d\u306f $\\mathrm{m}$ \uff09<\/li>\n<li>$\\theta_1$ \u306f\u5ea7\u6a19\u7cfb\u306ey\u8ef8\u3068 $l_1$ \u304c\u306a\u3059\u89d2\u5ea6\uff08\u5358\u4f4d\u306f $\\mathrm{rad}$ \uff09<\/li>\n<li>$\\theta_2$ \u306f\u5ea7\u6a19\u7cfb\u306ey\u8ef8\u3068\u4e26\u884c\u306a\u7dda\u3068 $l_2$ \u304c\u306a\u3059\u89d2\u5ea6\uff08\u5358\u4f4d\u306f $\\mathrm{rad}$ \uff09<\/li>\n<\/ul>\n<p>\u3053\u3053\u3067 $\\theta_2$ \u306e\u5b9a\u7fa9\u306b\u6ce8\u76ee\u3057\u3066\u3082\u3089\u3044\u305f\u3044\u3067\u3059\u3002 $\\theta_1$ \u304c\u5909\u5316\u3059\u308b\u3068\u30ea\u30f3\u30af $l_1$ \u304c\u56de\u308a\u307e\u3059\u304c\u3001\u30ea\u30f3\u30af $l_2$ \u306e\u6307\u3059\u65b9\u5411\u306f\u4e00\u5207\u5909\u308f\u308a\u307e\u305b\u3093\u3002Unity\u306e\u4e8c\u91cd\u632f\u308a\u5b50\u30e2\u30c7\u30eb\u3082\u305d\u308c\u3092\u53cd\u6620\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u306e\u3067\u3001 $\\theta_2$ \u3092\u624b\u52d5\u3067\u3044\u3058\u308b\u3068\u4e0b\u306e\u30d3\u30c7\u30aa\u306e\u3088\u3046\u306b\u52d5\u304b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-4328-2\" width=\"1280\" height=\"720\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2020\/02\/2020-02-04-17-37-32.mp4?_=2\" \/><a href=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2020\/02\/2020-02-04-17-37-32.mp4\">https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2020\/02\/2020-02-04-17-37-32.mp4<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\n<p>\u5c11\u3057\u7d30\u304b\u3044\u3068\u3053\u308d\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001Unity \u5185\u306e\u30e2\u30c7\u30eb\u306e\u5b9a\u7fa9\u3068\u6570\u5b66\u7684\u30e2\u30c7\u30eb\u306e\u5b9a\u7fa9\u304c\u5408\u3063\u3066\u3044\u306a\u3044\u3068\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u4e88\u60f3\u901a\u308a\u306b\u52d5\u304b\u306a\u3044\u304b\u3089\u8981\u6ce8\u610f\u3067\u3059\u3002<\/p>\n<h2>2. \u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u5c0e\u51fa<\/h2>\n<p>\u56f3\u3092\u63cf\u3044\u3066\u4f55\u304c\u3069\u3046\u7e4b\u304c\u3063\u3066\u3044\u3066\u3001\u89d2\u5ea6\u306f\u3069\u3046\u6e2c\u3063\u3066\u3044\u308b\u304b\u3092\u5b9a\u7fa9\u3057\u305f\u304b\u3089\u3001\u5fae\u5206\u65b9\u7a0b\u5f0f\u306e\u5c0e\u51fa\u306b\u9032\u3081\u3089\u308c\u307e\u3059\u3002\u4e8c\u91cd\u632f\u308a\u5b50\u306e\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u5c0e\u304d\u51fa\u3059\u306e\u306f\u5bb9\u6613\u306a\u3053\u3068\u3067\u306f\u306a\u3044\u3002\u9032\u3080\u3079\u304d\u9053\u3092\u898b\u305b\u3066\u304f\u308c\u308b\u30ac\u30a4\u30c9\u7684\u306a\u4f55\u304b\u304c\u306a\u3044\u3068\u4e0d\u5b89\u306a\u306e\u3067<a href=\"http:\/\/scienceworld.wolfram.com\/physics\/DoublePendulum.html\">\u3053\u306e\u8a18\u4e8b<\/a>\u3092\u30ac\u30a4\u30c9\u306b\u6570\u5b66\u3092\u9032\u3081\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>\u30ac\u30a4\u30c9\u8a18\u4e8b\u3092\u898b\u3066\u307f\u308b\u3068\u524d\u7ae0\u306e\u5f0f\uff080.1\uff09\u3068\uff080.2\uff09\u304c\u30ac\u30a4\u30c9\u8a18\u4e8b\u306e\u5f0f\uff0814\uff09\u3068\uff0819\uff09\u306b\u8a72\u5f53\u3059\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u3002\u30ac\u30a4\u30c9\u8a18\u4e8b\u306b\u306f\u5c0e\u51fa\u65b9\u6cd5\u306e\u6982\u8981\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u304c\u3001\u7d30\u304b\u3044\u3068\u3053\u308d\u306f\u7701\u304b\u308c\u3066\u3044\u308b\u304b\u3089\u30ac\u30a4\u30c9\u8a18\u4e8b\u306e\u8b70\u8ad6\u3092\u8ffd\u3044\u306a\u304c\u3089\u3067\u304d\u308b\u3060\u3051\u5206\u304b\u308a\u3084\u3059\u304f\u3001\u5f0f\u5909\u5f62\u306e\u9014\u4e2d\u7d50\u679c\u3082\u8f09\u305b\u3066\u8aac\u660e\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u6700\u521d\u306b\u632f\u308a\u5b50\u306e\u305d\u308c\u305e\u308c\u306e\u8cea\u70b9 $m_1$ \u3068 $m_2$ \u306e\u4f4d\u7f6e\u3092xy\u5ea7\u6a19\u3067\u8868\u3059\u3068<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\nx_1 &amp;= l_1 \\sin{\\theta_1} \\\\<br \/>\ny_1 &amp;= - l_1 \\cos{\\theta_1} \\\\<br \/>\nx_2 &amp;= l_1 \\sin{\\theta_1} + l_2 \\sin{\\theta_2} \\\\<br \/>\ny_2 &amp;= - l_1 \\cos{\\theta_1} - l_2 \\cos{\\theta_2}<br \/>\n\\tag{2.1}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u7d50\u679c\u306f Fig. 1 \u306b\u3057\u305f\u306e\u56f3\u306b\u3042\u308b\u3088\u3046\u306b\u76f4\u89d2\u4e09\u89d2\u5f62\u3092\u63cf\u3044\u3066\u4e09\u89d2\u95a2\u6570\uff08sin \u3068 cos\uff09\u306e\u5b9a\u7fa9\u3092\u9069\u7528\u3059\u308b\u3068\u6c42\u307e\u308b\u3002<\/p>\n<p><img src=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2020\/02\/double-pendulum-fig-2.png\" alt=\"\u56f32\" \/><\/p>\n<p>\u6b21\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u4f4d\u7f6e\u30a8\u30cd\u30eb\u30ae\u30fc $V$ \u3068\u904b\u52d5\u30a8\u30cd\u30eb\u30ae\u30fc $T$ \u3092\u6c42\u3081\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u3002\u5f8c\u307b\u3069\u5fae\u5206\u65b9\u7a0b\u5f0f\u306e\u5c0e\u51fa\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u306e\u4f4d\u7f6e\u30a8\u30cd\u30eb\u30ae\u30fc $V$ \u306f<\/p>\n<p>$$<br \/>\nV = m_1 g y_1 + m_2 g y_2<br \/>\n\\tag{2.2}<br \/>\n$$<\/p>\n<p>\u3067\u3042\u308b\u3002(2.2) \u306e $y_1$ \u3068 $y_2$ \u306f (2.1) \u306e\u65b9\u7a0b\u5f0f\u306b\u3082\u51fa\u3066\u3044\u307e\u3059\u306d\u3002(2.1) \u306e\u4ee5\u4e0b\u306e\u4e8c\u3064\u306e\u5f0f\u3092<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\ny_1 &amp;= - l_1 \\cos{\\theta_1} \\\\<br \/>\ny_2 &amp;= - l_1 \\cos{\\theta_1} - l_2 \\cos{\\theta_2}<br \/>\n\\end{align}<br \/>\n$$<\/p>\n<p>(2.2) \u306b\u4ee3\u5165\u3059\u308b\u3068<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\nV &amp;= m_1 g (-l_1 \\cos{\\theta_1}) + m_2 g (-l_1 \\cos{\\theta_1} - l_2 \\cos{\\theta_2})<br \/>\n\\\\<br \/>\n&amp;= -m_1 g l_1 \\cos{\\theta_1} - m_2 g l_1 \\cos{\\theta_1} - m_2 g l_2 \\cos{\\theta_2})<br \/>\n\\\\<br \/>\n&amp;= -(m_1 + m_2)g l_1 \\cos(\\theta_1) - m_2 g l_2 \\cos{\\theta_2}<br \/>\n\\tag{2.3}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u904b\u52d5\u30a8\u30cd\u30eb\u30ae\u30fc $T$ \u3067\u3059\u3002\u53e4\u5178\u529b\u5b66\u306e\u904b\u52d5\u30a8\u30cd\u30eb\u30ae\u30fc\u306e\u5b9a\u7fa9\u304c<br \/>\n$$<br \/>\nE_k = \\frac{1}{2}mv^2<br \/>\n$$<br \/>\n\u3067\u3042\u308b\u3053\u3068\u3092\u601d\u3044\u51fa\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u4e00\u5ea6\u79c1\u305f\u3061\u304c\u8003\u5bdf\u3057\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u306e\u8cea\u70b9 $m_1$ \u3068 $m_2$ \u306e\u305d\u308c\u305e\u308c\u306e\u901f\u5ea6 $v_1$ \u3068 $v_2$ \u304c\u3069\u306e\u3088\u3046\u306b\u6c42\u307e\u308b\u304b\u306b\u3064\u3044\u3066\u8003\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u89d2\u5ea6 $\\theta$ \u306e\u89d2\u901f\u5ea6\u304c $\\dot{\\theta}$ \u306b\u306a\u308a\u307e\u3059\u3002\u305d\u3057\u3066\u539f\u70b9\u304b\u3089\u8ddd\u96e2 $r$ \u96e2\u308c\u305f\u8cea\u70b9\u3092\u89d2\u901f\u5ea6 $\\dot{\\theta}$ \u3067\u539f\u70b9\u3092\u4e2d\u5fc3\u306b\u56de\u3059\u3068\u8cea\u70b9\u306e\u901f\u5ea6 $v$ \u304c<br \/>\n$$<br \/>\nv = \\dot{\\theta} r<br \/>\n\\tag{2.4}<br \/>\n$$<br \/>\n\u306b\u306a\u308b\u306e\u3067<br \/>\n$$<br \/>\nv_1 = l_1 \\dot{\\theta}_1<br \/>\n\\tag{2.5}<br \/>\n$$<br \/>\n\u3068 \u8cea\u70b9 $m_1$ \u306e\u901f\u5ea6 $v_1$ \u304c\u6c42\u307e\u308a\u307e\u3057\u305f\u3002\u6b21\u306b $v_2$ \u3092\u6c42\u3081\u307e\u3057\u3087\u3046\u3002(2.1) \u306e\u4ee5\u4e0b\u306e\u4e8c\u3064\u306e\u65b9\u7a0b\u5f0f\u304b\u3089\u30b9\u30bf\u30fc\u30c8\u3057\u307e\u3059\u3002<br \/>\n$$<br \/>\n\\begin{align}<br \/>\nx_2 &amp;= l_1 \\sin{\\theta_1} + l_2 \\sin{\\theta_2} \\\\<br \/>\ny_2 &amp;= - l_1 \\cos{\\theta_1} - l_2 \\cos{\\theta_2}<br \/>\n\\tag{2.6}<br \/>\n\\end{align}<br \/>\n$$<\/p>\n<p>$x_2$ \u3068 $y_2$ \u3092\u6642\u9593 $t$ \u3067\u5fae\u5206\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u305d\u308c\u305d\u308c\u306e\u6210\u5206\u306e\u901f\u5ea6 $v_{x_2}$ \u3068 $v_{y_2}$\u00a0\u3092\u6c42\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\nv_{x_2} =\u00a0l_1 \\dot{\\theta}_1\u00a0 \\cos{\\theta_1} + l_2 \\dot{\\theta}_2 \\cos{\\theta_2}\\\\<br \/>\nv_{y_2} =\u00a0l_1 \\dot{\\theta}_1 \\sin{\\theta_1} + l_2 \\dot{\\theta}_2 \\sin{\\theta_2}<br \/>\n\\tag{2.7}<br \/>\n\\end{align}<br \/>\n$$<\/p>\n<p>\u3053\u3053\u3067\u300c$t$ \u3067\u5fae\u5206\u3059\u308b\u3063\u3066\u8a00\u3063\u3066\u3082\u3001(2.6) \u306b $t$ \u306a\u3093\u304b\u3069\u3053\u306b\u3082\u306a\u3044\u305e\uff01\u300d\u3068\u601d\u3046\u4eba\u304c\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002\u3053\u308c\u306f $\\theta(t)$ \u3092 $\\theta$ \u3068\u7701\u7565\u3057\u3066\u308b\u304b\u3089\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u306e $\\theta$ \u306f\u307f\u3093\u306a\u672c\u5f53\u306f $\\theta(t)$ \u3068\u601d\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u6570\u5f0f\u304c\u898b\u3084\u3059\u304f\u306a\u308b\u304b\u3089\u7701\u7565\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<blockquote><p>(2.6) \u3092\u6642\u9593 $t$ \u3067\u5fae\u5206\u3059\u308b\u3068\u304d\u9023\u9396\u5f8b<br \/>\n$$<br \/>\n\\frac{d}{dt}f(g(t)) = f'(g(t)) g'(t)<br \/>\n$$<br \/>\n\u304c\u9069\u7528\u3055\u308c\u308b\u3002<\/p><\/blockquote>\n<p>\u3055\u3066\u00a0(2.7) \u306e\u305d\u308c\u305e\u308c\u306e\u901f\u5ea6\u6210\u5206\u304b\u3089 $v_2$ \u3092\u6c42\u3081\u3088\u3046\u3002\u30d4\u30bf\u30b4\u30e9\u30b9\u306e\u5b9a\u7406\u304b\u3089<br \/>\n$$<br \/>\nv_2 = \\sqrt{v_{x_2}^2 + v<\/em>{y_2}^2}<br \/>\n\\tag{2.8}<br \/>\n$$<\/p>\n<p>\u305d\u3057\u3066 (2.8) \u306b (2.7) \u3092\u4ee3\u5165\u3057\u3066\u6574\u7406\u3059\u308b\u3068<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\nv_2 &amp;= \\sqrt{(l_1 \\dot{\\theta}_1 \\cos{\\theta_1} + l_2 \\dot{\\theta}_2 \\cos{\\theta_2})^2(l_1 \\dot{\\theta}_1 \\sin{\\theta_1} + l_2 \\dot{\\theta}_2 \\sin{\\theta_2})^2} \\\\<br \/>\n&amp;= \\sqrt{l_1^2 \\dot{\\theta}^2_1 (\\cos^2{\\theta_1} + \\sin^2{\\theta_1}) + l_2^2 \\dot{\\theta}^2_2\u00a0(\\cos^2{\\theta_2} + \\sin^2{\\theta_2}) + l_1 l_2 \\dot{\\theta}_1 \\dot{\\theta}_2 \\cos(\\theta_1 - \\theta_2)} \\\\<br \/>\n&amp;= \\sqrt{l_1^2 \\dot{\\theta}^2_1 + l_2^2 \\dot{\\theta}^2_2 + l_1 l_2 \\dot{\\theta}_1 \\dot{\\theta}_2 \\cos(\\theta_1 - \\theta_2)}<br \/>\n\\tag{2.9}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u304c\u5f97\u3089\u308c\u308b\u3002\u3053\u308c\u3067 $v_1$ \u3068 $v_2$ \u304c\u6c42\u307e\u3063\u305f\u306e\u3067\u3084\u3063\u3068\u904b\u52d5\u30a8\u30cd\u30eb\u30ae\u30fc $T$ \u306b\u623b\u308c\u307e\u3059\u3002\u904b\u52d5\u30a8\u30cd\u30eb\u30ae\u30fc\u306e\u5b9a\u7fa9<br \/>\n$$<br \/>\nE_k = \\frac{1}{2}mv^2<br \/>\n$$<br \/>\n\u304b\u3089\u79c1\u305f\u3061\u304c\u8003\u5bdf\u3057\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u306e\u904b\u52d5\u30a8\u30cd\u30eb\u30ae\u30fc $T$ \u306f<br \/>\n$$<br \/>\nT = \\frac{1}{2}m_1 v_1^2 +\u00a0\\frac{1}{2}m_2 v_2^2<br \/>\n\\tag{2.10}<br \/>\n$$<br \/>\n\u3068\u6c42\u307e\u308a\u307e\u3059\u3002<\/p>\n<p>(2.10) \u306b (2.5) \u3067\u6c42\u307e\u3063\u305f $v_1$ \u3068 (2.9) \u3067\u6c42\u307e\u3063\u305f $v_2$ \u3092\u4ee3\u5165\u3059\u308b\u3068<br \/>\n$$<br \/>\nT = \\frac{1}{2}m_1 l_1^2 \\dot{\\theta}_1^2 +\u00a0\\frac{1}{2}m_2 \\left(l_1^2 \\dot{\\theta}^2_1 + l_2^2 \\dot{\\theta}^2_2 + 2 l_1 l_2 \\dot{\\theta}_1 \\dot{\\theta}_2 \\cos(\\theta_1 - \\theta_2)\\right)<br \/>\n\\tag{2.11}<br \/>\n$$<br \/>\n\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u30b7\u30b9\u30c6\u30e0\u306e\u4f4d\u7f6e\u30a8\u30cd\u30eb\u30ae\u30fc $V$ \u3068\u904b\u52d5\u30a8\u30cd\u30eb\u30ae\u30fc $T$ \u304c\u6c42\u307e\u3063\u305f\uff01\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u5c0e\u51fa\u3059\u308b\u305f\u3081\u306b Lagrangian Mechanics \u306e\u6570\u5b66\u3092\u4f7f\u3044\u307e\u3059\u3002\u4e00\u822c\u7684\u306b Newtonian Mechanics \u3092\u7528\u3044\u3066\u529b\u306e\u91e3\u308a\u5408\u3044\u3068 $F = ma$ \u306e\u95a2\u4fc2\u304b\u3089\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u5c0e\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304c\u3001\u4e8c\u91cd\u632f\u308a\u5b50\u306e\u3088\u3046\u306b\u3001\u8cea\u70b9\u306e\u8ecc\u9053\u304c\u5236\u7d04\u3055\u308c\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u306e\u5834\u5408\u3001 Lagrangian Mechanics \u3092\u4f7f\u3063\u305f\u65b9\u304c\u90fd\u5408\u304c\u3044\u3044\u3002\u3068\u3044\u3046\u3053\u3068\u3067 Lagrangian Mechanics \u306e\u4e16\u754c\u306b\u7a81\u5165\uff01<\/p>\n<p>Lagrangian $\\mathcal{L}$ \u304c<br \/>\n$$<br \/>\n\\mathcal{L} =\u00a0 T - V<br \/>\n\\tag{2.12}<br \/>\n$$<br \/>\n\u3068\u5b9a\u7fa9\u3055\u308c\u308b\u3002<\/p>\n<p>(2.12) \u306b (2.3) \u3068 (2.11) \u3092\u4ee3\u5165\u3059\u308b\u3068<br \/>\n$$<br \/>\n\\begin{align}<br \/>\n\\mathcal{L} =&amp;\u00a0\u00a0\\frac{1}{2}m_1 l_1^2 \\dot{\\theta}_1^2 +\u00a0\\frac{1}{2}m_2 \\left(l_1^2 \\dot{\\theta}^2_1 + l_2^2 \\dot{\\theta}^2_2 + 2 l_1 l_2 \\dot{\\theta}_1 \\dot{\\theta}_2 \\cos(\\theta_1 - \\theta_2)\\right)\u00a0 \\\\<br \/>\n&amp;- \\left(\u00a0-(m_1 + m_2)g l_1 \\cos(\\theta_1) - m_2 g l_2 \\cos{\\theta_2} \\right) \\\\<br \/>\n=&amp; \\frac{1}{2}(m_1 + m_2) l_1^2 \\dot{\\theta}^2_1 + \\frac{1}{2}m_2l_2^2\\dot{\\theta}^2_2 + m_2 l_1 l_2 \\dot{\\theta}_1 \\dot{\\theta}_2 \\cos(\\theta_1 - \\theta_2) \\\\<br \/>\n&amp;+(m_1 + m_2)g l_1 cos{\\theta_1} + m_2 g l_2 \\cos{\\theta_2}<br \/>\n\\tag{2.13}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306f Euler-Lagrange\u00a0\u65b9\u7a0b\u5f0f\u306e\u767b\u5834\u3067\u3059\u3002\u3053\u306e\u65b9\u7a0b\u5f0f\u306f Newtonian Mechanics \u306e\u6709\u540d\u306a\u904b\u52d5\u306e\u6cd5\u5247\u306e Lagrangian Mechanics \u7248\u3067\u3059\u3002$\\theta_1$ \u306b\u3064\u3044\u3066\u306e Euler-Lagrange\u00a0\u65b9\u7a0b\u5f0f\u306f<\/p>\n<p>$$<br \/>\n\\frac{d}{dt}\\left(\\frac{\\partial \\mathcal{L}}{\\partial \\dot{\\theta}_1}\\right) -\u00a0\\frac{\\partial \\mathcal{L}}{\\partial \\theta_1} = 0<br \/>\n\\tag{2.14}<br \/>\n$$<\/p>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3082\u3046\u5c11\u3057\u3067\u4e8c\u91cd\u632f\u308a\u5b50\u306e\u5fae\u5206\u65b9\u7a0b\u5f0f\u304c\u6c42\u307e\u308a\u307e\u3059\uff01<\/p>\n<p>(2.14) \u306e\u8a08\u7b97\u3092\u4e09\u3064\u306b\u5206\u3051\u308b\u3068\u3084\u308a\u3084\u3059\u3044\u306e\u3067<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\n&amp;\\frac{\\partial \\mathcal{L}}{\\partial \\dot{\\theta}_1} \\tag{2.15}\\\\<br \/>\n&amp;\\frac{d}{dt}\\left(\u00a0\\frac{\\partial \\mathcal{L}}{\\partial \\dot{\\theta}_1} \\right)\u00a0 \\tag{2.16}\\\\<br \/>\n&amp;\\frac{\\partial \\mathcal{L}}{\\partial \\theta_1} \\tag{2.17}\\\\<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u3068\u8a08\u7b97\u91cf\u3092\u5206\u5272\u3057\u3088\u3046\u3002<\/p>\n<p>\u307e\u305a (2.15) \u306b (2.13) \u3092\u4ee3\u5165\u3057\u3066\u504f\u5fae\u5206\u3092\u8a08\u7b97\u3059\u308b\u3068<br \/>\n$$<br \/>\n\\begin{align}<br \/>\n\\frac{\\partial \\mathcal{L}}{\\partial \\dot{\\theta}_1} =&amp;<br \/>\n\\frac{\\partial}{\\partial \\dot{\\theta}_1} \\bigg(\\frac{1}{2}(m_1 + m_2) l_1^2 \\dot{\\theta}^2_1 + \\frac{1}{2}m_2l_2^2\\dot{\\theta}^2_2 + m_2 l_1 l_2 \\dot{\\theta}_1 \\dot{\\theta}_2 \\cos(\\theta_1 - \\theta_2) \\\\<br \/>\n&amp;+(m_1 + m_2)g l_1 cos{\\theta_1} + m_2 g l_2 \\cos{\\theta_2}\\bigg) \\\\<br \/>\n=&amp; (m_1 + m_2)l_1^2 \\dot{\\theta}_1 + m_2 l_1 l_2 \\dot{\\theta}_2 \\cos(\\theta_1 - \\theta_2) \\tag{2.18}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b (2.16) \u306b (2.18) \u3092\u4ee3\u5165\u3057\u3066\u5fae\u5206\u3092\u5b9f\u884c\u3059\u308b\u3068<br \/>\n$$<br \/>\n\\begin{align}<br \/>\n\\frac{d}{dt}\\left(\u00a0\\frac{\\partial \\mathcal{L}}{\\partial \\dot{\\theta}_1} \\right)\u00a0 =&amp; \\frac{d}{dt}\\left(\u00a0(m_1 + m_2)l_1^2 \\dot{\\theta}_1 + m_2 l_1 l_2 \\dot{\\theta}_2 \\cos(\\theta_1 - \\theta_2) \u00a0\\right) \\tag{2.19}\\\\<br \/>\n=&amp; (m_1 + m_2) l_1^2 \\ddot{\\theta}_1 + m_2 l_1 l_2 \\ddot{\\theta}_2 \\cos(\\theta_1 - \\theta_2) \\\\<br \/>\n&amp;- m_2 l_1 l_2 \\dot{\\theta}_2 \\sin(\\theta_1 - \\theta_2) (\\dot{\\theta}_1 - \\dot{\\theta}_2)\u00a0\\tag{2.20}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<blockquote><p>(2.19) \u306e\u5fae\u5206\u3092\u5b9f\u884c\u3059\u308b\u3068\u304d\u306b\u9023\u9396\u5f8b<br \/>\n$$<br \/>\n\\frac{d}{dt}f(g(t)) = f'(g(t)) g'(t)<br \/>\n$$<br \/>\n\u3068\u7a4d\u306e\u6cd5\u5247<br \/>\n$$<br \/>\n\\frac{d}{dt}f(t)g(t) = f'(t)g(t) + f(t)g'(t)<br \/>\n$$<br \/>\n\u304c\u9069\u7528\u3055\u308c\u308b\u3002<\/p><\/blockquote>\n<p>\u6700\u5f8c\u306b (2.17) \u306b (2.13) \u3092\u4ee3\u5165\u3057\u3066\u504f\u5fae\u5206\u3092\u5b9f\u884c\u3059\u308b\u3068<br \/>\n$$<br \/>\n\\begin{align}<br \/>\n\\frac{\\partial \\mathcal{L}}{\\partial \\theta_1} =&amp;\u00a0 \\frac{\\partial}{\\partial \\theta_1}<br \/>\n\\bigg(\\frac{1}{2}(m_1 + m_2) l_1^2 \\dot{\\theta}^2_1 + \\frac{1}{2}m_2l_2^2\\dot{\\theta}^2_2 + m_2 l_1 l_2 \\dot{\\theta}_1 \\dot{\\theta}_2 \\cos(\\theta_1 - \\theta_2) \\\\<br \/>\n&amp;+(m_1 + m_2)g l_1 cos{\\theta_1} + m_2 g l_2 \\cos{\\theta_2}\\bigg) \\\\<br \/>\n=&amp; -m_2 l_1 l_2 \\dot{\\theta}_1 \\dot{\\theta}_2 \\sin(\\theta_1 - \\theta_2) - (m_1 + m_2) g l_1 \\sin{\\theta_1} \\tag{2.21}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067 (2.14) \u306e\u6e96\u5099\u306e\u305f\u3081\u306e\u8a08\u7b97\u304c\u7d42\u308f\u308a\u307e\u3057\u305f\u3002 (2.14) \u3092\u3082\u3046\u4e00\u5ea6\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n$$<br \/>\n\\frac{d}{dt}\\left(\\frac{\\partial \\mathcal{L}}{\\partial \\dot{\\theta}_1}\\right) -\u00a0\\frac{\\partial \\mathcal{L}}{\\partial \\theta_1} = 0<br \/>\n\\tag{2.14}<br \/>\n$$<\/p>\n<p>(2.14) \u306b (2.20) \u3068 (2.21) \u3092\u4ee3\u5165\u3057\u3066\u6574\u7406\u3059\u308b\u3068<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\n&amp;(m_1 + m_2) l_1^2 \\ddot{\\theta}_1 + m_2 l_1 l_2 \\ddot{\\theta}_2 \\cos(\\theta_1 - \\theta_2)m_2 l_1 l_2 \\dot{\\theta}_2 \\sin(\\theta_1 - \\theta_2) (\\dot{\\theta}_1 - \\dot{\\theta}_2) \\\\<br \/>\n&amp;- \\left(-m_2 l_1 l_2 \\dot{\\theta}_1 \\dot{\\theta}_2 \\sin(\\theta_1 - \\theta_2) - (m_1 + m_2) g l_1 \\sin{\\theta_1}\\right) \\\\<br \/>\n\\\\<br \/>\n=&amp; (m_1 + m_2) l_1^2 \\ddot{\\theta}_1 + m_2 l_1 l_2 \\ddot{\\theta}_2 \\cos(\\theta_1 - \\theta_2) - m_2 l_1 l_2 \\dot{\\theta}_1 \\dot{\\theta}_2 \\sin(\\theta_1 - \\theta_2) \\\\<br \/>\n&amp; m_2 l_1 l_2 \\dot{\\theta}^2_2\\sin(\\theta_1 - \\theta_2) + m_2 l_1 l_2 \\dot{\\theta}_1 \\dot{\\theta}_2 \\sin(\\theta_1 - \\theta_2) + (m_1 + m_2) g l_1 \\sin{\\theta_1} \\\\<br \/>\n\\\\<br \/>\n=&amp; (m_1 + m_2) l_1^2 \\ddot{\\theta}_1 + m_2 l_1 l_2 \\ddot{\\theta}_2 \\cos(\\theta_1 - \\theta_2) + m_2 l_1 l_2 \\dot{\\theta}^2_2 \\sin(\\theta_1 - \\theta_2) \\\\<br \/>\n&amp;+ (m_1 + m_2) g l_1 \\sin{\\theta_1} = 0 \\tag{2.22}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b (2.22) \u306e\u4e21\u8fba\u3092 $l_1$ \u3067\u5272\u308b\u3068<br \/>\n$$<br \/>\n\\begin{align}<br \/>\n(m_1 + m_2) l_1 \\ddot{\\theta}_1 + m_2 l_2 \\ddot{\\theta}_2 \\cos(\\theta_1 - \\theta_2)<br \/>\n\\\\+m_2 l_2 \\dot{\\theta}^2_2 \\sin(\\theta_1 - \\theta_2) + g (m_1 + m_2) \\sin \\theta_1 &amp;= 0<br \/>\n\\tag{0.1}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u3068\u3001$\\theta_1$ \u306b\u3064\u3044\u3066\u306e\u5fae\u5206\u65b9\u7a0b\u5f0f\u304c\u5f97\u3089\u308c\u307e\u3057\u305f\uff01<\/p>\n<p>\u540c\u69d8\u306b\u3001$\\theta_2$ \u306b\u304a\u3051\u308b Euler-Lagrange\u00a0\u65b9\u7a0b\u5f0f<br \/>\n$$<br \/>\n\\frac{d}{dt}\\left(\\frac{\\partial \\mathcal{L}}{\\partial \\dot{\\theta}_2}\\right) -\u00a0\\frac{\\partial \\mathcal{L}}{\\partial \\theta_2} = 0<br \/>\n\\tag{2.23}<br \/>\n$$<br \/>\n\u306e\u5fae\u5206\u3068\u504f\u5fae\u5206\u3092\u5b9f\u884c\u3059\u308b\u3068<br \/>\n$$<br \/>\n\\begin{align}<br \/>\nm_2 l_2 \\ddot{\\theta}_2 + m_2 l_1 \\ddot{\\theta}_1 cos(\\theta_1 - \\theta_2) \\\\<br \/>\n-m_2 l_1 \\dot{\\theta}^2_1 sin(\\theta_1 - \\theta_2) + m_2 g \\sin \\theta_2 &amp;= 0<br \/>\n\\tag{0.2}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u3068 $\\theta_2$ \u306b\u3064\u3044\u3066\u306e\u5fae\u5206\u65b9\u7a0b\u5f0f\u304c\u6c42\u307e\u308a\u307e\u3059\u3002<\/p>\n<h2>3. Euler \u6cd5\u3092\u4f7f\u3046\u305f\u3081\u306e\u6e96\u5099<\/h2>\n<p>Euler \u6cd5\u3067\u524d\u7ae0\u3067\u5f97\u3089\u308c\u305f\u4e8c\u91cd\u632f\u308a\u5b50\u306e\u5fae\u5206\u65b9\u7a0b\u5f0f\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3044\u305f\u3044\u304c\u3001\u5b9f\u306f (0.1) \u3068 (0.2) \u3092\u305d\u306e\u307e\u307e\u4f7f\u3048\u306a\u3044\u306e\u3067\u3059\u3002Euler \u6cd5\u3067\u4e00\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u6570\u5024\u8a08\u7b97\u7684\u306b\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u304d\u308b\u304c\u3001(0.1) \u3068 (0.2) \u306f\u3069\u3061\u3089\u3082\u4e8c\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u3002<\/p>\n<p>Euler \u6cd5\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b (0.1) \u3068 (0.2) \u305d\u308c\u305e\u308c\u306e\u4e8c\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u4e8c\u3064\u306e\u4e00\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u306b\u5206\u3051\u308c\u3070\u3044\u3044\u3002\u3069\u3046\u3059\u308c\u3070\u5206\u5272\u3067\u304d\u308b\uff1f\u3068\u7591\u554f\u306b\u601d\u3046\u4eba\u3082\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u65b0\u3057\u3044\u5909\u6570\u3092\u6b21\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3059\u308c\u3070\u3088\u3044\u3002<br \/>\n$$<br \/>\n\\begin{align}<br \/>\n\\lambda_1\u00a0&amp;=\u00a0\\dot{\\theta}_1\u00a0\\tag{3.1}\u00a0\\\\<br \/>\n\\dot{\\lambda}_1\u00a0&amp;=\u00a0\\ddot{\\theta}_1 \\tag{3.2}<br \/>\n\\\\<br \/>\n\\lambda_2\u00a0&amp;=\u00a0\\dot{\\theta}_2 \\tag{3.3} \\\\<br \/>\n\\dot{\\lambda}_2\u00a0&amp;=\u00a0\\ddot{\\theta}_2 \\tag{3.4}<br \/>\n\\end{align}<br \/>\n$$<\/p>\n<p>(3.1) ~ (3.4) \u3092 (0.1)\u00a0\u306b\u4ee3\u5165\u3059\u308b\u3068<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\n(m_1\u00a0+\u00a0m_2)\u00a0l_1\u00a0\\dot{\\lambda}_1\u00a0+\u00a0m_2\u00a0l_2\u00a0\\dot{\\lambda}_2\u00a0\\cos(\\theta_1\u00a0-\u00a0\\theta_2) \\\\<br \/>\n+\u00a0m_2\u00a0l_2\u00a0\\lambda^2_2\u00a0\\sin(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0+\u00a0g\u00a0(m_1\u00a0+\u00a0m_2)\u00a0\\sin\u00a0\\theta_1 &amp;=\u00a00<br \/>\n\\tag{3.5}<br \/>\n\\end{align}<br \/>\n$$<\/p>\n<p>\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b (3.5) \u3092 $\\dot{\\lambda}_1$ \u306b\u3064\u3044\u3066\u89e3\u304f\u3068<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\n\\dot{\\lambda}_1\u00a0&amp;=\u00a0\\frac{-\u00a0m_2\u00a0l_2\u00a0\\dot{\\lambda}_2\u00a0\\cos(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0m_2\u00a0l_2\u00a0\\lambda^2_2\u00a0\\sin(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0g\u00a0(m_1\u00a0+\u00a0m_2)\u00a0\\sin\u00a0\\theta_1}{(m_1\u00a0+\u00a0m_2)\u00a0l_1}<br \/>\n\\tag{3.6}<br \/>\n\\end{align}<br \/>\n$$<\/p>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u540c\u69d8\u306b (3.1) ~ (3.4) \u3092 (0.2)\u00a0\u306b\u4ee3\u5165\u3057\u3066<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\nm_2\u00a0l_2\u00a0\\dot{\\lambda}_2\u00a0+\u00a0m_2\u00a0l_1\u00a0\\dot{\\lambda}_1\u00a0cos(\\theta_1\u00a0-\u00a0\\theta_2)<br \/>\n-\u00a0m_2\u00a0l_1\u00a0\\lambda^2_1\u00a0sin(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0+\u00a0m_2\u00a0g\u00a0\\sin\u00a0\\theta_2\u00a0&amp;=\u00a00<br \/>\n\\tag{3.7}<br \/>\n\\end{align}<br \/>\n$$<\/p>\n<p>(3.7) \u3092 $\\dot{\\lambda}_2$ \u306b\u3064\u3044\u3066\u89e3\u304f\u3068<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\n\\dot{\\lambda}_2\u00a0&amp;=\u00a0\\frac{m_2\u00a0l_1\u00a0\\lambda^2_1\u00a0sin(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0m_2\u00a0l_1\u00a0\\dot{\\lambda}_1\u00a0cos(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0m_2\u00a0g\u00a0\\sin\u00a0\\theta_2}{m_2\u00a0l_2}<br \/>\n\\tag{3.8}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u305d\u308c\u305e\u308c\u306e\u4e8c\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u305d\u308c\u305e\u308c\u4e8c\u3064\u306e\u4e00\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u306b\u5206\u5272\u3059\u308b\u3053\u3068\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002\u5206\u5272\u5f8c\u306e\u56db\u3064\u306e\u4e00\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u3082\u3046\u4e00\u5ea6\u307e\u3068\u3081\u3066\u66f8\u3044\u3066\u304a\u304f\u3068<br \/>\n$$<br \/>\n\\begin{align}<br \/>\n\\dot{\\theta}_1\u00a0 &amp;=\u00a0\\lambda_1 \\tag{3.1}\u00a0\\\\<br \/>\n\\dot{\\lambda}_1\u00a0&amp;=\u00a0\\frac{-\u00a0m_2\u00a0l_2\u00a0\\dot{\\lambda}_2\u00a0\\cos(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0m_2\u00a0l_2\u00a0\\lambda^2_2\u00a0\\sin(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0g\u00a0(m_1\u00a0+\u00a0m_2)\u00a0\\sin\u00a0\\theta_1}{(m_1\u00a0+\u00a0m_2)\u00a0l_1}<br \/>\n\\tag{3.6} \\\\<br \/>\n\\dot{\\theta}_2 &amp;=\u00a0\\lambda_2 \\tag{3.3} \\\\<br \/>\n\\dot{\\lambda}_2\u00a0&amp;=\u00a0\\frac{m_2\u00a0l_1\u00a0\\lambda^2_1\u00a0sin(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0m_2\u00a0l_1\u00a0\\dot{\\lambda}_1\u00a0cos(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0m_2\u00a0g\u00a0\\sin\u00a0\\theta_2}{m_2\u00a0l_2}<br \/>\n\\tag{3.8} \\\\<br \/>\n\\end{align}<br \/>\n$$<br \/>\n\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u56db\u3064\u306e\u65b9\u7a0b\u5f0f\u306b Newton \u8a18\u6cd5\u306e\u5fae\u5206\u70b9\u304c\u4e8c\u3064\u4ed8\u3044\u3066\u3044\u308b\u5909\u6570\u304c\u4e00\u3064\u3082\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u307b\u3057\u3044\u3002\u307f\u3093\u306a\u304c\u4e00\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3053\u308c\u3089\u306b Euler \u6cd5\u3092\u9069\u7528\u3067\u304d\u307e\u3059\uff01<\/p>\n<h2>4. Euler \u6cd5\u3067\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b<\/h2>\n<p>\u3084\u3063\u3068 Euler \u6cd5\u3092\u9069\u7528\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u6765\u307e\u3057\u305f\u3002\u307e\u305a Euler \u6cd5\u306e\u4ed5\u7d44\u307f\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n$$<br \/>\n\\begin{align}<br \/>\n\\dot{y}\u00a0&amp;=\u00a0f(y,\u00a0t)\u00a0\\tag{4.1}\\\\<br \/>\ny(t_0)\u00a0&amp;=\u00a0y_0 \\tag{4.2}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n(4.1) \u3067\u8868\u305b\u308b\u3088\u3046\u306a\u4e00\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u304c\u3042\u308b\u3068\u3057\u3088\u3046\u3002\u305d\u3057\u3066 (4.2) \u3067\u3053\u306e\u5fae\u5206\u65b9\u7a0b\u5f0f\u306e\u521d\u671f\u72b6\u614b\u3092\u5b9a\u7fa9\u3057\u3088\u3046\u3002\u3053\u306e\u3068\u304d\u306b\u3001Euler \u6cd5\u3067\u6642\u9593\u3092 $\\epsilon$ \u3060\u3051\u9032\u3081\u308b\u3068<br \/>\n$$<br \/>\n\\begin{align}<br \/>\nt_1\u00a0&amp;=\u00a0t_0\u00a0+\u00a0\\epsilon\u00a0\\\\<br \/>\ny_1\u00a0&amp;=\u00a0y_0\u00a0+\u00a0\\epsilon\u00a0f(y_0,\u00a0t_0) \\tag{4.3}<br \/>\n\\end{align}<br \/>\n$$<br \/>\n$y_1$ \u304c\u5b9a\u307e\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u3001 $\\epsilon$ \u306f\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30bf\u30a4\u30e0\u30b9\u30c6\u30c3\u30d7\u3067\u3001\u5c0f\u3055\u3051\u308c\u3070\u5c0f\u3055\u3044\u307b\u3069\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u3088\u308a\u6b63\u78ba\u306b\u306a\u308b\u3002\u4eca\u56de\u306e\u4e8c\u91cd\u632f\u308a\u5b50\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u300c0.0001\u300d\u3068\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002(4.3) \u306f\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3055\u305b\u3066\u4e00\u756a\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u5b9f\u884c\u3055\u305b\u305f\u3068\u304d\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u5f8c\u3082\u540c\u3058\u30d1\u30bf\u30fc\u30f3\u3067\u9032\u307f\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u304c\u3001Euler \u6cd5\u304c $\\dot{y}_n =\u00a0f(y_n,\u00a0t_n)$ \u3092\u5165\u529b\u3068\u3057\u3066\u4e0e\u3048\u3089\u308c\u3066 $y_{n+1}$ \u3092\u8fd4\u3057\u3066\u304f\u308c\u308b\u3068\u3053\u308d\u3067\u3059\uff01\u3064\u307e\u308a\u3001 $\\dot{y}$ \u304b\u3089 $y$ \u304c\u5f97\u3089\u308c\u308b\u3002<\/p>\n<p>\u3082\u3046\u4e00\u5ea6\u6e96\u5099\u3057\u305f\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>$$<br \/>\n\\begin{align}<br \/>\n\\dot{\\theta}_1\u00a0 &amp;=\u00a0\\lambda_1 \\tag{3.1}\u00a0\\\\<br \/>\n\\dot{\\lambda}_1\u00a0&amp;=\u00a0\\frac{-\u00a0m_2\u00a0l_2\u00a0\\dot{\\lambda}_2\u00a0\\cos(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0m_2\u00a0l_2\u00a0\\lambda^2_2\u00a0\\sin(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0g\u00a0(m_1\u00a0+\u00a0m_2)\u00a0\\sin\u00a0\\theta_1}{(m_1\u00a0+\u00a0m_2)\u00a0l_1}<br \/>\n\\tag{3.6} \\\\<br \/>\n\\dot{\\theta}_2 &amp;=\u00a0\\lambda_2 \\tag{3.3} \\\\<br \/>\n\\dot{\\lambda}_2\u00a0&amp;=\u00a0\\frac{m_2\u00a0l_1\u00a0\\lambda^2_1\u00a0sin(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0m_2\u00a0l_1\u00a0\\dot{\\lambda}_1\u00a0cos(\\theta_1\u00a0-\u00a0\\theta_2)\u00a0-\u00a0m_2\u00a0g\u00a0\\sin\u00a0\\theta_2}{m_2\u00a0l_2}<br \/>\n\\tag{3.8} \\\\<br \/>\n\\end{align}<br \/>\n$$<\/p>\n<p>$\\dot{\\lambda}_1$ \u3092 Euler \u6cd5\u3067\u51e6\u7406\u3057\u3066 $\\lambda_1$ \u304c\u5f97\u3089\u308c\u307e\u3059\u3002\u3055\u3089\u306b $\\dot{\\theta}_1\u00a0 =\u00a0\\lambda_1 $ \u306e\u95a2\u4fc2\u3092\u7528\u3044\u3066 Euler \u6cd5\u3067 $\\dot{\\theta}_1$ \u3092\u51e6\u7406\u3057\u3066 $\\theta_1$ \u304c\u5f97\u3089\u308c\u307e\u3059\u3002\u540c\u69d8\u306b $\\theta_2$ \u3082\u5f97\u3089\u308c\u308b\u306e\u3067 $\\theta_1$ \u3068 $\\theta_2$ \u3092\u6bce\u30d5\u30ec\u30fc\u30e0 Unity \u306e\u4e2d\u3067\u4f5c\u3063\u3066\u304a\u3044\u305f\u4e8c\u91cd\u632f\u308a\u5b50\u306b\u9069\u7528\u3059\u308b\u3068\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u5b8c\u6210\u3067\u3059\uff01<\/p>\n<div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-4328-3\" width=\"1280\" height=\"720\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2021\/02\/2020-02-06-18-05-28.mp4?_=3\" \/><a href=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2021\/02\/2020-02-06-18-05-28.mp4\">https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2021\/02\/2020-02-06-18-05-28.mp4<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u300c\u305d\u3082\u305d\u3082\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3093\u304b\u3057\u306a\u3044\u3067\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u89e3\u3051\u3070\u3044\u3044\u3093\u3058\u3083\u306a\u3044\uff1f\u300d\u3068\u7591\u554f\u306b\u601d\u3046\u4eba\u3082\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4e8c\u91cd\u632f\u308a\u5b50\u306e\u5fae\u5206\u65b9\u7a0b\u5f0f\u306f\u89e3\u3051\u307e\u305b\u3093\u3002\u4e0a\u306e\u30d3\u30c7\u30aa\u3092\u898b\u308b\u3068\u305d\u306e\u539f\u56e0\u3092\u57a3\u9593\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e8c\u91cd\u632f\u308a\u5b50\u306b\u306f\u30ab\u30aa\u30b9\u306e\u7a2e\u304c\u57cb\u3082\u308c\u3066\u3044\u3066\u3001\u521d\u671f\u72b6\u614b\u304c\u307b\u307c\u540c\u3058\u306a\u4e8c\u91cd\u632f\u308a\u5b50\u3067\u3082\u6642\u9593\u304c\u7d4c\u3064\u3068\u3075\u308b\u307e\u3044\u304c\u5927\u304d\u304f\u7570\u306a\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<h2>5. \u6700\u5f8c\u306b<\/h2>\n<p>\u4e8c\u91cd\u632f\u308a\u5b50\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092 Github \u3067\u516c\u958b\u3057\u3066\u3044\u307e\u3059:\u00a0<a href=\"https:\/\/github.com\/T-Kuhn\/ConnectedPendulums\">link<\/a><\/p>\n<p>Q:\u300cEuler \u6cd5\u3088\u308a\u52b9\u7387\u7684\u306a\u6570\u5024\u8a08\u7b97\u6cd5\u3044\u3063\u3071\u3044\u3042\u308b\u3093\u3058\u3083\u306a\u3044\uff1f\u4f55\u3067 Euler \u6cd5\u306b\u3057\u305f\u3093\u3060\u308d\u3046\uff1f\u300d<br \/>\nA: \u300c\u30d6\u30ed\u30b0\u8a18\u4e8b\u3067\u4e00\u756a\u8aac\u660e\u304c\u7c21\u5358\u306b\u306a\u308b\u306e\u304c Euler \u6cd5\u3060\u3063\u305f\u304b\u3089\u3067\u3059\u3002\u4e0a\u8a18\u306e\u30ea\u30f3\u30af\u306e\u632f\u308a\u5b50\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u306f Euler \u6cd5\u4ee5\u5916\u306b\u3082 Runge-Kutta (RK4) \u3092\u5b9f\u88c5\u3057\u305f\u306e\u3067\u3001\u3044\u308d\u3044\u308d\u6bd4\u8f03\u3067\u304d\u307e\u3059\u3002\u300d<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-4654\" src=\"https:\/\/virtualcast.jp\/blog\/wp-content\/uploads\/2021\/02\/double-pendulum-settings.png\" alt=\"\" width=\"650\" height=\"650\" srcset=\"https:\/\/blog.virtualcast.jp\/blog\/wp-content\/uploads\/2021\/02\/double-pendulum-settings.png 650w, https:\/\/blog.virtualcast.jp\/blog\/wp-content\/uploads\/2021\/02\/double-pendulum-settings-150x150.png 150w, https:\/\/blog.virtualcast.jp\/blog\/wp-content\/uploads\/2021\/02\/double-pendulum-settings-300x300.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>\u30ea\u30f3\u30af\u96c6\uff1a<\/p>\n<ul>\n<li><a href=\"http:\/\/sites.science.oregonstate.edu\/math\/home\/programs\/undergrad\/CalculusQuestStudyGuides\/ode\/second\/so_num\/so_num.html\">\u4e8c\u968e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u306e\u305f\u3081\u306e\u6570\u5024\u8a08\u7b97\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/jakevdp.github.io\/blog\/2017\/03\/08\/triple-pendulum-chaos\/\">Tripple Pendulum Chaos!<\/a><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Lagrangian_mechanics\">Lagrangian Mechanics<\/a><\/li>\n<li><a href=\"http:\/\/scienceworld.wolfram.com\/physics\/DoublePendulum.html\">ScienceWorld: Double Pendulum<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001 t-kuhn \u3067\u3059\u3002\u4eca\u65e5\u306f\u4e8c\u91cd\u632f\u308a\u5b50\u3092 Unity \u3067\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3057\u3066\u307f\u305f\u8a71\u306b\u3064\u3044\u3066\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 &nbsp; \u4e0a\u306e\u52d5\u753b\u306e\u4e8c\u91cd\u632f\u308a\u5b50\u306e\u52d5\u304d\u304c\u3053\u306e\u8a18\u4e8b\u306e\u6570\u5b66\u3092 Unity \u3067\u5b9f\u88c5\u3057\u305f\u7d50\u679c\u3067\u3059\u3002Un...<\/p>\n","protected":false},"author":35,"featured_media":4655,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[105,26],"tags":[23],"_links":{"self":[{"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/posts\/4328"}],"collection":[{"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/comments?post=4328"}],"version-history":[{"count":362,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/posts\/4328\/revisions"}],"predecessor-version":[{"id":4732,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/posts\/4328\/revisions\/4732"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/media\/4655"}],"wp:attachment":[{"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/media?parent=4328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/categories?post=4328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.virtualcast.jp\/blog\/wp-json\/wp\/v2\/tags?post=4328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}