Heun's Method for Second Order ODE (Eng Maths)

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
jisbon
Messages
475
Reaction score
30
Homework Statement
-
Relevant Equations
-
Question:
1596080237600.png

So I got around on doing this example, and I'm pretty sure I messed up somewhere, would appreciate if someone could point out what I did wrongly.
1) For any second ODE, I should let:
##y_{1}= y ## and ##y_{2}= y' ##
Hence,
##y_{1}'= y' = y_{2} ## and ##y_{2}'= y'' = xy(x)+x^2-y(x) = xy_{1}+x^2-y_{1} ##
Thus I have 2 functions:
##f_{1}(x,y_{1},y_{2}) = y_{2}## and## f_{2}(x,y_{1},y_{2}) = xy_{1}+x^2-y_{1}##

Heun's method then states that:
1596080778823.png
I will assume I have to do out a and b for both functions?
 
Physics news on Phys.org
Yes.
[tex] \begin{align*}<br /> a_i &= hf_i(x_n,y_{1n}, y_{2n}) \\<br /> b_i &= hf_i(x_{n+1}, y_{1n} + a_1, y_{2n} + a_2)<br /> \end{align*}[/tex]