:
Determine the element stiffness matrix for each element.
During our formulation of the Element Stiffness Matrix we found our elemental equation to be:

where the element quantities are:

We will assume our usual sign conventions where nodal forces and displacements acting upward are positive and moments and rotations acting counterclockwise are positive in accordance to the right-hand rule.
Element 1:
The local (I, J) nodes of each element are related to the global nodes in the element mesh, which we will number (the element mesh can be viewed at any time, by clicking on mesh in the lower left-hand corner of your screen). The nodes that are between elements are shared by them, and provide element compatibility (the absence of element gaps and overlaps). For element 1 local node I is global node 3 and local node J is global node 1.

The geometric and material properties for element 1, using consistent units are as follows:
L1 = 96 in, I1 = 23.1 in4 and E1 = 29 x 106 psi
where the subscript denotes that these properties are for
element number 1. When these values are substituted into the
element stiffness matrix,
,

the stiffness matrix for element 1 becomes:

where the nodal forces and moments,
, are
related to the nodal displacements and rotations,
by the
element stiffness matrix,
,
where the
notation denotes a
matrix and the E subscript for
,
and
denotes elemental
quantities.
Element 2
For element 2 local node I is global node 1 and local node J is global node 2, where the global node locations can be seen in the element mesh, shown in the lower left-hand frame.

The geometric and material properties for element 2, using consistent units are as follows:
L2 = 116 in, I2 = 83.2 in4 and E2 = 29 x 106 psi
When these values are substituted, the stiffness matrix for element 2 becomes:

The individual element stiffness matrixes should be checked at this point to see if they are show the proper characteristics.
:
Determine the stiffness matrix for the entire mesh.
Our completed global stiffness matrix is as follows:
where the global stiffness matrix is symmetric, just as the element stiffness matrix was. It should also be noted that all the stiffness terms in the main diagonal (upper left-hand corner to lower right-hand corner) must always be positive and that the stiffness matrix is singular, meaning that it's determinate is equal to zero. In order to obtain a unique FEM solution we need to constrain the structure. Having a known degree of freedom will eliminate the singularity by altering the stiffness matrix when we expand the matrix equation. The known degrees of freedom will be found from the problem's boundary conditions.
:
Prescribe known boundary conditions and determine unknown nodal
displacements and rotations.

We will use these boundary conditions along with our global stiffness matrix to formulate our FEM equation, which we will then solve for the unknown nodal displacements and rotations. Since the degrees of freedom which columns 3 and 4 relate to the nodal forces and moments have zero values in this example, we can eliminate these columns without effecting our solution. We can also eliminate rows 3 and 4, since the unknown force and moment at global node 2 will not assist us in finding the displacements or rotations at the other nodes.

We end up with the following reduced force-displacement equation:

where the above equation is in the form of a system of linear
algebraic equations. In expanded form our matrix equation results
in 4 equations with 4 unknowns, which we can now solve for the
unknown nodal displacements
and rotations
.
These simultaneous equations can be solved by hand, using
techniques such as Gaussian Elimination or by computer, using a
matrix solving program or an iterative solver. It is good to use
two methods, in order to check your results, as it can be quit
easy to make an error in calculation or data entry, that will
make your entire FEM solution invalid.
The solution of these equations result in:

When we add the known displacement and rotation from global node 2, our solution is:

Solutions should always be checked to see if they make physical sense and verified by another method that can at least approximate the magnitude and direction of the FEM solution. In the above example, we can input the nodal displacements and rotations just obtained, back into our reduced force-displacement equation and solve for the forces and moments, which should match the applied forces and moments that we started with.
:
Graphical interpretation of the displacement and rotation for the
entire structure.
The solution characteristics of the beam element require that the vertical displacement and rotation vary continuously through the element and the entire mesh. The vertical displacement varies within each element according to a cubic polynomial and since the rotation is the derivative of the vertical displacement function it varies according to a quadratic polynomial within each element.
