Quantitative Methods: Numerical Solution of DEs

symsane
Messages
13
Reaction score
0

Homework Statement



Show that if we fit f(x) over [xn,xn+1], with a first-degree polynomial that interpolates f at xn and xn+1, then f(x)=f(xn)+[f(xn+1)-f(xn)](x-xn)/h. Putting that approximation into the relevant equation 1 which is given at relevant equations part derive the approximation:
y(xn+1)=y(xn)+1/2[f(xn)+f(xn+1)]h

Homework Equations



eq.1 : y(xn+1) = y(xn) + f(xn+1) - f(xn)

Also we know that y'=f(x) and y(xn+1)=y(xn)+f(xn)h
 
Physics news on Phys.org
What have you done? If you haven't done so, draw a picture. Your interpolation polynomial is first-degree, which means it's a straight line.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top