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.

δ=∂U∂P\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 work. Three 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.
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=12∑iPiδ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=δk dPkdU = \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 theorem. A 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.
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

∂U∂P=∑NLEA∂N∂P\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

∂U∂P=∑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.

Where the energy actually is. The 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.
Fig. 3 The sum written out, one bar to a member: the strain energy N2L/2EAN^2L/2EA held in each member of a nine-member truss, largest first. The frame holds 2.133 units of it and the largest single share is 22.3%. Because the derivative of the total is the deflection and differentiation is term by term, that bar is simultaneously the member’s share of the energy and its share of the joint’s movement — which member moved the roof and which member holds the energy are one ranking, not two that happen to agree.

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:

∂U∂P=1.720635×10−2,∑NˉNLEA=1.720635×10−2\frac{\partial U}{\partial P} = 1.720635\times10^{-2}, \qquad \sum\frac{\bar{N}NL}{EA} = 1.720635\times10^{-2}

agreeing to 1.6×10−131.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×10−35.66667\times10^{-3} by both routes, sign included.

A derivative taken with a ruler, and the step that makes it worst. Castigliano'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.
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.

The deflection at x = 6, by virtual work. Three 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 — 93.33 here. No standard case was consulted, so the method works for any load pattern at all.
Fig. 5 The dummy load drawn as the middle diagram. A single 20 kN load sits at x=2x = 2 on the same 8 m beam, and the deflection is wanted at x=6x = 6, where nothing acts at all. The top diagram is the real moment, the middle one is the moment from a unit load at the station being asked about, and the area of their product is 93.33 — a real movement at a point carrying no real force. The unit load in the middle diagram is the dummy load, applied and then divided out.

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: the propped cantilever solved in one support too many by setting the support deflection to zero can be solved instead by differentiating the strain energy with respect to the prop force, and the redundant that comes out is the same number.

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.

What none of the three is, is a different answer. There are now three routes to a deflection on this site — the area of a diagram, the unit load, and this derivative — and they differ entirely in what they ask the user to draw rather than in what they compute. The moment-area route asks for one diagram and a geometric reading of it; the unit load asks for two diagrams and their product; the energy method asks for no diagram at all and a differentiation instead. The figures above and below are all the third route, which is why they are all the same three panels or the same integrand.

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×10−3+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.

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=∂2U∂Pi∂Pjf_{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. The measured version of that statement — two experiments on one beam returning the same number to every digit — is the theorem that swaps the question, and the figure at the top of this page is its second derivative read once instead of twice.

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.

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.

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.

Half the beam does nearly all of the deflecting. The virtual-work integrand M·m/EI along the member, normalised to its own peak, with the running share of the answer beside it. The integrand is a density: it says how much of the deflection each millimetre of the beam produced. For this case the half nearest the root supplies 93.7 per cent of it, and the rest of the member supplies the remainder. Stiffening the busy 50 per cent by 1.5 times takes the deflection down by 31.2 per cent; the same material spent on the quiet end takes it down by 2.1 — a factor of 15.0 for the same steel. The map of what is contributing is not the map of where the moment is largest, and the second is the one that gets drawn.
Fig. 6 The same decomposition taken inside a single member. The integrand MMˉ/EIM\bar{M}/EI is plotted along a uniformly loaded cantilever, normalised to its own peak, with the running share of the answer beside it: the half nearest the root supplies 93.7 per cent of the tip deflection and the outer half supplies the remaining 6.3. Stiffening the busy half by a factor of 1.5 takes the deflection down 31.2 per cent; the same steel spent on the quiet half takes it down 2.1 — a factor of 15 for the same tonnage.

The best place to put the next kilogram, derived

The energy decomposition says which members matter. One further step says how much area each should have, and the answer is not the one a strength argument gives.

Ask for the areas that minimise a chosen deflection δ=∑NˉNL/EA\delta = \sum \bar{N}NL/EA subject to a fixed total volume V=∑ALV = \sum AL. That is a Lagrange problem, and differentiating with respect to one member’s area gives

−NˉeNeLeEAe2+λLe=0⟹Ae∝NˉeNe-\frac{\bar{N}_e N_e L_e}{E A_e^2} + \lambda L_e = 0 \quad\Longrightarrow\quad A_e \propto \sqrt{\bar{N}_e N_e}

The optimal area is proportional to the square root of the product of the real and virtual forces, not to the force itself.

That is worth sitting with, because the alternative is what most designers do. A fully stressed design sizes each member so that its stress reaches the allowable — A∝NA \propto N — and it is the right answer when strength governs. A stiffness optimum sizes each member as NˉN\sqrt{\bar{N}N}, and the two are different distributions of the same tonnage.

The difference has a direction. A square root compresses the range: the heavily loaded members get relatively less area than a fully stressed design would give them, and the lightly loaded ones relatively more. A stiffness-optimal truss is therefore more uniform than a strength-optimal one, which is the opposite of the instinct that says to put the material where the forces are.

Two further readings fall out of the same expression.

A member with NˉN≤0\bar{N}N \le 0 wants no area at all. Its term in the sum is negative — it reduces the deflection being minimised — so the optimality condition pushes its area up rather than down, bounded only by whatever else constrains it. And a member with NˉN=0\bar{N}N = 0 exactly, which includes every zero-force member, has an optimal area of zero: it should not be there. That is a topology statement rather than a sizing one, and it is the reason optimisation programs delete members rather than merely thinning them.

And the optimum is deflection-specific. Nˉ\bar{N} depends on where the unit load was put, so a truss optimised for the deflection of one joint is not optimised for another. There is no such thing as the stiffest truss of a given weight; there is only the stiffest truss for a given question, which is why real optimisation problems carry several deflection constraints at once and produce something that is best at none of them.

There is a check hiding in the result that is worth using, because the derivation is short enough to distrust. At the optimum, substituting Ae∝NˉeNeA_e \propto \sqrt{\bar{N}_e N_e} back into the deflection sum makes every member’s contribution proportional to NˉeNe Le\sqrt{\bar{N}_e N_e}\,L_e — so each member’s share of the deflection becomes proportional to its own share of the volume. A structure at its stiffness optimum is one in which every kilogram is doing equally well, which is the form every optimality criterion in engineering eventually takes and a good sign that the algebra was done right.

Half the beam does nearly all of the deflecting. The virtual-work integrand M·m/EI along the member, normalised to its own peak, with the running share of the answer beside it. The integrand is a density: it says how much of the deflection each millimetre of the beam produced. For this case the middle half supplies 83.7 per cent of it, and the rest of the member supplies the remainder. Stiffening the busy 50 per cent by 1.5 times takes the deflection down by 27.9 per cent; the same material spent on the quiet end takes it down by 5.4 — a factor of 5.2 for the same steel. The map of what is contributing is not the map of where the moment is largest, and the second is the one that gets drawn.
Fig. 7 The same integrand for a different question, and the busy region has moved. On a simply supported beam under a uniform load, with the deflection wanted at mid-span, the middle half supplies 83.7 per cent of the answer rather than the root half’s 93.7, and stiffening it by 1.5 buys 27.9 per cent against the quiet ends’ 5.4 — a factor of 5.2 rather than 15. Both curves are MMˉ/EIM\bar{M}/EI on the same axes; what changed is which deflection was asked for, and that changed where the material is worth spending.

Which sharpens the section above rather than replacing it. The energy decomposition says where the deflection comes from; this says what to do about it — and the answer is a square root, not a proportion, and it is different for every deflection anybody might care about.

The member-level reading has a structure-level twin. Span to the fourth makes the same argument one level up: a deflection is a sum, one term of it usually dominates, and the engineering is in finding that term rather than in evaluating the rest carefully. The difference is that a prismatic beam’s answer is known in advance from the exponent on the span, and a truss’s, or a tapered member’s, has to be computed from the integrand itself.

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 first. Utilisation 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.
Fig. 8 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.

What this makes readable

Essays that name this one as a prerequisite.

Named alongside this one

Essays reaching for the same objects. Nobody chose these; they are what the concept index makes visible.

What links here

Every essay whose body links to this one.

The objects this essay names

Each one links to every other essay that touches it.

CastiglianoComplementary energyDeflectionDummy loadFlexibilityLinearityNumerical derivativeReciprocityRedundantStrain energyTrussUnit loadVirtual work