I Derivation of second order Adams-Bashforth

goggles31
Messages
33
Reaction score
0
My notes state that the method is constructed based on the idea:
yk+1=yk+∫f(x,y)dx where the integral is taken from xk to xk+1
We can estimate the integral by considering
∫f(x)dx (from xk to xk+1) =c0fk+c1fk-1
To simplify the equation, we move xk to the origin such that
∫f(x)dx (from 0 to h) =c0f(0)+c1f(-h)

Starting from below, I start to get confused.
It says "Replace f(x) with the polynomials, we have"
f(x)=1 : h=c0(1)+c1(1)
f(x)=x : h2/2=c0(0)+c1(-h)
Solving for c0 and c1,
c0=3h/2 and c1=-h/2 giving
yk+1=yk+h/2*(3fk-fk-1) + O(h3)

I've gone through the working and understand where the numbers come from, but I have no idea why they replace f(x) with 1 and x. Why not x2 or x3? I've gone through some books but they derive this with the Taylor's series and I also understand that. I just don't understand the part I mentioned.
 
Mathematics news on Phys.org
goggles31 said:
My notes state that the method is constructed based on the idea:
yk+1=yk+∫f(x,y)dx where the integral is taken from xk to xk+1
We can estimate the integral by considering
∫f(x)dx (from xk to xk+1) =c0fk+c1fk-1
To simplify the equation, we move xk to the origin such that
∫f(x)dx (from 0 to h) =c0f(0)+c1f(-h)

Starting from below, I start to get confused.
It says "Replace f(x) with the polynomials, we have"
f(x)=1 : h=c0(1)+c1(1)
f(x)=x : h2/2=c0(0)+c1(-h)
Solving for c0 and c1,
c0=3h/2 and c1=-h/2 giving
yk+1=yk+h/2*(3fk-fk-1) + O(h3)

I've gone through the working and understand where the numbers come from, but I have no idea why they replace f(x) with 1 and x. Why not x2 or x3? I've gone through some books but they derive this with the Taylor's series and I also understand that. I just don't understand the part I mentioned.

As I understand the point is to choose the constants ##c_0## and ##c_1## such that the integral ##\int_0^h f(x) dx## is exact if f(x) is a polynomial of degree ##n\leq 1##, i.e. for all constants and linear polynomials. All such polynomials can be written in the form ##p_1(x)=a\cdot 1+b\cdot x##, for some constants ##a## and ##b##. We can thus consider ##1## and ##x## as basis functions. If we determine ##c_0## and ##c_1## such that ##\int_0^h 1 dx## and ##\int_0^h x dx ## are reproduced exactly, ##\int_0^h p_1(x) dx## can be expressed in terms of the aforementioned integrals over ##1## and ##x## .
 
  • Like
Likes goggles31 and FactChecker
Those are the two simplest linearly independent examples of f(x) that the method needs to work for. So they are the easiest ones to use to see what c0 and c1 should be. It would be more complicated to use x2 or x3. I haven't thought it through, but those may be so complicated that they won't give you the solution for c0 and c1, but I think they will work also.

PS. Even if x2 and x3 work, they may give a different answer and not be the Adams-Bashforth method.
 
  • Like
Likes goggles31
eys_physics said:
As I understand the point is to choose the constants ##c_0## and ##c_1## such that the integral ##\int_0^h f(x) dx## is exact if f(x) is a polynomial of degree ##n\leq 1##, i.e. for all constants and linear polynomials. All such polynomials can be written in the form ##p_1(x)=a\cdot 1+b\cdot x##, for some constants ##a## and ##b##. We can thus consider ##1## and ##x## as basis functions. If we determine ##c_0## and ##c_1## such that ##\int_0^h 1 dx## and ##\int_0^h x dx ## are reproduced exactly, ##\int_0^h p_1(x) dx## can be expressed in terms of the aforementioned integrals over ##1## and ##x## .
Yes. And it is wise to match the lower order polynomials before worrying about matching higher orders. So that makes good sense.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top