Application of Polynomial Interpolation
Application of Polynomial Interpolation
bn = f [xn xn-1 .. x1 x0], where the bracketed function evaluations are finite differences for
example, the first finite divided difference is represented generally as;
f [xi xj] = [(f(xi) f(xj))/(xi xj)] xi + xj, where the second finite divided difference which
represents the difference of the first divided differences. After close evaluation the general
analysis yields the interpolating polynomial. This is given as thus;
f(x) = f(x0) + (x x0) f[x1 x0 + .xn) which is the Newton divided difference interpolating
polynomial, which implies that the data points taken should be equally spaced.
Errors of Newton interpolating polynomials: observed that the structures of the equations in
Newton divided method is similar to the tailors series expansion in the sense that terms are
added sequentially in order to capture the higher order behavior of the underlying function.
These terms are finite divided differences and thus represent approximations of the higher order
derivatives. Consequently as with the Taylor series, if the true underlying function is an nth
order polynomials, the nth order interpolating polynomial based on n+1 data points will yield
exact results. Recall from the previous equation that the truncation error for the Taylor series
could be expressed generally as; Rn = [f (n+1) ()/ (n+1)] (xi-1 xi) n=1. For an nth order
interpolating polynomial, an analogous relationship for the error is Rn = [f (n+1) ()/ (n+1)] (x x0)
(x x1)..
Where is somewhere in the interval containing the unknown and the data. For the formula to be
use, the function in question must be known and differentiable. This is not usually the case.
Fortunately, an alternative formulation is available that does not require prior knowledge of the
function. Rather it uses a finite divided difference to approximate the n+1 derivative.
Xi (psi) = stresses
Logx10 (psi)
900
2.9542
1000
3.0000
1100
3.0413
1200
3.07918
1300
3.1139
2. Two wells are drilled in Niger delta, and instability was encountered as a result of well
placement along minimum horizontal stress. From Mohr coulomb criterion the well will
be stable only if the polynomial equation given as thus is obeyed; = c + n* tan , where
all parameters are defined. Calculate the maximum shear stress for stability using;
Newton interpolation method (forward and backward). Calculate also the Newton Error
analysis.
3. Using Newton interpolation method and sterling interpolation, calculate the octahedral
shear stress for a deviated well using the Mogi coulomb criterion. If the Mogi coulomb
equation is given as thus; = a + b *m, 2.
4. Calculate the failure function for a well drilled offshore with a TVD of 6000ft using the
Lagrange interpolation method. If Mogi coulomb law is obeyed using the polynomial
equation given as thus; = a + b * m, 2.
SOLUTION
1. The first divided polynomial interpolation in the table above is given as thus;
f (x1, xo) = [(3.00-2.9542)/(1000-900)] = 0.000458
f (x2 , x1 ) = [(3.0413-3.000)/(1100-1000)] = 0.000413
f (x3 , x2 ) = [(3.07918-3.0413)/(1200-1100)] = 0.0003788
f (x4 , x3) = [(3.1139-3.07918)/(1300-1200)] = 0.0003472.
The second divided difference is also calculated as thus;
f (x2 x1 x0) = [(0.000413-0.000458)/(1100-900)] = -0.000000225
f (x3 x2 x1) = [(0.0003788-0.000413)/(1200-1100)] = -0.000000171
Well
Stresse
Log of
First
numbe
sx
stresse
(psi)
900
2.9542
1000
3.0000
0.000458
1100
3.0413
0.000413
Second
Third
Fourth
0.0000000001 0.000000000000
0.00000022
15
5
4
1200
3.0791
0.000378
0.0000000001
0.00000017
1
5
1300
3.1139
0.000347
0.00000015
8
2. The solution is based on the fact that, the octahedral shear stress is computed for each insitu principal stress and then a polynomial plot is made to show the data spread and data
space for each failure criterion.
1
m,2
395
20
20
208
177
415
52
20
217
179
413
91
20
237
171
455
165
20
240
181
459
203
20
242
180
464
231
20
241
181
442
40
40
248
190
455
40
40
248
196
496
113
40
268
200
534
312
40
287
202
First polynomial interpolation plot for the well. To show stability based on octahedral shear
stress, it can be seen that the peak of the polynomial plot shows the wellbore stability stress
which is the UCS.
1
Polynomial (1)
Second plot is also to show the shear stress stability based on the tensile nature of the well to
avoid fracture while drilling in that well. Then a plot of mean effective stress is polt againt the
octahedral shear stress to show the spread of result. Obeying the Newton polynomial
interpolation.
Polynomial ()
From the graph above you can see that the stability of the well based on octahedral and mean
effective stress also depends on the peak stress, showing that the higher the stresses the more
stable and the more the wellbore is prone to failure criteria, inview of the fact that elastic moduli
also contributes to the strenght of the rock.