Castigliano's theorem

The deflection at a point is the derivative of the beam's strain energy with respect to a force acting there. If there is none, add a fictitious force and set it to zero at the end. The calculator writes the moment with the force as a symbol, differentiates and integrates – at every chosen point.

New

Have this problem on paper or in a textbook?

Take a photo – the calculator reads the beam with its loads and the rigidity EI (or E and I), and you just check it.

Beam diagram

Click a node (A, B, …) or a span (AB, BC, …) on the diagram to edit it.

Delete removes the selected span, Ctrl+Z undoes the last change.
21q1 = 4 kN/m3mAP1 = 12 kNBCD

Spans

SpanLength [m]Remove

Beam length L = 6 m

Removing a span merges its end nodes – supports and point loads are kept and the rest of the beam moves left.

Points

Pointx [m]SupportLoads
0
2
3
6

A point inside a span splits it in two; a point beyond the end extends the beam.

Flexural rigidity

I=1943 cm⁴,EI=4080.3 kNm²I = 1943\ \text{cm⁴},\quad EI = 4080.3\ \text{kNm²}

Moment of inertia about the strong axis (bending in the plane of the web).

Points

Without points the calculator finds the maximum deflection, the deflections of free ends and the slope at the first support.

    Results

    • VA=11 kNV_{A} = 11\ \text{kN}
    • VD=13 kNV_{D} = 13\ \text{kN}
    • Deflections and slopes – with full access

    Deflected shape and charts

    Shape without values
    Deflected shape of the beam
    ABCDw_maxφ(0)Deflections exaggerated about 27 times

    Click the beam axis in the drawing to add a point.

    ABCDBending moment M(x) [kNm]Slope φ(x) [rad]Deflection w(x) [mm]

    Hover over (or tap) the charts to read M, φ and w at section x.

    Checking your access…

    Castigliano's theorem

    The strain energy of a beam in bending depends on its loads. By Castigliano's theorem the derivative of the energy with respect to a point force PP gives the deflection at its point of application, in its direction:

    U=∫0LM2(x)2EI dx,w=∂U∂P=∫0LMEI ∂M∂P dxU = \int_{0}^{L} \frac{M^{2}(x)}{2EI}\,dx, \qquad w = \frac{\partial U}{\partial P} = \int_{0}^{L} \frac{M}{EI}\,\frac{\partial M}{\partial P}\,dx

    Fictitious force and fictitious couple

    If no force acts at the point, add a fictitious force FF, write the moment with FF as a symbol, differentiate and only then set F=0F = 0. A slope is found the same way – with a fictitious couple MFM_{F}:

    w=∫0LMEI ∂M∂F dx ∣F=0,φ=∫0LMEI ∂M∂MF dx ∣MF=0w = \int_{0}^{L} \frac{M}{EI}\,\frac{\partial M}{\partial F}\,dx\,\Big|_{F = 0}, \qquad \varphi = \int_{0}^{L} \frac{M}{EI}\,\frac{\partial M}{\partial M_{F}}\,dx\,\Big|_{M_{F} = 0}

    How to use Castigliano's theorem

    1. Write the reactions and the moment M(x)M(x) with the force – the real PP or a fictitious FF – as a symbol.
    2. Differentiate the moment with respect to that force: ∂M/∂P\partial M/\partial P is the moment of a unit force.
    3. Integrate M ∂M/∂PM\,\partial M/\partial P along the beam and divide by EIEI.
    4. Substitute the force value (F=0F = 0 for a fictitious force) – the result is the deflection or the slope.

    Example: cantilever with a uniform load

    A cantilever of length L=3L = 3 m fixed at x=0x = 0 with a uniform load q=4q = 4 kN/m, EI=20000EI = 20000 kNm². We want the deflection and the slope of the free end.

    1. No force acts at the end, so we add a fictitious force FF: M(x)=−2x2+12x−18+F(x−3)M(x) = -2x^{2} + 12x - 18 + F(x - 3) and ∂M/∂F=x−3\partial M/\partial F = x - 3.
    2. EI w=∫03M (x−3) dx=40.5EI\,w = \int_{0}^{3} M\,(x - 3)\,dx = 40.5 kNm³, so w=2.025w = 2.025 mm.
    3. With a fictitious couple ∂M/∂MF=−1\partial M/\partial M_{F} = -1, so EI φ=18EI\,\varphi = 18 kNm², that is φ=0.0009\varphi = 0.0009 rad.

    Frequently asked questions

    What does Castigliano's theorem say?

    The derivative of the strain energy of a structure with respect to a point force equals the displacement of its point of application in the direction of the force. For a beam in bending the energy is the integral of M²/(2EI) along it.

    Why add a fictitious force?

    The theorem needs a force at the point where the deflection is wanted. If there is none, add a fictitious force F, differentiate with respect to it and set F = 0 at the end – the result is the deflection due to the real loads alone.

    How do I find a slope with Castigliano's theorem?

    Differentiate the energy with respect to a point couple acting at that point – a real one or a fictitious couple that is set to zero at the end.

    How does Castigliano's theorem differ from the unit load method?

    Both lead to the same integral: the derivative of the moment with respect to the force, ∂M/∂P, is the moment of a unit force m̄. Castigliano starts from energy and differentiation, the unit load method from virtual work and a separate unit state.