User:Eml5526.s11.team2/hwk5

=Problem 5.1: Deriving the Weak Form From the Strong Form (Data 1b)=

Given: Strong Form, Boundary Conditions, and Basis Functions
The Strong Form from lecture 9-1 and Fish and Belytschko p. 73:

Find: The Weak Form in Order to Solve for $$ u^h(x) $$ with Following Basis Functions
Solve for $$ \displaystyle u(x) $$ and $$ \displaystyle u^h(x) $$ using the following basis functions until the error $$ \displaystyle e(n) =|u^h(0.5)-u(0.5)| \leq 10^{-6}$$.


 * 1) Polynomial Basis Function  $$ \displaystyle \mathcal{F}_P :=\{ x^j,j=0,1,2,...\} $$
 * 2) Exponential Basis Function $$ \displaystyle \mathcal{F}_e :=\{ e^{jx},j=0,1,2,...\} $$
 * 3) Fourier Basis Function     $$ \qquad \displaystyle \mathcal{F}_F :=\{cos(jx),j=0,1,2,...,sin(kx),k=1,2,...\} $$

On the domain defined by,

1. Approximating Solution Using Polynomial Basis Function
Here is the matlab code used to obtain the approximating solutions:

Multiplying Equ 2.20 by w(x) and integrating within the domain:

Next we will integrate by parts to obtain,

Since $$ \displaystyle w(x=0) = 0 $$ we can simplify (2.22) in the following way to obtain the weak form,

Now we can use the polynomial basis functions,

Which allows us to write the weak form (2.25) in terms of our matrices $$ \displaystyle {\color{red}\mathbf{K}_{FF}} $$, $$ \displaystyle {\color{red}\mathbf{d}_{F}} $$ and  $$ \displaystyle {\color{red}\mathbf{F}_{F}} $$.

Next we wish to obtain the solution to $$ \displaystyle \mathbf{d_F} $$ by solving the following system of equations,

Solving for the approximating solution, the d matrix can transposed and multiplied by the basis function matrix:

Using the provided matlab code to obtain the d coefficients and applying to the basis function:

n=8
We found that for $$ \displaystyle n=8 $$ the error was of the order $$ \displaystyle 10^{-6} $$. Using the Matlab code and rounding off to the nearest hundredths place gives the matrices $$ \displaystyle \left[ \mathbf{K_{FF}} \right]_ $$ and $$ \displaystyle \left[ \mathbf{F_{F}} \right]_ $$

Using our Matlab code we obtain the following solution for $$ \displaystyle \left[ \mathbf{d_{F}} \right]_ $$. We have chosen to report these values in the long format to demonstrate that rounding error has not occurred.

Plot: Comparing the exact solution $$ u(x) $$ to $$ u_h(x) $$ for $$ n=2,4,6,8 $$
The plots for solutions and error at x=.5 are as follows:

Plot: Showing the error $$ e(n) = |u(x)-u_h(x)| $$
For the polynomial approximate solution, with the increasing number of nodes, the error decreases. For this particular instance, the error XXXXXXX

2. Approximating Soultion Using Fourier Basis Function
Here is the matlab code used to obtain the approximating solutions:

Using the same process as the polynomial solution and using the general equation from equation 2.21, the fourier solution is obtained the same way. W(x) is now equation 5.35 from HW4

Using the provided matlab code to obtain the d coefficients and applying to the basis function:

n=8
Using the Matlab code and rounding off to the nearest hundredths place gives the matrices $$ \displaystyle \left[ \mathbf{K_{FF}} \right]_ $$ and $$ \displaystyle \left[ \mathbf{F_{F}} \right]_ $$

Using our Matlab code we obtain the following solution for $$ \displaystyle \left[ \mathbf{d_{F}} \right]_ $$. We have chosen to report these values in the long format to demonstrate that rounding error has not occurred.

Plot: Comparing the exact solution $$ u(x) $$ to $$ u_h(x) $$ for $$ n=2,4,6,8 $$
The plots for solutions and error at x=.5 are as follows:

3. Approximating Soultion Using Exponential Basis Function
Here is the matlab code used to obtain the approximating solutions:

Using the same process as the polynomial solution and using the general equation from equation 2.21, the exponential solution is obtained the same way. W(x) is now equation 5.41 from HW4

Using the provided matlab code to obtain the d coefficients and applying to the basis function:

n=8
Using the Matlab code and rounding off to the nearest hundredths place gives the matrices $$ \displaystyle \left[ \mathbf{K_{FF}} \right]_ $$ and $$ \displaystyle \left[ \mathbf{F_{F}} \right]_ $$

Using our Matlab code we obtain the following solution for $$ \displaystyle \left[ \mathbf{d_{F}} \right]_ $$. We have chosen to report these values in the long format to demonstrate that rounding error has not occurred.

Plots
The plots for solutions and error at x=.5 are as follows:

=Problem 5.2: Deriving the Weak Form From the Strong Form (Data 1)=

Given: Strong Form, Boundary Conditions, and Basis Functions
The Strong Form from lecture 9-1 and Fish and Belytschko p. 73:

Find: The Weak Form in Order to Solve for $$ u^h(x) $$ with Following Basis Functions
Solve for $$ \displaystyle u(x) $$ and $$ \displaystyle u^h(x) $$ using the following basis functions until the error $$ \displaystyle e(n) =|u^h(0.5)-u(0.5)| \leq 10^{-6}$$.


 * 1) Polynomial Basis Function  $$ \displaystyle \mathcal{F}_P :=\{ x^j,j=0,1,2,...\} $$
 * 2) Exponential Basis Function $$ \displaystyle \mathcal{F}_e :=\{ e^{jx},j=0,1,2,...\} $$
 * 3) Fourier Basis Function     $$ \qquad \displaystyle \mathcal{F}_F :=\{cos(jx),j=0,1,2,...,sin(kx),k=1,2,...\} $$

On the domain defined by,

1. Approximating Solution Using Polynomial Basis Function
Here is the matlab code used to obtain the approximating solutions:

Multiplying Equ 2.20 by w(x) and integrating within the domain:

Next we will integrate by parts to obtain,

Since $$ \displaystyle w(x=1) = 0 $$ we can simplify (2.22) in the following way to obtain the weak form,

Now we can use the polynomial basis functions,

Which allows us to write the weak form (2.25) in terms of our matrices $$ \displaystyle {\color{red}\mathbf{K}_{FF}} $$, $$ \displaystyle {\color{red}\mathbf{d}_{F}} $$ and  $$ \displaystyle {\color{red}\mathbf{F}_{F}} $$.

Next we wish to obtain the solution to $$ \displaystyle \mathbf{d_F} $$ by solving the following system of equations,

Solving for the approximating solution, the d matrix can transposed and multiplied by the basis function matrix:

Using the provided matlab code to obtain the d coefficients and applying to the basis function:

n=8
We found that for $$ \displaystyle n=8 $$ the error was of the order $$ \displaystyle 10^{-6} $$. Using the Matlab code and rounding off to the nearest hundredths place gives the matrices $$ \displaystyle \left[ \mathbf{K_{FF}} \right]_ $$ and $$ \displaystyle \left[ \mathbf{F_{F}} \right]_ $$

Using our Matlab code we obtain the following solution for $$ \displaystyle \left[ \mathbf{d_{F}} \right]_ $$. We have chosen to report these values in the long format to demonstrate that rounding error has not occurred.

Plot: Comparing the exact solution $$ u(x) $$ to $$ u_h(x) $$ for $$ n=2,4,6,8 $$
The plots for solutions and error at x=.5 are as follows:

Plot: Showing the error $$ e(n) = |u(x)-u_h(x)| $$
For the polynomial approximate solution, with the increasing number of nodes, the error decreases. For this particular instance, the error XXXXXXX

2. Approximating Soultion Using Fourier Basis Function
Here is the matlab code used to obtain the approximating solutions:

Using the same process as the polynomial solution and using the general equation from equation 2.21, the fourier solution is obtained the same way. W(x) is now equation 5.35 from HW4

Using the provided matlab code to obtain the d coefficients and applying to the basis function:

n=4
etc...

n=8
Using the Matlab code and rounding off to the nearest hundredths place gives the matrices $$ \displaystyle \left[ \mathbf{K_{FF}} \right]_ $$ and $$ \displaystyle \left[ \mathbf{F_{F}} \right]_ $$

Plot: Comparing the exact solution $$ u(x) $$ to $$ u_h(x) $$ for $$ n=2,4,6,8 $$
The plots for solutions and error at x=.5 are as follows:

3. Approximating Soultion Using Exponential Basis Function
Here is the matlab code used to obtain the approximating solutions:

Using the same process as the polynomial solution and using the general equation from equation 2.21, the exponential solution is obtained the same way. W(x) is now equation 5.41 from HW4

Using the provided matlab code to obtain the d coefficients and applying to the basis function:

n=8
Using the Matlab code and rounding off to the nearest hundredths place gives the matrices $$ \displaystyle \left[ \mathbf{K_{FF}} \right]_ $$ and $$ \displaystyle \left[ \mathbf{F_{F}} \right]_ $$

Using our Matlab code we obtain the following solution for $$ \displaystyle \left[ \mathbf{d_{F}} \right]_ $$. We have chosen to report these values in the long format to demonstrate that rounding error has not occurred.

The plots for solutions and error at x=.5 are as follows:

Matlab
=Problem 5.3: Torsion of a Bar = Modified version of HW 4.4 defined on page 2 of Lecture 21 from Fish & Belytschko Page 73 Problem 3.7

Given
Where the Weak Form for a bar in torsion can be defined as

Make use of the Lagrange Interpolation Basis Function (LIBF) with uniform discretization (equidistant nodes) using $$ \displaystyle m = 4,6,8   $$ where the LIBF can defined as follows

Find
a) Explain how Langrange Interpolation Basis Functions (LIBF) are used as Constraint Breaking Solutions

b) Plot all LIBF used

c) Use matlab quad function or WolframAlpha.com to integrate

d) Plot approximate vs exact solution and convergence error versus equidistant nodes (m)

(a)
Langrange Interpolation Basis Functions satisfy the condition of the constraint breaking solution by assuming a value of zero at every node except for the node where the LIBF is defined there it assumes a value of 1. It acts like the Kronecker Delta

(b)
The following is the LIBF for the $$ \displaystyle m = 4 $$

The following is the LIBF for the $$ \displaystyle m = 6 $$

The following is the LIBF for the $$ \displaystyle m = 8 $$

Plot: Comparing the exact solution $$ u(x) $$ to $$ u_h(x) $$ for $$ n=2,4,6,8 $$
The plots for solutions and error at x=.5 are as follows:

Matlab Code
=Problem 5.4: Torsion of a Bar = Modified version of HW 4.4 defined on page 2 of Lecture 21 from Fish & Belytschko Page 73 Problem 3.7

Given
Where the Weak Form for a bar in torsion can be defined as

Make use of the Lagrange Interpolation Basis Function (LIBF) with uniform discretization (equidistant nodes) using $$ \displaystyle m = 4,6,8   $$ where the LIBF can defined as follows

Find
a) Explain how Langrange Interpolation Basis Functions (LIBF) are used as Constraint Breaking Solutions b) Plot all LIBF used c) Use matlab quad function or WolframAlpha.com to integrate d) Plot approximate vs exact solution and convergence error versus equidistant nodes (m)

(a)
Langrange Interpolation Basis Functions satisfy the condition of the constraint breaking solution by assuming a value of zero at every node except for the node where the LIBF is defined there it assumes a value of 1. It acts like the Kronecker Delta

(b)
The following is the LIBF for the $$ \displaystyle m = 4 $$

The following is the LIBF for the $$ \displaystyle m = 6 $$

The following is the LIBF for the $$ \displaystyle m = 8 $$

(c)
Our solution $$ u \left ( x \right ) $$ and our weight functions can be approximated using the following definitions,

To approximate our solution u, we divide our x domain into m nodal subdivisions. Additionally, we will use m LIBF to approximate our solution. These LIBF will have the following form,

Therefore, for m=4, we take the first 4 Lagrange Interpolation Basis Functions, or more specifically,

Here we want to develop equations for $$ \tilde{K_{KK}} $$ and $$ \tilde{F_K} $$ and solve for $$ \tilde{d_{K}} $$, similar to the previous problems.

Plot: Comparing the exact solution $$ u(x) $$ to $$ u_h(x) $$ for $$ n=2,4,6,8 $$
The plots for solutions and error at x=.5 are as follows:

Matlab Code
= Problem 5.5 : Calculix-Using CCX module=

Disk Problem
After building disc in cgx module then we might want to know that properties of nodes,lines, surfaces, and bodies so now lets look at how we can get more information what we have done for our model.

First we have to open our program. To do this run the following ;


 * {| style="width:100%" border="0"

$$  \displaystyle [All Programs]\Rightarrow [bConverged]\Rightarrow [Calculix]\Rightarrow [Calculix Command] $$
 * style="width:95%" |
 * style="width:95%" |
 * }

Open calculix and go to directory where the basic examples stays in your harddrive.
 * {| style="width:100%" border="0"

$$  \displaystyle ...\Rightarrow [Program Files]\Rightarrow [bConverged] \Rightarrow [Calculix] \Rightarrow [Cgx] \Rightarrow [Examples] \Rightarrow [Basic] $$
 * style="width:95%" |
 * style="width:95%" |
 * }



Then type to open disc example:


 * {| style="width:100%" border="0"

$$  \displaystyle [cgx]\Rightarrow [disc] $$
 * style="width:95%" |
 * style="width:95%" |


 * }

Now we want to learn about point properties. To see point properties in our graph secren type


 * {| style="width:100%" border="0"

$$  \displaystyle \begin{matrix} plot & pa   & all \end{matrix} $$
 * style="width:95%" |
 * style="width:95%" |
 * }



We need to mesh disc to see the mesh properties to mesh the disc please type following steps


 * {| style="width:100%" border="0"

$$  \displaystyle \begin{matrix} elty & all & qu8 \end{matrix} $$
 * style="width:95%" |
 * style="width:95%" |


 * }


 * {| style="width:100%" border="0"

$$  \displaystyle \begin{matrix} mesh & all \end{matrix} $$
 * style="width:95%" |
 * style="width:95%" |


 * }

What we have done so far is that we opened disc and meshed it with quadratic elements. So we are ready to see element properties on our graph screen. To see properties of elements type,
 * {| style="width:100%" border="0"

$$  \displaystyle \begin{matrix} plot & ma  & all \end{matrix} $$
 * style="width:95%" |
 * style="width:95%" |


 * }



Also we can get more specific properties form the special editor of calculix called 'SciTE.' We can go to examples directory and just basically right click on disc example and open with by editing. SciTE automatically will be opened.



From below we can easly see the properties of all components of disc. Especially point properties are boxed.



Generating Different Meshes
We will do the same procedures as we have done before. Our model is prepared. So we will mesh our model and take properties of different kinds of meshes for 2-D. Our meshes for 2-D are:


 * {| style="width:100%" border="0"

$$  \displaystyle \begin{matrix} tr3 & 3 node & 2D element \\ gu4 & 4 node & 2D element\\ qu8 & 8 node & 2D element \end{matrix} $$     (N)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }
 * {| style="width:100%" border="0"

$$  \displaystyle \begin{matrix} Mesh & with  & tr3 \end{matrix} $$
 * style="width:95%" |
 * style="width:95%" |


 * }
 * {| style="width:100%" border="0"

$$  \displaystyle \begin{matrix} Mesh & with  & qu4 \end{matrix} $$
 * style="width:95%" |
 * style="width:95%" |


 * }
 * {| style="width:100%" border="0"

$$  \displaystyle \begin{matrix} Mesh & with  & qu8 \end{matrix} $$
 * style="width:95%" |
 * style="width:95%" |
 * }

CCX module
In this module we will analyze for unknowns that we are interested in. This unknowns can be displacements or temperatures. Also we can find fluxes between these nodes.

For the first step go to directory where beam example stays in your harddrive.


 * {| style="width:100%" border="0"

$$  \displaystyle ....[Program Files]\Rightarrow [bConverged]\Rightarrow [Calculix]\Rightarrow [ccx]\Rightarrow [test] $$
 * style="width:95%" |
 * style="width:95%" |


 * }

Find beampl.inp and right click on it. Then edit it by selecting open with. SciTe automatically will be opened. Every command inside is ready so we have assumed the we have completed by the mesh and ready for solving.So click tools and click 'solve'.



You have to see that $$ \displaystyle Job Finished $$  Then click tools and click 'post prosess'.



Results
 * {| style="width:100%" border="0"

$$  \displaystyle Result 1 $$
 * style="width:95%" |
 * style="width:95%" |


 * }
 * {| style="width:100%" border="0"

$$  \displaystyle Result2 $$
 * style="width:95%" |
 * style="width:95%" |


 * }

=Problem 5.6: The Quadratic Lagrangian Element Basis Function = Lecture 30-6

Given:
Given the Linear Lagrangian Element Basis Function,

from Lecture 30-6

Find:
The Quadratic Lagrangian Element Basis Function

Solution:
The above is the depiction of the basis function satisfying the CBS for element node i-1 The above is the depiction of the basis function satisfying the CBS for element node i The above is the depiction of the basis function satisfying the CBS for element node i+1 Next we overlay the three functions to show the shape function for the quadratic Lagrangian

=Problem 5.7 Weak form solution using LLEIF=

Given
Solve the following discrete weak form with Linear Lagrange Element Interpolation Basis.


 * {| style="width:100%" border="0"

$$  \displaystyle \sum {{c_i}\left[ {\sum {{{\tilde K}_{ij}}{d_j} - {{\tilde F}_i}} } \right]} = 0 $$     (3.7.1)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }

Where


 * {| style="width:100%" border="0"

$$  \displaystyle {{\tilde K}_{ij}} = \int\limits_0^1 {{{b'}_i}(2 + 3x){{b'}_j}dx} $$     (3.7.2)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }
 * {| style="width:100%" border="0"

$$  \displaystyle {F_i} = {b_i}\left( 1 \right)\left( {12} \right) + \int_0^1 {{b_i}\left( x \right)5x} dx $$ (3.7.3)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }

Such that


 * {| style="width:100%" border="0"

$$  \displaystyle {u^h}\left( 0 \right) = \sum {{d_j}{b_j}\left( 0 \right) = 4} $$     (3.7.4)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }
 * {| style="width:100%" border="0"

$$  \displaystyle {w^h}\left( 0 \right) = \sum {{c_i}{b_i}\left( 0 \right) = 0} $$     (3.7.5)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }

d. Plot $${u^h}$$ vs $${u}$$
Plot $${u^h}\left( {0.5} \right) - u\left( {0.5} \right)$$ vs n (total no. of dof's)

a. Using LLEBF in constraint breaking solution(CBS)
We have following constraint to be satisfied to use weak form


 * {| style="width:100%" border="0"

$$  \displaystyle {w^h}\left( 0 \right) = \sum {{c_i}{b_i}\left( 0 \right) = 0} $$     (3.7.6)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }

At node 1 (i.e. at x=0) all the basis function are zero except 1.


 * {| style="width:100%" border="0"

$$  \displaystyle {w^h} = {c_1}{b_1} + {c_2}{b_2} + {c_3}{b_3} + {c_4}{b_4} + \cdots $$     (3.7.7)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle {w^h} = {c_1}(1) + {c_2}(0) + {c_3}(0) + {c_4}(0) + \cdots $$     (3.7.8)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle {w^h} = {c_1} $$     (3.7.9)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }

For
 * {| style="width:100%" border="0"

$$  \displaystyle {w^h}\left( 0 \right) = 0 $$     (3.7.10)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle {c_1} = 0 $$     (3.7.11)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }

To satisfy homogeneous boundary condition while using Linear Lagrange Element Interpolation Functions, we just have to select our $$w^h$$ such that $${c_1} = 0$$.

c Formulation of K and F on element level
We can divide the total domain into elemental domain.


 * {| style="width:100%" border="0"

$$  \displaystyle \Omega = \bigcup\limits_{e = 1}^{nel} $$     (3.7.12)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }

Values of K and F will be summation of K and F over the elements
 * {| style="width:100%" border="0"

$$  \displaystyle {{\tilde K}_{ij}} = \sum\limits_{e = 1}^{nel} {K_{ij}^e} $$     (3.7.13)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle K_{ij}^e = \int\limits_ {{{b'}^e}_i(2 + 3x){{b'}^e}_jdx} $$     (3.7.14)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle {{\tilde F}_i} = \sum\limits_{e = 1}^{nel} {F_i^e} $$     (3.7.15)
 * style="width:95%" |
 * style="width:95%" |
 * 
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle {F_i}^e = \int_ {b_i^e5xdx} $$     (3.7.16)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

There will be two basis function for each element. Generalised values of these basis function will be as follow


 * {| style="width:100%" border="0"

$$  \displaystyle {b_e} = \frac $$     (3.7.17)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle {b_{e + 1}} = \frac $$     (3.7.18)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

d. Solution using Matlab
Plot of exact solution and approximate solution with 2 elements



Plot of exact solution and approximate solution with 4 elements



Plot of exact solution and approximate solution with 6 elements



Plot of exact solution and approximate solution with 8 elements



Plot of error vs dof's


 * {| style="width:100%" border="0"

$$  \displaystyle err = u\left( {0.5} \right) - {u^h}\left( {0.5} \right) $$     (3.7.19)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle dof's = nel + 1 $$     (3.7.20)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

where nel= number of elements.



for 16 elements

dof's=16+1=17



comment
Solution is converging with increasing no. of elements. For n=16 error is less than 0.0001.

=Problem 5.8:Using LLEBF to solve G1DM1.0/D1=

Given
G1DM1.0/D1 : Model for elastic bar problem was given in meeting 9.


 * {| style="width:100%" border="0"

$$  \displaystyle \frac{\mathrm{d} }{\mathrm{d} x}\left [ (2+3x)\frac{\mathrm{d} u}{\mathrm{d} x} \right ]+5x=0 $$     (8.1)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle u(1)=4 $$     (8.2)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle \frac{\mathrm{d} u(x=0)}{\mathrm{d} x}=-3 $$     (8.3)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

Weak Form
 * {| style="width:100%" border="0"

$$  \displaystyle \int_{\Omega }\frac{\mathrm{d} w}{\mathrm{d} x}AE\frac{\mathrm{d} u}{\mathrm{d} x}dx-\left ( wAt \right )_{\Gamma _{h}}-\int_{\Omega }wbdx=0 \Rightarrow \Omega =]0,1[ $$     (8.4)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

We have to manipulate weak form in order to use for element matrices. As to element mesh we use weak form for each elements and then we can take summation for all elements to get global matrices.


 * {| style="width:100%" border="0"

$$  \displaystyle \sum\limits_{e=1}^{nel}{{{w}^{eT}}\left\{ \int\limits_{{{x}_{1}}^{e}}^{{{x}_{2}}^{e}}{{{B}^{eT}}{{A}^{e}}{{E}^{e}}{{B}^{e}}dx{{d}^{e}}-\int\limits_{{{x}_{1}}^{e}}^{x_{2}^{e}}{{{N}^{eT}}bdx-{{({{N}^{eT}}{{A}^{e}}\overline{t})}_{x=0}}}} \right\}=0} $$     (8.5)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

Approximate functions gives as in F&B Book,


 * {| style="width:100%" border="0"

$$  \displaystyle u^{h}=\sum_{e=1}^{nel}N^{e}d^{e}=\left ( \sum_{e=1}^{nel}N^{e}L^{e}\right )\mathbf{d} $$     (8.6)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle w^{h}=\sum_{e=1}^{nel}N^{e}w^{e}=\left ( \sum_{e=1}^{nel}N^{e}L^{e}\right )\mathbf{w} $$     (8.7)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

Where N is called as 'shape functions' and L is called 'gather matrices'.


 * {| style="width:100%" border="0"

$$  \displaystyle N^{e}=\frac{1}{l^{e}}[\begin{matrix} x_{2}^{e}-x & x-x_{1}^{e} \end{matrix}] $$     (8.8)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle B^{e}=\frac{1}{l^{e}}[\begin{matrix} -1 & 1 \end{matrix}] $$     (8.9)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

Analytical Solution

 * {| style="width:100%" border="0"

$$  \displaystyle \int \left ( (2+3x)\frac{\mathrm{d} u}{\mathrm{d} x} \right )dx=-\int (5x)dx+c_{1} $$     (8.10)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }
 * {| style="width:100%" border="0"

$$  \displaystyle 2\frac{\mathrm{d} u}{\mathrm{d} x}(x=0)=0+c_{1} \Rightarrow c_{1}=-6 $$     (8.11)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }
 * {| style="width:100%" border="0"

$$  \displaystyle u=-\frac{5}{2}\int \frac{x^2}{2+3x}dx-\int \frac{6}{2+3x}dx+c_{2} $$     (8.12)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle -\frac{5}{2}\left [ \frac{1}{54}(9x^2-12x+8log(3x+2)-12) \right ]-\left [ \frac{1}{3}log(3x+2) \right ]+c_{2} $$     (8.13)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

Using other boundry condition ;


 * {| style="width:100%" border="0"

$$  \displaystyle c_{2}=\frac{119}{36}+\frac{64}{27}log(5) $$     (8.14)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }
 * {| style="width:100%" border="0"

$$  \displaystyle u(x)=-\frac{5}{12}x^2+\frac{5}{9}x-\frac{64}{27}log(2+3x)+\frac{139}{36}+\frac{64}{27}log(5) $$     (8.15)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

FEA solutions
When evaluating unknowns on distributed nodes our shape functions must meet some conditions.Our approximate functions must be complete in each element. As saying completeness we are saying that by using our nodal values we must be able to identify coefficients in our approximate solutions. After some manipulation we conclude with shape functions. For each nodes we have shape functions and for middle nodes shape functions come from adjacent elements.

For example two element mesh ;
 * {| style="width:100%" border="0"

$$  \displaystyle N=N^{(1)}L^{(1)}+N^{(2)}L^{(2)}=[\begin{matrix} N_{1}^{(1)} & N_{2}^{(1)}+N_{1}^{(2)} & N_{2}^{(2)} \end{matrix}]
 * style="width:95%" |
 * style="width:95%" |

$$     (8.16)
 * <p style="text-align:right">
 * }

For this example at x1 (first node) only N1 will be 1. Others will be zero. So we verify CBS.

Using 4 elements

 * {| style="width:100%" border="0"

$$  \displaystyle \Omega =]0,1[ $$ [[image:Egm6321.f10.team2.oztekin.Elemtdiv.png|center]]
 * style="width:95%" |
 * style="width:95%" |
 * }

Lets find shape functions for 4 elements.


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} &N^{(1)}=\frac{1}{0.25}[\begin{matrix} 0.25-x & x \end{matrix}]\\ &N^{(2)}=\frac{1}{0.25}[\begin{matrix} 0.5-x & x-0.25 \end{matrix}]\\ &N^{(3)}=\frac{1}{0.25}[\begin{matrix} 0.75-x & x-0.5 \end{matrix}]\\ &N^{(4)}=\frac{1}{0.25}[\begin{matrix} 1-x & x-0.75 \end{matrix}] \end{align} $$     (8.17)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

These shape functions are useful for us to make connection between nodes. After defining these tools now we can find stiffness matrices for all elements. Then after finding all of stiffness matrices for elements we can construct global stiffness matrix.


 * {| style="width:100%" border="0"

$$  \displaystyle K^{e}=\int_{x_{1}^{e}}^{x_{2}^{e}}B^{eT}A^{e}E^{e}B^{e}dx $$     (8.18)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} {{K}^{e}}&=\int\limits_{x_{1}^{e}}^{x_{2}^{e}}{\frac{1}\left[ \begin{matrix} -1 \\   1  \\ \end{matrix} \right]}(2+3x)\frac{1}[\begin{matrix} -1 & 1 \\ \end{matrix}]dx \\ &=\frac{1}\left[ \begin{matrix} 1 & -1 \\   -1 & 1  \\ \end{matrix} \right]\left[ 2(x_{2}^{e}-x_{1}^{e})+\frac{3}{2}(x_{2}^{e2}-x_{1}^{e2}) \right] \end{align} $$     (8.19)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle {{K}^{e}}=\frac{1}\left[ \begin{matrix} 1 & -1 \\   -1 & 1  \\ \end{matrix} \right]\left[ 2+\frac{3}{2}(x_{2}^{e}+x_{1}^{e}) \right] $$     (8.20)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle K^{(1)}=\begin{bmatrix} 9.5 & -9.5\\ -9.5& 9.5 \end{bmatrix} $$     (8.21)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle K^{(2)}=\begin{bmatrix} 12.5 & -12.5\\ -12.5& 12.5 \end{bmatrix} $$     (8.22)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle K^{(3)}=\begin{bmatrix} 15.5 & -15.5\\ -15.5& 15.5 \end{bmatrix} $$     (8.23)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle K^{(4)}=\begin{bmatrix} 18.5 & -18.5\\ -18.5& 18.5 \end{bmatrix} $$     (8.24)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }

We can construct global stiffness matrix now. This will be distribution of all four element stiffness matrices into appropriate places. For our convenience i will use direct method. But it is useful using below equation for computing purposes.


 * {| style="width:100%" border="0"

$$  \displaystyle K=\sum_{e=1}^{nel}L^{eT}K^{e}L^{e}=L^{1T}K^{1}L^{1}+L^{2T}K^{2}L^{2}+L^{3T}K^{3}L^{3}+L^{4T}K^{4}L^{4} $$     (8.25)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }
 * {| style="width:100%" border="0"

$$  \displaystyle K=\left[ \begin{matrix} \begin{matrix} \begin{matrix} \begin{matrix} 9.5 \\   -9.5  \\ \end{matrix}  \\ 0 \\   0  \\   0  \\ \end{matrix} & \begin{matrix} \begin{matrix} -9.5 \\   22  \\ \end{matrix}  \\ -12.5 \\   0  \\   0  \\ \end{matrix}  \\ \end{matrix} & \begin{matrix} \begin{matrix} 0 \\   -12.5  \\ \end{matrix}  \\ 28 \\   \begin{matrix} -15.5 \\   0  \\ \end{matrix}  \\ \end{matrix} & \begin{matrix} \begin{matrix} 0 \\   0  \\ \end{matrix}  \\ -15.5 \\   34  \\   -18.5  \\ \end{matrix} & \begin{matrix} \begin{matrix} 0 \\   0  \\ \end{matrix}  \\ 0 \\   -18.5  \\   18.5  \\ \end{matrix}  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

$$     (8.26)
 * <p style="text-align:right">
 * }

The next step we have to find force matrices. Which ha two components. Lets first find force matrix at natural boundary condition and second distributed force matrix on our domain.


 * {| style="width:100%" border="0"

$$  \displaystyle f_{\Gamma _{h}}=-(N^{eT}A^{e}b)_{\Gamma _{h}^{e}}=-N^{eT}(x_{1})(2+3x)_{x=0}(-3)=6N^{eT}(x_{1}) $$     (8.27)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }
 * {| style="width:100%" border="0"

$$  \displaystyle f_{{\Gamma }^{(1)}}=6\left[ \begin{matrix} N_{1}^{(1)}({{x}_{1}}) \\ N_{2}^{(1)}({{x}_{2}}) \\ \end{matrix} \right]=\left[ \begin{matrix} 6 \\   0  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

$$     (8.28)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} &f_{{\Gamma }^{(2)}}=f_{{\Gamma }^{(3)}}=f_{{\Gamma }^{(4)}}=6\left[ \begin{matrix} N_{1}^{(e)}({{x}_{1}}) \\ N_{2}^{(e)}({{x}_{2}}) \\ \end{matrix} \right]=\left[ \begin{matrix} 0 \\   0  \\ \end{matrix} \right] &for & e=2,3,4 \end{align} $$     (8.29)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} f_{\Gamma _{h}} &=\sum_{e=1}^{nel}L^{eT}f_{\Gamma _{h}}^{e} \\ &=\left[ \begin{matrix} \begin{matrix} 6 \\   0  \\ \end{matrix}  \\ 0 \\   0  \\   0  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

\end{align} $$     (N)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} f_{\Omega }^{e} & =\int_{x_{1}^{e}}^{x_{2}^{e}}N^{eT}b(x)dx\\ &=\int\limits_{x_{1}^{e}}^{x_{2}^{e}}{\frac{1}\left[ \begin{matrix} x_{2}^{e}-x \\ x-x_{1}^{e} \\ \end{matrix} \right]}5xdx \\ &=\frac{5}\left[ \begin{matrix} \frac{x_{2}^{e}(x_{2}^{e2}-x_{1}^{e2})}{2}-\frac{(x_{2}^{e3}-x_{1}^{e3})}{3} \\ \frac{(x_{2}^{e3}-x_{1}^{e3})}{3}-\frac{x_{1}^{e}(x_{2}^{e2}-x_{1}^{e2})}{2} \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

\end{align} $$     (8.30)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle f_{\Omega }^{(1)}=\left[ \begin{matrix} 0.05208334 \\   0.10416666  \\ \end{matrix} \right] $$     (8.31)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle f_{\Omega }^{(2)}=\left[ \begin{matrix} 0.2083334 \\   0.2604166  \\ \end{matrix} \right] $$     (8.32)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle f_{\Omega }^{(3)}=\left[ \begin{matrix} 0.36458334 \\   0.41666666  \\ \end{matrix} \right] $$     (8.33)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle f_{\Omega }^{(4)}=\left[ \begin{matrix} 0.52083334 \\   0.57291666  \\ \end{matrix} \right] $$     (8.34)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} f_{\Omega }&=\sum_{e=1}^{4}L^{eT}f_{\Omega }^{e} &\left[ \begin{matrix} \begin{matrix} 0.05208334 \\   0.3125  \\ \end{matrix}  \\ 0.625 \\   0.9375  \\   0.57291666  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

\end{align} $$     (8.35)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle \left[ \begin{matrix} \begin{matrix} 9.5 \\   -9.5  \\ \end{matrix} & \begin{matrix} -9.5 \\   22  \\ \end{matrix} & \begin{matrix} 0 \\   -12.5  \\ \end{matrix} & \begin{matrix} \begin{matrix} 0 & 0 \\ \end{matrix}  \\ \begin{matrix} 0 & 0 \\ \end{matrix}  \\ \end{matrix} \\ 0 & -12.5 & 28 & \begin{matrix} -15.5 & 0 \\ \end{matrix}  \\ 0 & 0 & -15.5 & \begin{matrix} 34 & -18.5 \\ \end{matrix}  \\ 0 & 0 & 0 & \begin{matrix} -18.5 & 18.5 \\ \end{matrix}  \\ \end{matrix} \right]\left[ \begin{matrix} \begin{matrix} {{d}_{1}} \\ {{d}_{2}} \\ \end{matrix} \\ {{d}_{3}} \\ {{d}_{4}} \\ 4 \\ \end{matrix} \right]=\left[ \begin{matrix} \begin{matrix} 0.05208334 \\   0.3125  \\ \end{matrix}  \\ 0.625 \\   0.9375  \\   0.57291666  \\ \end{matrix} \right]+\left[ \begin{matrix} \begin{matrix} 6 \\   0  \\ \end{matrix}  \\ 0 \\   0  \\   0  \\ \end{matrix} \right]+\left[ \begin{matrix} \begin{matrix} 0 \\   0  \\ \end{matrix}  \\ 0 \\   0  \\   {{r}_{1}}  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

$$     (8.36)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle \left[ \begin{matrix} {{d}_{1}} \\ {{d}_{2}} \\ {{d}_{3}} \\ {{d}_{4}} \\ \end{matrix} \right]=\left[ \begin{matrix} 2.0257 \\   1.3886  \\   0.8794  \\   0.4285  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

$$     (8.37)
 * <p style="text-align:right">
 * }

Comparing results with exact ones at the nodes;


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} &\left[ \begin{matrix} 2.0257 \\   1.3886  \\   0.8794  \\   0.4285  \\ \end{matrix} \right]+\left[ \begin{matrix} 4 \\   4  \\   4  \\   4  \\ \end{matrix} \right]=\left[ \begin{matrix} 6.0257 \\   5.3886  \\   4.8794  \\   4.4285  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

&{{d}_{exact}}=\left[ \begin{matrix} 6.0331 \\   5.3911  \\   4.8802  \\   4.4286  \\ \end{matrix} \right]

\end{align} $$     (8.38)
 * <p style="text-align:right">
 * }
 * {| style="width:100%" border="0"

$$  \displaystyle 4 elements $$
 * style="width:95%" |
 * style="width:95%" |
 * }



Using 6 elements
Shape functions for 6 elements
 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} & N^{(1)}=\frac{1}{0.1666}[\begin{matrix} 0.1666-x & x \end{matrix}]\\ &N^{(2)}=\frac{1}{0.1666}[\begin{matrix} 0.3333-x & x-0.16666 \end{matrix}]\\ & N^{(3)}=\frac{1}{0.1666}[\begin{matrix} 0.5-x & x-0.3333 \end{matrix}]\\ &N^{(4)}=\frac{1}{0.1666}[\begin{matrix} 0.6666-x & x-0.5 \end{matrix}]\\ & N^{(5)}=\frac{1}{0.1666}[\begin{matrix} 0.8332-x & x-0.6666 \end{matrix}]\\ & N^{(6)}=\frac{1}{0.1666}[\begin{matrix} 1-x & x-0.8332 \end{matrix}]\\
 * style="width:95%" |
 * style="width:95%" |

\end{align} $$     (8.39)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle \left[ \begin{matrix} \begin{matrix} \begin{matrix} \begin{matrix} 13.5048 & -13.5048 & 0 & 0 \\ \end{matrix} & 0 & 0 & 0  \\ \end{matrix} \\ \begin{matrix} \begin{matrix} -13.5048 & 30.0105 & -16.5057 & 0 \\ \end{matrix} & 0 & 0 & 0  \\ \end{matrix} \\ \begin{matrix} \begin{matrix} 0 & -16.5057 & 36.0132 & -19.5075 \\ \end{matrix} & 0 & 0 & 0  \\ \end{matrix} \\ \begin{matrix} \begin{matrix} 0 & 0 & -19.5075 & 42.0157 \\ \end{matrix} & -22.5084 & 0 & 0  \\ \end{matrix} \\ \end{matrix} \\ \begin{matrix} \begin{matrix} 0 & 0 & 0 & -22.5084 \\ \end{matrix} & 48.0164 & -25.508 & 0  \\ \end{matrix} \\ \begin{matrix} \begin{matrix} 0 & 0 & 0 & 0 \\ \end{matrix} & -25.508 & 54.008 & -28.5  \\ \end{matrix} \\ \begin{matrix} \begin{matrix} 0 & 0 & 0 & 0 \\ \end{matrix} & 0 & -28.5 & 28.5  \\ \end{matrix} \\ \end{matrix} \right]\left[ \begin{matrix} \begin{matrix} {{d}_{1}} \\ {{d}_{2}} \\ {{d}_{3}} \\ {{d}_{4}} \\ \end{matrix} \\ {{d}_{5}} \\ {{d}_{6}} \\ 4 \\ \end{matrix} \right]=\left[ \begin{matrix} \begin{matrix} 6.0232199942 \\   0.13890282  \\   0.277972087  \\   0.416641681  \\ \end{matrix}  \\ 0.555277743 \\   0.694970317  \\   0.394287575  \\ \end{matrix} \right]+\left[ \begin{matrix} \begin{matrix} 0 \\   0  \\   0  \\   0  \\ \end{matrix}  \\ 0 \\   0  \\   {{r}_{1}}  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

$$     (8.40)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle \left[ \begin{matrix} \begin{matrix} {{d}_{1}} \\ {{d}_{2}} \\ {{d}_{3}} \\ \end{matrix} \\ {{d}_{4}} \\ {{d}_{5}} \\ {{d}_{6}} \\ \end{matrix} \right]=\left[ \begin{matrix} \begin{matrix} 2.0292 \\   1.5831  \\   1.2098  \\ \end{matrix}  \\ 0.8797 \\   0.575  \\   0.2845  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

$$     (8.41)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} & \left[ \begin{matrix} \begin{matrix} 2.0292 \\   1.5831  \\   1.2098  \\ \end{matrix}  \\ 0.8797 \\   0.575  \\   0.2845  \\ \end{matrix} \right]+\left[ \begin{matrix} \begin{matrix} 4 \\   4  \\   4  \\ \end{matrix}  \\ 4 \\   4  \\   4  \\ \end{matrix} \right]=\left[ \begin{matrix} \begin{matrix} 6.0292 \\   5.5831  \\   5.2098  \\ \end{matrix}  \\ 4.8797 \\   4.575  \\   4.2845  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

& {{d}_{exact}}=\left[ \begin{matrix} \begin{matrix} 6.0331 \\   5.5853  \\   5.2109  \\ \end{matrix}  \\ 4.8802 \\   4.5753  \\   4.2847  \\ \end{matrix} \right]

\end{align} $$     (8.42)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle 6 elements $$
 * style="width:95%" |
 * style="width:95%" |


 * }



Using 8 elements
Shape functions for 8 elements
 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} & N^{(1)}=\frac{1}{0.125}[\begin{matrix} 0.125-x & x \end{matrix}]\\ &N^{(2)}=\frac{1}{0.125}[\begin{matrix} 0.25-x & x-0.125 \end{matrix}]\\ & N^{(3)}=\frac{1}{0.125}[\begin{matrix} 0.375-x & x-0.25 \end{matrix}]\\ &N^{(4)}=\frac{1}{0.125}[\begin{matrix} 0.5-x & x-0.375 \end{matrix}]\\ & N^{(5)}=\frac{1}{0.125}[\begin{matrix} 0.625-x & x-0.5 \end{matrix}]\\ & N^{(6)}=\frac{1}{0.125}[\begin{matrix} 0.75-x & x-0.625 \end{matrix}]\\ & N^{(7)}=\frac{1}{0.125}[\begin{matrix} 0.875-x & x-0.75 \end{matrix}]\\ & N^{(8)}=\frac{1}{0.125}[\begin{matrix} 1-x & x-0.875 \end{matrix}]\\ \end{align} $$     (8.43)
 * style="width:95%" |
 * style="width:95%" |
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle \left[ \begin{matrix} 17.5 & -17.5 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\   -17.5 & 38 & -20.5 & 0 & 0 & 0 & 0 & 0 & 0  \\   0 & -20.5 & 44 & -23.5 & 0 & 0 & 0 & 0 & 0  \\   0 & 0 & -23.5 & 50 & -26.5 & 0 & 0 & 0 & 0  \\   0 & 0 & 0 & -26.5 & 56 & -29.5 & 0 & 0 & 0  \\   0 & 0 & 0 & 0 & -29.5 & 62 & -32.5 & 0 & 0  \\   0 & 0 & 0 & 0 & 0 & -32.5 & 68 & -35.5 & 0  \\   0 & 0 & 0 & 0 & 0 & 0 & -35.5 & 74 & -38.5  \\   0 & 0 & 0 & 0 & 0 & 0 & 0 & -38.5 & 38.5  \\ \end{matrix} \right]\left[ \begin{matrix} \begin{matrix} \begin{matrix} {{d}_{1}} \\ {{d}_{2}} \\ {{d}_{3}} \\ \end{matrix} \\ {{d}_{4}} \\ {{d}_{5}} \\ {{d}_{6}} \\ \end{matrix} \\ {{d}_{7}} \\ {{d}_{8}} \\ {{d}_{9}} \\ \end{matrix} \right]=\left[ \begin{matrix} \begin{matrix} \begin{matrix} \begin{matrix} 6.01302084 \\   0.078125  \\ \end{matrix}  \\ 0.15625 \\ \end{matrix}  \\ 0.234375 \\   0.31250004  \\   0.390625  \\ \end{matrix}  \\ 0.46874373 \\   0.546875  \\   0.29947916  \\ \end{matrix} \right]+\left[ \begin{matrix} \begin{matrix} \begin{matrix} 0 \\   0  \\   0  \\ \end{matrix}  \\ 0 \\   0  \\   0  \\ \end{matrix}  \\ 0 \\   0  \\   {{r}_{1}}  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

$$     (8.44)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle \left[ \begin{matrix} \begin{matrix} \begin{matrix} \begin{matrix} {{d}_{1}} \\ {{d}_{2}} \\ \end{matrix} \\ {{d}_{3}} \\ \end{matrix} \\ {{d}_{4}} \\ {{d}_{5}} \\ \end{matrix} \\ {{d}_{6}} \\ {{d}_{7}} \\ {{d}_{8}} \\ \end{matrix} \right]=\left[ \begin{matrix} \begin{matrix} \begin{matrix} 2.0312 \\   1.6876  \\ \end{matrix}  \\ 1.3904 \\   1.1246  \\   0.8800  \\ \end{matrix}  \\ 0.6497 \\   0.4286  \\   0.213  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

$$     (8.45)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle\begin{align} &\left[ \begin{matrix} \begin{matrix} \begin{matrix} 2.0312 \\   1.6876  \\ \end{matrix}  \\ 1.3904 \\   1.1246  \\   0.8800  \\ \end{matrix}  \\ 0.6497 \\   0.4286  \\   0.213  \\ \end{matrix} \right]+\left[ \begin{matrix} \begin{matrix} \begin{matrix} 4 \\   4  \\ \end{matrix}  \\ 4 \\   4  \\   4  \\ \end{matrix}  \\ 4 \\   4  \\   4  \\ \end{matrix} \right]=\left[ \begin{matrix} \begin{matrix} \begin{matrix} 6.0312 \\   5.6876  \\ \end{matrix}  \\ 5.3904 \\   5.1246  \\   4.88  \\ \end{matrix}  \\ 4.6497 \\   4.4286  \\   4.213  \\ \end{matrix} \right]
 * style="width:95%" |
 * style="width:95%" |

&{{d}_{exact}}=\left[ \begin{matrix} \begin{matrix} \begin{matrix} 6.0331 \\   5.6866  \\ \end{matrix}  \\ 5.3911 \\   5.1249  \\   4.8802  \\ \end{matrix}  \\ 4.6498 \\   4.4286  \\   4.213  \\ \end{matrix} \right]

\end{align} $$     (8.46)
 * <p style="text-align:right">
 * }


 * {| style="width:100%" border="0"

$$  \displaystyle 8 elements $$
 * style="width:95%" |
 * style="width:95%" |


 * }



=References=

=Contributing Members & Referenced Lecture=