Assemble the structure stiffness matrix [K] for the beam

Question
Question image 1Question image 2Question image 3Question image 4