Skip to content

Problem Solving Techniques

Before solving, ask what combination of the given quantities even has the right units for the answer. Often there’s only one, which pins down the answer up to a dimensionless constant.

Example. Derive the formula for the period of a pendulum up to constants.

Suppose you forgot the pendulum formula. The period TT (units: s) could depend on length LL (m), mass mm (kg), and gravity gg (m/s²). The only way to build a time from these is L/g\sqrt{L/g}: mass cannot appear, because there’s no other mass to cancel its kg. So T=CL/gT=C\sqrt{L/g} for some dimensionless CC (which turns out to be 2π2\pi). Dimensional analysis gives the dependence on length and gravity and shows that mass drops out. It does not determine the dimensionless constant or any dependence on the swing angle.

The method’s one blind spot is dimensionless constants (the 2π2\pi) and dimensionless ratios (like angles or the Reynolds number), which it cannot determine. Most of the time, problems using dimensional analysis will ask you to solve up to constants or give you certain relations which you can use to determine the final formula.


Newton’s second law can be written as F⃗i−mia⃗i=0\vec F_i-m_i\vec a_i=0. For a system with ideal constraints, take the dot product with each allowed virtual displacement δr⃗i\delta\vec r_i and sum:

∑i(F⃗i applied−mia⃗i)⋅δr⃗i=0.\sum_i(\vec F_i^{\,\mathrm{applied}}-m_i\vec a_i)\cdot\delta\vec r_i=0.

This is D’Alembert’s principle. A virtual displacement compares nearby configurations at the same instant; it obeys the constraints but need not equal the actual displacement during a time interval. Ideal constraint forces contribute zero total virtual work, so tensions and normal forces can drop out.

The term −mia⃗i-m_i\vec a_i is an inertial term that lets us write a dynamics problem in a form resembling equilibrium. It is not an extra physical interaction. Setting all accelerations to zero recovers the ordinary virtual-work condition below.

Example. Masses m1m_1 and m2>m1m_2>m_1 hang from an ideal string over a massless, frictionless pulley. Use D’Alembert’s principle to find their acceleration.

Let qq increase when m2m_2 moves down, so m1m_1 moves up by the same amount. The applied gravitational virtual work is (m2−m1)g δq(m_2-m_1)g\,\delta q. Both masses contribute inertial virtual work −miq¨ δq-m_i\ddot q\,\delta q. Thus

[(m2−m1)g−(m1+m2)q¨]δq=0,\big[(m_2-m_1)g-(m_1+m_2)\ddot q\big]\delta q=0,

giving

q¨=m2−m1m1+m2g.\ddot q=\frac{m_2-m_1}{m_1+m_2}g.

The tension does not appear because the ideal string ties the two virtual displacements together.


The virtual work method is a way to find equilibrium conditions (or the force needed to hold something) without drawing a single free-body diagram or worrying about internal/constraint forces. It rests on one principle:

For a system in equilibrium, the total work done by the applied forces under any small displacement consistent with the constraints is zero. In other words,   δW=0\;\delta W=0.

For the ideal constraints considered here, constraint forces do no virtual work: normal forces, tensions in inextensible strings, and frictionless contact forces are all perpendicular to the allowed motion (or internal and canceling), so they drop out entirely. You only ever deal with the forces you care about (gravity, applied loads, springs).

Equivalently, if the forces are conservative, equilibrium is where the potential energy is stationary: dU/dq=0dU/dq=0.

Example. A uniform ladder of length LL and mass MM rests against a smooth vertical wall on a smooth horizontal floor. A person of mass mm stands a distance ss along the ladder from its foot. A horizontal force FF applied to the foot toward the wall holds the ladder at angle θ\theta above the floor. Find FF by virtual work.

Ladder against a smooth wall, person at distance s from its foot, and a horizontal holding force toward the wall

Let x=Lcos⁡θx=L\cos\theta be the foot’s distance from the wall. Its virtual displacement is δx=−Lsin⁡θ δθ\delta x=-L\sin\theta\,\delta\theta. Since the applied force points toward the wall, its work is −Fδx=FLsin⁡θ δθ-F\delta x=FL\sin\theta\,\delta\theta.

The ladder’s center rises by (L/2)cos⁡θ δθ(L/2)\cos\theta\,\delta\theta, and the person rises by scos⁡θ δθs\cos\theta\,\delta\theta. Gravity does negative work. The wall and floor normals do no work because each contact moves along its supporting surface. Therefore

δW=[FLsin⁡θ−(MgL2+mgs)cos⁡θ]δθ=0.\delta W=\left[FL\sin\theta-\left(\frac{MgL}{2}+mgs\right)\cos\theta\right]\delta\theta=0.

Solving,

F=g(M2+msL)cot⁡θ.F=g\left(\frac{M}{2}+\frac{ms}{L}\right)\cot\theta.

A person higher up the ladder requires a larger holding force. As the ladder approaches vertical, the required force tends to zero.


If a problem has a symmetry, the answer must respect it. This lets you skip enormous amounts of computation:

  • Cancellation: in computing a field or force, components that the symmetry maps onto their own negatives must sum to zero. (The field on the axis of a charged ring has no transverse component — every element’s transverse contribution is canceled by the element opposite it.)
  • Gauss’s law / Ampère’s law: symmetry is what makes these usable — it forces the field to be constant over a well-chosen surface or loop, pulling it out of the integral.
  • Superposition tricks: a charged disk with a hole is a full disk minus a small disk; a sphere with an off-center cavity is a full sphere minus a smaller one. Adding back the missing piece restores symmetry and makes each part trivial. To solve, just set the would-be cavity to have negative mass/charge/whatever variable you are solving for and solve from there.

Always pause to ask: “what does this setup look the same under?” Reflection, rotation, and translation symmetries each kill some terms before you compute anything.


After getting an answer (or to choose between answer choices), test it in extreme cases where you already know what should happen:

  • Let a mass, length, or angle go to 00 or ∞\infty and check the formula behaves sensibly.
  • Set two quantities equal, or make one much larger than another, and see if it reduces to a simpler known result.
  • Check the units of the final expression.
  • Check signs and directions make physical sense.

For example, the two-body reduced mass μ=m1m2m1+m2\mu=\dfrac{m_1 m_2}{m_1+m_2} (shown later) should reduce to mm when one mass is infinite (a fixed center) and to m/2m/2 when the masses are equal — both of which it does. On a multiple-choice exam, limiting cases often eliminate every wrong option in seconds.

Example. A cart of mass mm moving at speed vv sticks to a stationary cart of mass MM. Two proposed final speeds are u1=mv/(m+M)u_1=mv/(m+M) and u2=Mv/(m+M)u_2=Mv/(m+M). Use limiting cases to decide which can be correct.

As M→0M\to0, the moving cart picks up almost no mass, so its speed should approach vv. The first formula does; the second tends to zero. As M→∞M\to\infty, the combined carts should move extremely slowly: again u1→0u_1\to0 while u2→vu_2\to v. For M=mM=m both give v/2v/2, so that check alone would not distinguish them.

Thus only u1u_1 survives these checks. Momentum conservation confirms it:

mv=(m+M)u⟹u=mm+Mv.mv=(m+M)u\quad\Longrightarrow\quad u=\frac{m}{m+M}v.

Passing limiting checks supports a result but does not prove it for every parameter value.


Since this whole page is a toolbox, the decision tree is a meta one: when a problem looks ugly, which technique do you reach for first?