Deflection

The deflection that is a derivative

A structure's strain energy is one number. Differentiate it with respect to a load and out comes the displacement under that load — and the trick that makes it a method rather than an identity is that the load does not have to be there.

Assumes One deflection, without solving everything, Which member moved the roof and The theorem that swaps the question round.

A loaded structure holds energy. Every member that has stretched or shortened has stored N2L/2EAN^2L/2EA, every length of beam that has curved has stored M2/2EI\int M^2/2EI, and the total is one number for the whole structure.

Castigliano’s second theorem says that differentiating that number with respect to one of the applied loads gives the displacement of the point that load acts at, in the direction it acts in.

δ=UP\delta = \frac{\partial U}{\partial P}

It is a peculiar-looking statement — a scalar differentiated with respect to a force, giving a length — and it is one of the two standard routes to a deflection on this site. The other is the unit load, and the relationship between them is closer than “two methods” suggests.

The deflection at x = 3, by virtual workThree diagrams: the moment from the real load, the moment from a unit load placed where the answer is wanted, and their product. The area under the third, divided by EI, is the deflection — 197.50 here. No standard case was consulted, so the method works for any load pattern at all.real Mpeak 32.0a unit load, here and nowhere elseunit mM × marea ÷ EI = 197.50the unit load is the only place the question 'deflection where?' is asked
Fig. 1 The unit-load method: a real structure, a virtual one carrying a single unit load, and the deflection as the integral of their product. Everything on this page is that integral reached by a different route.

Which free body produced the number

None. That is the point of the method and worth saying plainly: there is no cut, no free body, no equilibrium statement anywhere in the derivation. What there is instead is a statement about work.

Load a linear structure gradually to a set of forces PiP_i. The work done is stored as strain energy:

U=12iPiδiU = \tfrac12\sum_i P_i\delta_i

Now add a small increment dPkdP_k to one of them. Approach it two ways.

Apply the whole load and then dPkdP_k: the extra work is dPkδkdP_k\,\delta_k to first order, since the point has already moved δk\delta_k by the time the increment arrives.

Apply dPkdP_k first and then the whole load: the extra work is again dPkδkdP_k\,\delta_k, because the small force is present throughout the movement caused by everything else.

Either way dU=δkdPkdU = \delta_k\,dP_k, and dividing gives the theorem. The only thing used is that the structure is linear — that superposition holds and the order of loading does not matter.

Maxwell's reciprocal theoremA load at one point and the deflection it causes at another, against the same load moved to the second point and the deflection read at the first. Both integrals return 613.3338, and neither calculation was told about the other. The two deflected shapes are entirely different; the two readings are identical.20 at 4δ at B = 613.33420 at 6δ at A = 613.334the shapes have nothing in commonand the two readings agree to 3e-13which is why an influence line can be measured by pushing the structure where it is easy to push
Fig. 2 The theorem that swaps the question, which is the same order-of-loading argument used once instead of twice. Maxwell’s reciprocity and Castigliano’s theorem are two consequences of one property, and neither needs any structural analysis to derive.

Why it is the same sum as the unit load

Take the truss form. U=N2L/2EAU = \sum N^2L/2EA, so

UP=NLEANP\frac{\partial U}{\partial P} = \sum \frac{N L}{EA}\frac{\partial N}{\partial P}

Now ask what N/P\partial N/\partial P is. The structure is linear, so every member force is a linear function of every applied load: Ne=kcekPkN_e = \sum_k c_{ek}P_k. The derivative Ne/P\partial N_e/\partial P is cePc_{eP} — the member force per unit of PP, which is exactly the force a unit load applied at PP’s position would produce.

So

UP=NˉNLEA\frac{\partial U}{\partial P} = \sum \frac{\bar{N} N L}{EA}

which is the unit-load expression, term for term.

They are not two methods that agree. They are one sum written twice, and the reason to have both is that they are entered differently: one asks for a virtual structure, the other asks for a derivative.

Every member's share of the movement, and they are not the members expectedA Pratt truss of six panels at a depth of 0.85, carrying 10 kN at each top node, with the movement of the bottom chord at mid-span attributed member by member. The unit-load sum δ = ΣF·f·L/EA gives 631.06 at EA = 1: 47.2% from four top chords, 28.5% from six bottom chords, 22.3% from six diagonals, 2.0% from five verticals. The single worst member is a top chord at mid-span at 14.8% of the whole. Each member is drawn at the width of its own share. The same deflection from a stiffness solution that shares none of this arithmetic is 631.06, a relative residual of 3.6e-15.δ = 631.06 read here10 kN at every top node — each member drawn at the width of its own sharetop chord (four members)47.2%bottom chord (six members)28.5%diagonal (six members)22.3%vertical (five members)2.0%the members that moved the roof, ranked — a symmetric pair is two members and appears twicetop chord, at mid-span14.80%F -52.9 × f -1.765top chord, at mid-span14.80%F -52.9 × f -1.765bottom chord, at mid-span8.77%F 47.1 × f 1.176top chord, near the left support8.77%F -47.1 × f -1.176bottom chord, at mid-span8.77%F 47.1 × f 1.176top chord, near the right support8.77%F -47.1 × f -1.176diagonal, near the left support6.20%F -38.6 × f -0.772diagonal, near the right support6.20%F -38.6 × f -0.772virtual work and a stiffness solution agree to 3.6e-15 — two methods sharing no arithmetic
Fig. 3 The contributions, member by member. Each term of the sum is one member’s share, and it is simultaneously that member’s share of the strain energy’s derivative — which is why the two rankings are the same ranking.

Computed both ways, and the agreement is a measurement

The theorem is provable, so agreement is not news. Computing it numerically is, because a numerical derivative of a physically meaningful quantity is a thing that can go wrong in interesting ways.

Take a nine-member truss under two 120 kN loads. Its strain energy is 2.13333 units. Solve it twice more with a dummy load ±dQ\pm dQ at the joint of interest, take a central difference, and compare with the unit-load answer:

UP=1.720635×102,NˉNLEA=1.720635×102\frac{\partial U}{\partial P} = 1.720635\times10^{-2}, \qquad \sum\frac{\bar{N}NL}{EA} = 1.720635\times10^{-2}

agreeing to 1.6×10131.6\times10^{-13}.

And the horizontal movement of a joint that carries no load at all — the dummy-load case, which is the trick the method is really for — comes out at 5.66667×1035.66667\times10^{-3} by both routes, sign included.

A derivative taken with a ruler, and the step that makes it worstCastigliano's theorem says the deflection is ∂U/∂P, and the derivative here is taken numerically — two solves at ±dQ and a central difference. Against the unit-load answer of 1.720635e-2 it agrees to 1.6e-13, which for a linear structure it must: ∂N/∂P is exactly the force a unit load produces, so the two expressions are the same sum written twice. The error against step size is the classic pair of straight lines — truncation falling as the step shrinks, round-off rising as the difference of two nearly equal energies loses its digits — meeting near dQ = 1.2e+1. For a linear structure the truncation term is exactly zero, so what is drawn here is round-off alone.10^-610^-410^-210^-1610^-1410^-1210^-1010^-8size of the dummy loadrelative errorround-offand nothing elsebest 2e-16∂U/∂P = 1.720635e-2 · unit load = 1.720635e-2
Fig. 4 The numerical derivative’s error against the size of the dummy load. For a linear structure the truncation error is exactly zero — UU is a quadratic in QQ, so a central difference is exact — and what is drawn is round-off alone: the difference of two nearly equal energies, losing digits as the step shrinks.

The dummy load, which is the whole reason to bother

U/P\partial U/\partial P requires a PP. If the deflection wanted is at a point with no load on it, there is nothing to differentiate with respect to.

The device is to put one there, of magnitude QQ, carry it through the algebra, differentiate, and then set Q=0Q = 0. The member forces become N=N0+NˉQN = N_0 + \bar{N}Q; the derivative is Nˉ\bar{N}; and at Q=0Q = 0 the expression collapses to NˉN0L/EA\sum \bar{N}N_0L/EA — the unit load again.

That is the same manoeuvre a physicist calls a generating function and a statistician calls a moment-generating trick: introduce a variable nobody wants, differentiate with respect to it, and set it to zero. The structure never carries the dummy load; it exists so that a derivative exists.

Done numerically, as here, the dummy load is genuinely applied — twice, at ±dQ\pm dQ — and the answer is the slope. That is why the round-off curve above matters: too large a dQdQ and nonlinearity would intrude (though for a linear structure it does not), too small and the two energies differ in their last digits only.

Where the energy actually isThe strain energy N²L/2EA in each member of the truss, largest first. The whole frame holds 2.133e+0 units of it and the worst single member holds 22.3% — which is the same statement as saying that member is the one that moved the joint, because the derivative of the total with respect to the load is the deflection and each member's share of the derivative is its share of the energy. A member carrying a large force over a short length can hold less than a lightly loaded long one, and the ordering here is not the ordering of the forces.member 0–422.3%member 3–522.3%member 0–111.4%member 1–211.4%member 2–311.4%member 4–511.4%member 1–44.8%member 2–54.8%member 1–50.0%share of the strain energytotal 2.133e+0deflection 1.7206e-2 by either route
Fig. 5 The energy, member by member. One member holds 22.3% of it, and one holds none at all — a zero-force member stores nothing, contributes nothing to any derivative, and therefore moves no joint anywhere. Which member moved the roof is the same question read off this bar chart.

Where it earns its keep

Three places, and they are not the places a textbook usually starts.

Redundant structures. The theorem of least work — the redundant takes the value that minimises UU — is Castigliano applied to a redundant force with the compatibility condition that its point does not move: U/R=0\partial U/\partial R = 0. That is a minimisation rather than a compatibility equation, and it is the same equation.

Curved and tapered members. A member whose properties vary along its length is awkward for the unit-load method, because both moment diagrams have to be integrated against each other; it is no more awkward for the energy method, because the energy integral was going to be numerical anyway.

Machine and mechanism deflections. A crank, a bracket, a clamp — anything where the load path is a series of segments in bending, torsion and axial force at once. The energy adds up over all four actions and the derivative takes them all at once, whereas the unit-load method needs a virtual diagram of each kind.

One support too manyThe same uniformly loaded beam with three sets of restraints, and the bending moment in each. Adding restraint moves moment from mid-span to the supports and lowers the peak — but only the first case can be solved by statics.simply supportedstatics alonesag 396.0propped at one endneeds stiffnesssag 222.8hog 396.0built in at both endsneeds stiffnesssag 132.0hog 264.0the load never changes; only what is holding the endsthe built-in case peaks at two-thirds of the simple span's moment
Fig. 6 The redundant found by compatibility. Least work is the same equation written as U/R=0\partial U/\partial R = 0 — the redundant reaction takes the value at which the strain energy is stationary, which is the same as the value at which the support does not move.
The area is the rotation, and its first moment is the movementA 6 m cantilever under a tip load of 10, with the M/EI diagram beneath it. The shaded area is 180.00, which by the first theorem is the change of slope along the whole member. Its centroid is at 2.000 m, and the first moment about the tip is 720.00 — which by the second theorem is the deviation from the tangent, and for a cantilever that tangent is horizontal, so it is the deflection itself. Integrating the curvature twice instead gives 720.00.10centroid at 2.00 mM/EIarea = 180.00 · first moment = 720.00by double integration: 720.00
Fig. 7 The moment-area route, for comparison. Three methods for a deflection now — areas, virtual work and energy — and they differ entirely in what they ask the user to draw rather than in what they compute.

The sign is half the answer, and it is easy to get wrong

A deflection has a direction, and the theorem supplies it — provided the dummy load is applied in the direction the answer is wanted.

That sounds like bookkeeping and it is not. Computing the same truss joint’s horizontal movement with the dummy load applied along the positive axis gives +5.667×103+5.667\times10^{-3}; applying it the other way gives the same magnitude with the opposite sign, and both look equally plausible on the page. The convention has to be fixed once and honoured in both routes, or the two methods agree in magnitude and disagree about which way the structure went.

This site’s convention is the one that makes the answer read naturally: the unit load acts in the direction the answer is wanted, so a positive result means the joint moved that way. For a roof that is downward; for a horizontal freedom it is along the positive axis. The two are not the same sign in the arithmetic, and a check that only compares magnitudes cannot see the difference — which is why the gate for this family asserts the horizontal case as well as the vertical one.

Longer is softer, and the chords take overThe movement of a Pratt truss at mid-span as its span runs from 4 to 16 panels at a fixed depth of 0.85, with 10 kN still at every top node. It runs from 159.5 to 24900.8 at EA = 1, a fitted log-log exponent of 3.65. What the movement is made of changes at the same time: the chords' share runs 0.608 to 0.952, because a chord force is M/d while a web member's is not. A long truss is almost nothing but its chords, which is why a long-span roof is designed at its chords and detailed at its web.468101214162005001,0002,0005,00010,00020,000movement at mid-span, at EA = 1fitted exponent 3.65159 to 249014681012141600.250.50.751panels — the span, at a fixed depthshare of the movementchords 0.608chords 0.952web 0.048
Fig. 8 The same deflection across a family, where the sign is not in doubt because every answer is a sag. It is the horizontal freedoms, and the rotations, where a convention has to be carried rather than assumed.

Energy against stiffness, which is the same object twice

There is a second derivative in all of this and it is worth taking.

Differentiate UU once with respect to a load and get a displacement. Differentiate the displacement with respect to another load and get an influence coefficient — the flexibility fijf_{ij}, which is how far point ii moves per unit of load at jj. So

fij=2UPiPjf_{ij} = \frac{\partial^2 U}{\partial P_i \partial P_j}

and since mixed partials commute, fij=fjif_{ij} = f_{ji}. Maxwell’s reciprocal theorem falls out of the symmetry of second derivatives, which is a considerably shorter proof than the usual one and says exactly why it is true rather than merely that it is.

Invert the flexibility matrix and it is the stiffness matrix. So the strain energy, the flexibility method, reciprocity and the stiffness method are four readings of one scalar function of the applied loads — and every method on this site for an indeterminate structure is somewhere in that list.

Maxwell's reciprocal theoremA load at one point and the deflection it causes at another, against the same load moved to the second point and the deflection read at the first. Both integrals return 495.0011, and neither calculation was told about the other. The two deflected shapes are entirely different; the two readings are identical.20 at 3δ at B = 495.00120 at 6δ at A = 495.001the shapes have nothing in commonand the two readings agree to 6e-14which is why an influence line can be measured by pushing the structure where it is easy to push
Fig. 9 Reciprocity measured rather than proved. The two experiments give the same number because the two mixed partials of one function are the same number, and that is the whole of it.

What it cannot do

It is a linear theorem. The derivation used superposition twice. For a nonlinear elastic material the correct statement uses complementary energy rather than strain energy — Crotti and Engesser’s theorem — and the two coincide only when the load–deflection relationship is a straight line.

It gives one displacement per load. U/Pk\partial U/\partial P_k gives the displacement at kk in the direction of PkP_k and nothing else. A joint’s full displacement needs two derivatives in the plane and three in space, each with its own dummy load.

And it needs the whole structure solved. UU is a sum over every member, so nothing about the method is local: computing one deflection costs a full analysis, which is exactly what the unit-load method costs too.

One member carries the whole panel load and is worth nothing to stiffenThe same six-panel truss under its real load above and under a unit load at the point measured below, with every member drawn at the force it carries in that case. Two members carry nothing at all under the real load, which is the familiar kind of zero. The vertical at mid-span is the other kind: it carries 10.0 kN under the real load — the whole of a panel load — and the unit load applied at the node beneath it puts f = 0.000 in it, so its term F·f·L/EA is 0.000 and stiffening it would change the 631.06 of movement by nothing whatever. A total can never show that; a per-member sum shows nothing else.F = -10.0 kN — the whole panel loadthe real load: every top node carries its panel loada unit load, here and nowhere elsef = 0.000 — the unit load never reaches ita unit load at the point the movement is readtwo members carry no force at all; three members contribute nothing to the movementa term is zero whenever either force in the product is — which is not the same question as whether the member is working
Fig. 10 The members that carry nothing, which the energy sum passes over silently. A zero-force member has no term in UU, but removing it may change every other force in the structure — so a term of zero is not the same as a member that does not matter.

Where the energy actually is

The decomposition is worth reading as a design tool rather than as bookkeeping, because it answers a question no other method on this site answers directly: which member is responsible for the deflection?

On the truss here, the two end diagonals hold 22.3% of the strain energy each, the four chords hold 11.4% each, and two of the interior diagonals hold 4.8% — with one member holding nothing at all. Since every term of the energy is also a term of the derivative, that ordering is the ordering of the members’ contributions to the joint’s movement.

Which means stiffening the structure is a matter of finding the large terms. Doubling the area of a member holding 22% of the energy removes 11% of the deflection; doubling one holding 5% removes 2.5%; doubling the zero-force member removes nothing whatever and adds weight.

That is not the ordering of the forces. A member carrying a large force over a short length holds less energy than a lightly loaded long one, because the term is N2L/2EAN^2L/2EA and the length is in it linearly. Stiffening the most heavily loaded member is not the same as stiffening the structure, and the energy decomposition is the thing that tells them apart.

Deflection goes as the fourth power of the spanDeflection against span for a constant load intensity and section, with two slower relationships drawn faintly behind it for comparison: the load itself, which grows in proportion to the span, and the bending moment, which grows as its square. Doubling the span multiplies the deflection by sixteen, while the moment only quadruples.11.522.533.54050100150200250300span, relative to the first16×81×moment: the squareload: the first powerdeflection: the fourth
Fig. 11 Where deflection really comes from at the structure level rather than the member level. Both statements are about which term in a sum dominates; the difference is that a beam’s answer is known in advance and a truss’s has to be computed.

What the pictures cannot show

The strain energy is a scalar. There is nothing to draw, and the bar chart above is a decomposition chosen because a total is unreadable — it is not a picture of anything the structure is doing.

Nor can the figures show the derivative. What is drawn is the error curve of a finite difference, which is an artefact of the arithmetic rather than a property of the structure; the theorem’s derivative is exact and has no step size at all.

The assumption the figure rests on

The truss is statically determinate, so its member forces are a linear function of the loads and N/P\partial N/\partial P is a constant. That is what makes the numerical derivative exact rather than approximate: UU is a quadratic in QQ, a central difference of a quadratic has zero truncation error, and the entire error curve above is round-off.

Put a redundant frame in instead and the forces are still linear in the loads — so the property survives, and it survives for the same reason. The linearity is the whole method, and everything else here is arithmetic.

The history worth having

Alberto Castigliano published this in his 1873 dissertation at Turin, at twenty-six, and died at forty-eight. What is worth knowing is what it replaced.

Before it, a deflection was computed by integrating the differential equation of the elastic line — twice, with constants of integration fixed by boundary conditions — for each member and each case. That is entirely workable for a prismatic beam and hopeless for a frame with thirty members. Castigliano’s theorem turns a boundary-value problem into a differentiation, and Maxwell’s and Mohr’s virtual-work method, arriving at almost the same moment from a different direction, does the same thing.

Between them they made indeterminate structures analysable by hand, which is what made the next fifty years of long-span steel possible.

Shear energy, and the bracket that is all of it

The truss above stores energy in axial force alone. A beam stores it in bending and in shear, and the ratio between them is a span-to-depth question with a decisive answer.

For a simply supported rectangular beam under a central load, the bending term goes as P2L3/EIP^2L^3/EI and the shear term as P2L/GAP^2L/GA. Their ratio is proportional to (L/d)2(L/d)^2: at a span-to-depth ratio of 20 the shear term is under a per cent, at 5 it is about a tenth, and at 2 it is comparable.

So the usual practice of ignoring shear deflection is right for a beam and completely wrong for a bracket, a corbel, a deep transfer beam or a short link. The energy method makes that visible because both terms are written down before either is dropped, whereas a moment-area or unit-load calculation typically never mentions shear at all.

Which limit arrives firstUtilisation of the strength limit and of the deflection limit, against span. Strength grows as the square of the span and deflection as the fourth power, so the two cross — and past the crossing a beam is sized by how far it moves rather than by what it can carry.0.60.811.21.41.61.8200.511.5span, relative to the firstthey cross heredeflection runs out at 1.35strength runs out at 1.54the limitstrengthdeflection
Fig. 12 Which term governs, which is a question about proportions rather than about magnitudes. The span-to-depth ratio at which the two energy terms cross is a property of the section’s shape and of nothing else.

The ladder from here

Later rungs on this anchor: the theorem of least work, and redundants found by minimisation rather than by compatibility. Complementary energy and Crotti–Engesser, which is what the theorem becomes when the material is not linear. Castigliano’s first theorem — the derivative of strain energy with respect to a displacement gives the force — which is a different statement and the one finite elements are built on. Strain energy in bending, shear, torsion and axial force together, and the surprise that shear energy is negligible in a beam and dominant in a short bracket. The energy method for a rotation rather than a displacement, using a dummy moment. And the connection to stiffness: the second derivative of UU is the stiffness matrix, which is where this page’s method and the whole of matrix analysis turn out to be the same object.

The objects this essay names

Each one links to every other essay that touches it.

CastiglianoComplementary energyDeflectionDummy loadFlexibilityLinearityNumerical derivativeReciprocityRedundantStrain energyTrussUnit loadVirtual work