Skip to content

Commit

Permalink
minor edits in 2nd-order backward euler
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleniemeyer committed Oct 2, 2023
1 parent d4c9827 commit f9c43b2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions book/content/second-order/numerical-methods.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,11 @@
"\\begin{align}\n",
"y_{1, i+1} &= y_{1, i} + \\Delta t \\, y_{2,i+1} \\\\\n",
"y_{2, i+1} &= y_{2, i} + \\Delta t \\left( 10 - 6 y_{2, i+1} - 5 y_{1,i+1} \\right) \\\\\n",
"\\\\\n",
"y_{1, i+1} - \\Delta t \\, y_{2, i+1} &= y_{1,i} \\\\\n",
"5 \\Delta t \\, y_{1, i+1} + (1 + 6 \\Delta t) y_{2, i+1} &= y_{2,i} + 10 \\Delta t \\\\\n",
"\\text{or} \\quad \n",
"\\rightarrow y_{1, i+1} - \\Delta t \\, y_{2, i+1} &= y_{1,i} \\\\\n",
"5 \\Delta t \\, y_{1, i+1} + (1 + 6 \\Delta t) y_{2, i+1} &= y_{2,i} + 10 \\Delta t\n",
"\\end{align}\n",
"or, represented as a product of a coefficient matrix and a vector:\n",
"\\begin{align}\n",
"\\begin{bmatrix} 1 & -\\Delta t \\\\ 5 \\Delta t & (1+6\\Delta t)\\end{bmatrix} \n",
"\\begin{bmatrix} y_{1, i+1} \\\\ y_{2, i+1} \\end{bmatrix} &= \n",
"\\begin{bmatrix} y_{1,i} \\\\ y_{2,i} + 10 \\Delta t \\\\ \\end{bmatrix} \\\\\n",
Expand Down

0 comments on commit f9c43b2

Please sign in to comment.