Professional Documents
Culture Documents
Clase 9 (SEMANA 10) Calculo Numerico II - PGRA - 2024 - I
Clase 9 (SEMANA 10) Calculo Numerico II - PGRA - 2024 - I
Clase 9 (SEMANA 10) Calculo Numerico II - PGRA - 2024 - I
IF-392
Semana 09
Dr. Pierre Giovanny Ramos Apestegui
−1
2𝑡6 − ∆𝑡 𝑤5 − 4𝑡6 𝑤6 + 2𝑡6 + ∆𝑡 −2∆𝑡 + 4𝑤6 − 𝑤5 = −4𝑡6 ∆𝑡 2
3
1 4
2𝑡6 − ∆𝑡 𝑤5 − 2𝑡6 + ∆𝑡 𝑤5 − 4𝑡6 𝑤6 + 𝑤 2𝑡 + ∆𝑡 =
3 3 6 6
2
−4𝑡6 ∆𝑡 2 + ∆𝑡 2𝑡6 + ∆𝑡
3
4 4 −4 4 2
2
𝑡 − ∆𝑡 𝑤5 + 𝑡 + ∆𝑡 𝑤6 = −4𝑡6 ∆𝑡 + ∆𝑡 2𝑡6 + ∆𝑡
3 6 3 3 6 3 3
4 −4 2
𝑡6 − ∆𝑡 𝑤5 + 𝑡6 − ∆𝑡 𝑤6 = −4𝑡6 ∆𝑡 2 + ∆𝑡 2𝑡6 + ∆𝑡
3 3 3
Cálculo Numérico II-IF392
The coefficient matrix is once again tridiagonal. This system is solved for the
solution vector to obtain the approximate values at the interior grid points. The
process is completed by attaching w1, which is available, and w7, which is found, to
the vector of the interior grid values. The following Matlab script performs these
tasks:
>> Example01Clase09
𝑖=1
𝑖=2
𝑖 =𝑁−1
𝑖=𝑁
Cálculo Numérico II-IF392
Remembering:
Eq. 1
Solution:
𝑅𝑒𝑎𝑙 𝑠𝑜𝑙𝑢𝑡𝑖𝑜𝑛:
𝑥 2 + 16
𝑥
Cálculo Numérico II-IF392
Example 02
The temperature distribution along a in can be modeled as a BVP.
We will solve this system of nonlinear equations using Newton’s method for
systems. To that end, we first conveniently express the above system as
It is readily observed that the coefficient matrix in Equation 1 is tridiagonal, thus the
system in Equation 1 is most efficiently solved using the Thomas method.
The following script implements Newton’s method to find the solution estimates at
the four interior grid points. The initial values are arbitrarily selected as 400. The
maximum number of iterations was 20 and the tolerance was 10−4 .
Command Windows of Matlab:
>> Example_02_Clase_09
Cálculo Numérico II-IF392
La solución se encontró en la iteración 3:
Valor de T: