Lagrangian Interpolation-More Examples: Civil Engineering

Lagrangian Interpolation-More Examples: Civil Engineering

<p>Chapter 05.04 Lagrangian Interpolation – More Examples Civil Engineering</p><p>Example 1 To maximize a catch of bass in a lake, it is suggested to throw the line to the depth of the thermocline. The characteristic feature of this area is the sudden change in temperature. We are given the temperature vs. depth data for a lake in Table 1.</p><p>Table 1 Temperature vs. depth for a lake. Temperature, T C Depth, z m 19.1 0 19.1 –1 19 –2 18.8 –3 18.7 –4 18.3 –5 18.2 –6 17.6 –7 11.7 –8 9.9 –9 9.1 –10</p><p>05.04.1 05.04.2 Chapter 05.0</p><p>Figure 1 Temperature vs. depth of a lake.</p><p>Using the given data, we see the largest change in temperature is between z  8 m and z  7 m . Determine the value of the temperature at z  7.5 m using a first order Lagrange polynomial.</p><p>Solution For first order Lagrange polynomial interpolation (also called linear interpolation), the temperature is given by 1 T(z)   Li (z)T (zi ) i0</p><p> L0 (z)T(z0 )  L1 (z)T (z1 ) Lagrange Method of Interpolation-More Examples: Civil Engineering 05.04.3</p><p> y</p><p>(x , y ) 1 1</p><p> f (x) 1</p><p>(x , y ) 0 0 x</p><p>Figure 2 Linear interpolation.</p><p>Since we want to find the temperature at z  7.5 m , we need to choose the two data points that are closest to z  7.5 m that also bracket z  7.5 m to evaluate it. The two points are z0  8 and z1  7 . Then</p><p> z0  8, T z0   11.7</p><p> z1  7, T z1   17.6 gives 1 z  z L (z)  j 0  j0 z0  z j j0 z  z  1 z0  z1 1 z  z L (z)  j 1  j0 z1  z j j1 z  z  0 z1  z0 Hence</p><p> z  z1 z  z0 T(z)  T (z0 )  T (z1 ) z0  z1 z1  z0 z  7 z  8  (11.7)  (17.6),  8  z  7  8  7  7  8  7.5  7  7.5  8 T(7.5)  (11.7)  (17.6)  8  7  7  8 05.04.4 Chapter 05.0</p><p> 0.5(11.7)  0.5(17.6)  14.65C</p><p>You can see that L0 (z)  0.5 and L1 (z)  0.5 are like weightages given to the temperatures at z  8 m and z  7 m to calculate the temperature at z  7.5 m .</p><p>Example 2 To maximize a catch of bass in a lake, it is suggested to throw the line to the depth of the thermocline. The characteristic feature of this area is the sudden change in temperature. We are given the temperature vs. depth data for a lake in Table 2.</p><p>Table 2 Temperature vs. depth for a lake. Temperature, T C Depth, z m 19.1 0 19.1 –1 19 –2 18.8 –3 18.7 –4 18.3 –5 18.2 –6 17.6 –7 11.7 –8 9.9 –9 9.1 –10</p><p>Using the given data, we see the largest change in temperature is between z  8 m and z  7 m . Determine the value of the temperature at z  7.5 m using a second order Lagrange polynomial. Find the absolute relative approximate error for the second order polynomial approximation.</p><p>Solution For second order Lagrange polynomial interpolation (also called quadratic interpolation), the temperature is given by 2 T(z)   Li (z)T (zi ) i0</p><p> L0 (z)T(z0 )  L1 (z)T (z1 )  L2 (z)T(z2 ) Lagrange Method of Interpolation-More Examples: Civil Engineering 05.04.5</p><p> y</p><p>(x , y ) (x , y ) 1 1 2 2</p><p> f (x) 2</p><p>(x , y ) 0 0 x</p><p>Figure 3 Quadratic interpolation.</p><p>Since we want to find the temperature at z  7.5, we need to choose the three data points that are closest to z  7.5 that also bracket z  7.5 to evaluate it. These three points are z0  9, z1  8 and z2  7 . (Choosing the three points as z0  8 , z1  7 and z2  6 is equally valid.) Then</p><p> z0  9, T z0   9.9</p><p> z1  8, Tz1   11.7</p><p> z2  7, Tz2   17.6 gives 2 z  z j L0 (z)   j0 z0  z j j0</p><p> z  z1  z  z2       z0  z1  z0  z2  2 z  z j L1 (z)   j0 z1  z j j1</p><p> z  z0  z  z2       z1  z0  z1  z2  2 z  z j L2 (z)   j0 z2  z j j2 05.04.6 Chapter 05.0</p><p> z  z  z  z    0  1   z  z  z  z   2 0  2 1  Hence  z  z  z  z   z  z  z  z   z  z  z  z   1  2   0  2   0  1  T(z)    T(z0 )    T(z1 )    T(z2 ),  z0  z1  z0  z2   z1  z0  z1  z2   z2  z0  z2  z1  </p><p> z0  z  z2 (7.5  8)(7.5  7) (7.5  9)(7.5  7) T(7.5)  (9.9)  (11.7) (9  8)(9  7) (8  9)(8  7)</p><p>(7.5  9)(7.5  8)  (17.6) (7  9)(7  8)  (0.125)(9.9)  (0.75)(11.7)  (0.375)(17.6)  14.138C</p><p>The absolute relative approximate error a obtained between the results from the first and second order polynomial is 14.138 14.65   100 a 14.138  3.6251%</p><p>Example 3 To maximize a catch of bass in a lake, it is suggested to throw the line to the depth of the thermocline. The characteristic feature of this area is the sudden change in temperature. We are given the temperature vs. depth data for a lake in Table 3.</p><p>Table 3 Temperature vs. depth for a lake. Temperature, T C Depth, z m 19.1 0 19.1 –1 19 –2 18.8 –3 18.7 –4 18.3 –5 18.2 –6 17.6 –7 11.7 –8 9.9 –9 9.1 –10</p><p>Using the given data, we see the largest change in temperature is between z  8 m and z  7 m . Lagrange Method of Interpolation-More Examples: Civil Engineering 05.04.7</p><p> a) Determine the value of the temperature at z  7.5 m using a third order Lagrange polynomial. Find the absolute relative approximate error for the third order polynomial approximation. d 2T b) The position where the thermocline exists is given where  0 . Using the dz 2 expression from part (a), what is the value of the depth at which the thermocline exists?</p><p>Solution a) For third order Lagrange polynomial interpolation (also called cubic interpolation), we choose the temperature given by 3 T(z)   Li (z)T (zi ) i0</p><p> L0 (z)T(z0 )  L1 (z)T (z1 )  L2 (z)T(z2 )  L3 (z)T (z3 )</p><p> y</p><p>(x , y ) 3 3 f (x) 3 (x , y ) 1 1</p><p>(x , y ) 0 0 (x , y ) 2 2</p><p> x</p><p>Figure 4 Cubic interpolation.</p><p>Since we want to find the temperature at z  7.5, we need to choose the four data points that are closest to z  7.5 that also bracket z  7.5 to evaluate it. The four data points are z0  9, z1  8, z2  7 and z3  6 . Then</p><p> z0  9, T z0   9.9</p><p> z1  8, Tz1   11.7</p><p> z2  7, Tz2   17.6</p><p> z3  6, Tz3   18.2 05.04.8 Chapter 05.0 gives 3 z  z j L0 (z)   j0 z0  z j j0</p><p> z  z1  z  z2  z  z3        z0  z1  z0  z2  z0  z3  3 z  z j L1 (z)   j0 z1  z j j1</p><p> z  z0  z  z2  z  z3        z1  z0  z1  z2  z1  z3  3 z  z j L2 (z)   j0 z2  z j j2</p><p> z  z0  z  z1  z  z3        z2  z0  z2  z1  z2  z3  3 z  z j L3 (z)   j0 z3  z j j3</p><p> z  z0  z  z1  z  z2        z3  z0  z3  z1  z3  z2  Hence  z  z  z  z  z  z   z  z  z  z  z  z   1  2  3   0  2  3  T(z)     T (z0 )     T (z1 )  z0  z1  z0  z2  z0  z3   z1  z0  z1  z2  z1  z3 </p><p> z  z  z  z  z  z   z  z  z  z  z  z   0  1  3   0  1  2      T(z2 )     T(z3 )  z2  z0  z2  z1  z2  z3   z3  z0  z3  z1  z3  z2 </p><p> z0  z  z3 (7.5  8)(7.5  7)(7.5  6) (7.5  9)(7.5  7)(7.5  6) T(7.5)  (9.9)  (11.7) (9  8)(9  7)(9  6) (8  9)(8  7)(8  6) (7.5  9)(7.5  8)(7.5  6) (7.5  9)(7.5  8)(7.5  7)  (17.6)  (18.2) (7  9)(7  8)(7  6) (6  9)(6  8)(6  7)  (0.0625)(9.9)  (0.5625)(11.7)  (0.5625)(17.6)  (0.0625)(18.2)  14.725C</p><p>The absolute relative approximate error a obtained between the results from the second and third order polynomial is 14.725 14.138   100 a 14.725  3.9898% Lagrange Method of Interpolation-More Examples: Civil Engineering 05.04.9 b) To find the position of the thermocline, we must find the points of inflection of the third d 2T order polynomial, given by  0. dz 2 (z  8)(z  7)(z  6) (z  9)(z  7)(z  6) T(z)  (9.9)  (11.7) (9  8)(9  7)(9  6) (8  9)(8  7)(8  6)</p><p>(z  9)(z  8)(z  6) (z  9)(z  8)(z  7)  (17.6)  (18.2) (7  9)(7  8)(7  6) (6  9)(6  8)(6  7)  9  z  6 2 3  615.9  262.58z  35.55z 1.5667z ,  9  z  6 dT  262.58  71.1z  4.7z 2 ,  9  z  6 dz d 2T  71.1 9.4z,  9  z  6 dz 2 Simply setting this expression equal to zero, we get 0  71.1 9.4z,  9  z  6 z  7.5638 m This answer can be verified due to the fact that it falls within the specified range of the third order polynomial and it also falls within the region of the greatest temperature change in the collected data from the lake.</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    9 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us