Theorem of three moments

In civil engineering and structural analysis Clapeyron's theorem of three moments is a relationship among the bending moments at three consecutive supports of a horizontal beam.
Let "A,B,C" be the three consecutive points of support, and denote by- l the length of "AB" and formula_1 the length of "BC", by "w" and formula_2 the weight per unit of length in these segments. Then the bending moments formula_3 at the three points are related by:
This equation can also be written as 
where "a"1 is the area on the bending moment diagram due to vertical loads on AB, "a"2 is the area due to loads on BC, "x"1 is the distance from A to the centroid of the bending moment diagram of beam AB, "x"2 is the distance from C to the centroid of the area of the bending moment diagram of beam BC.
The second equation is more general as it does not require that the weight of each segment be distributed uniformly.
Derivation of three moments equations.
Mohr's theorem can be used to derive the three moment theorem (TMT).
Mohr's first theorem.
The change in slope of a deflection curve between two points of a beam is equal to the area of the M/EI diagram between those two points.(Figure 02)
Mohr's second theorem.
Consider two points k1 and k2 on a beam. The deflection of k1 and k2 relative to the point of intersection between tangent at k1 and k2 and vertical through k1 is equal to the moment of M/EI diagram between k1 and k2 about k1.(Figure 03)
The three moment equation expresses the relation between bending moments at three successive supports of a continuous beam, subject to a loading on a two adjacent span with or without settlement of the supports.
The sign convention.
According to the Figure 04,
Derivation of three moment theorem.
PB'Q is a tangent drawn at B' for final Elastic Curve A'B'C' of the beam ABC. RB'S is a horizontal line drawn through B'. 
Consider, Triangles RB'P and QB'S.
From (1), (2), and (3),
Draw the M/EI diagram to find the PA' and QC'.
From Mohr's Second Theorem 
PA' = First moment of area of M/EI diagram between A and B about A.
QC' = First moment of area of M/EI diagram between B and C about C.
Substitute in PA' and QC' on equation (a), the Three Moment Theorem (TMT) can be obtained.