any



For beams with constant stiffness

For beams with variable stiffness

𝑐𝑀𝑛1𝑙𝑛+2𝑀𝑛(𝑐𝑙𝑛+𝑙𝑛+1)+𝑀𝑛+1𝑙𝑛+1=6(𝑐𝑅𝑁𝑙+𝑅𝑁𝑝)

You can also find the equation in the following form

𝑐𝑀𝑛1𝑙𝑛+2𝑀𝑛(𝑐𝑙𝑛+𝑙𝑛+1)+𝑀𝑛+1𝑙𝑛+1=6𝑐Ω𝑛𝑎𝑛𝑙𝑛6Ω𝑛+1𝑏𝑛+1𝑙𝑛+1