The principle of virtual work. Applies to only static equilibrium system. In the last section we saw this principle and some of its simple applications. Now what we want to do is extend this to dynamic systems. Now that is very easy to do and the extension of this is called as D'Alembert's principle.
So let me write down the principle. So if you have a dynamical system then for each particle, The rate of change of momentum is equal to the net force on the particle and we already have seen that this can be split into two parts. One we will call it as applied force and the other one is the constraint force and Now, I will multiply both sides with the virtual displacement into Ri.
and then take sum over all particles. Now we already know from the principle of virtual work that the net work done by the constraint forces is 0. So this immediately becomes sum over i f i applied minus p i dot times delta r i this must be equal to 0 for sorry this must be equal to 0. Now, how can we use this principle? Remember again that all these virtual displacements for each particle which is delta ri, they are not independent of each other if the system is constrained.
That means I cannot simply set this bracket to 0 for each i, okay. So Now we will immediately try to apply this to an example. Let me start with a very simple example. This example we have been looking at again and again. So here.
This is a bead which is travelling on a wire and there is no friction in the problem. So the coordinate system here is x and y. So the coordinates of this point the coordinates of the bead are x and y.
So the position vector here are i. So, in this case because there is only one particle I will in fact not write the index i but just the r vector, r vector here is x i cap plus y j cap but then we have a constraint in the problem. So the constraint is, constraint equation is y must be equal to tan alpha times x if this angle is alpha right.
Now the virtual displacements delta x and delta y are related because of this constraint. So virtual displacements delta y must be also equal to tan alpha times delta x. This is remember a constraint is holonomic and it is also scleronomous that is the time variable does not explicitly appear in this constraint.
So the net displacement vector virtual displacement vector. will be equal to delta x i cap plus delta y j cap and I will simplify this to delta x times i cap plus tan alpha times j cap. What are the forces in the problem?
We will not look at the constraint forces the only applied force is the gravity acting on the bead. So the only applied force F I will again not write A for applied but vector F is minus mg J cap it is in the downward direction. So, let us now write down the D'Alembert's principle.
So, according to this m times r double dot vector minus f multiplied by the virtual displacement this must be equal to 0. So let us put all the entities there. So we get M x double dot times i cap plus. M you will have y double dot here but remember y double dot is nothing but x double dot times tan alpha. So this would be x double dot times tan alpha minus sorry into J cap minus the force which is minus mg times J cap.
And then dot product with delta x times i cap plus tan alpha times j cap and this must be equal to 0 okay. So we can immediately simplify this. This would be so mx double dot.
Then the dot product of j cap with these two terms this would be plus m x double dot tan square alpha plus mg tan alpha into delta x must be equal to 0. And now we can immediately simplify this to x double dot x double dot is equal to minus g times sin alpha cos alpha. Remember this equation we have derived this equation many times over. So this is how you apply d'Alembert's principle to dynamical system.
Now we actually got the acceleration of the particle in terms of the forces. Okay in the second example we have two masses and two degrees of freedom and this example is somewhat longish. So that is why I have already written many steps here.
So I will not be writing steps now but I will just explain the steps as they go. So here is the wedge block system. So this is the wedge here. This is the wedge and this is the block. In the problem there is no friction anywhere that means the wedge slides on the table without friction and the block slides on the wedge without friction again and then the constraints in the problem are.
that the wedge remains on the table and the block does not leave the surface of the wedge. These are the two constraints we have. Now I will start by describing in the position vectors first. So the position of the wedge remember neither the wedge nor the block are changing its orientation. So the orientation of the edge wedge and the block will remain same throughout the motion.
So all that I really need to do is describe one point of the wedge and one point of the block as the reference points. So here point A. I will choose point A which is the vertex of the wedge as the reference point for the wedge and the point B here. the point B here as the reference point for the block and let the coordinates of the point B be x, y and coordinates of the point A are capital X and capital Y. So your position vectors are x, y and for the wedge the capital X and capital Y.
Now the constraints in the problem These are that the wedge remains on the table which means the y coordinate of point A does not change. So what I will do is I will choose that y coordinate to be some constant in ahh I will choose it as 0 here okay. And the second constraint is that the block does not leave the surface of the wedge that means small y.
the coordinates of point B that is small y must be equal to tan alpha times capital X minus small x. If you go back to the diagram then this is your capital X and the projection of this would be somewhere here. So this distance here. is capital X minus small x and this height here is y. So here y is tan alpha times tan x minus small x and then because this constraints are holonomic and scleronomous that means there is no time explicitly occurring in the constraint equations the actual displacements and virtual displacements.
are same. So the virtual displacements would be delta y would be equal to 0 for capital y and delta y for small y is tan alpha times delta x delta of small x. Now out of these Since we have 3 coordinates, capital Y we have set to 0 anyway.
So I have capital X, small x, small y and there is one constraint equation. So I actually have only 2 independent variables. So I will choose 2 independent variables to be small x and capital X, okay. Now what are the forces in the… system.
The forces in the system, so we will draw this free body diagram and in the free body diagram you can see on the left side it is the free body diagram of the block. On the block there is only weight and the normal reaction due to the wedge. Whereas on the wedge you have normal reaction because of the block.
on the wedge mass of the wedge that gives you the weight and the table also exerts a normal reaction which I am going to call as n prime here. So in this case your n and n prime are the constraint forces and the weight of each of these blocks are The applied forces okay now let us apply the D'Alembert's principle if I apply D'Alembert's principle for the wedge we have this remember the D'Alembert's principle is sum over i f i minus m i r i double dot times delta ri this must be equal to 0. Here there are two particles so your i goes from 1 to 2. So first for the wedge the applied force is minus mg times J cap. then m r double dot so mass of the wedge is capital M times x double dot and that is of course in the direction of i cap multiplied by the virtual displacement of the wedge.
And then the second bracket for i is equal to 2 that is for the block is the applied force is mg j cap and then we have r double dot the acceleration would be equal to mass times x double dot i cap and times y double dot j cap okay and multiply this by the virtual displacement of the block and the net sum of this must be equal to 0. See the constraint forces we have dropped there are no constraint forces appearing in this. Let me simplify this if I write delta r as so delta r is nothing but just delta x times i cap this is capital X okay. So I will substitute that here and because it is in the direction of i cap but force mg is in the direction of j cap. So that term will vanish and you only get mx double dot.
x and similarly the virtual displacement for the block is delta x i cap plus delta y j cap. So substitute that here and this entire bracket here simplifies to this one here. okay.
And at this point we will use the information from the constraints that y double dot must be equal to tan alpha times x double dot small x double dot and similarly delta x double delta y must be equal to tan alpha times delta x delta of small x. So once you do that now I have quite a bit of work there but straightforward. forward. So then you get this one long equation and in this equation remember we have gotten the read of y we have gotten the read of delta y.
So now my one single equation is in terms of capital X. and capital delta x or delta of capital x, small x and delta of small x. What we will do is we will collect all the terms coefficients of delta x for both small x and delta of small and capital X. So this is what we have done. This is a coefficient of delta x and this is a coefficient of delta of small x.
And as we already had said that the two independent variables in the problem are capital X and small x that means the variations in capital X and small x are independent of each other. So this equation must be true for any arbitrary delta capital X delta small x. In one case I can of course choose capital delta x to be 0 in which case I will get in which case I will get the first one of the brackets. be 0 and in the other case I get the second bracket to be 0 and that is how I extract the equations of motion.
Remember if you look at these equations carefully. They are actually just simultaneous equations linear simultaneous equations in small x double dot and capital X double dot. So you can easily separate them and I am going to ask you people to do this algebra now and finally show that the correct equations of motion turn out to be this.
So this is equation of motion out of which the first one second one of course gives you x double dot directly. equation. And from the first equation you can get capital x double dot in terms of small x double dot and small x double dot we already have it.
But look at this first statement is this statement obvious to you from the problem yes if you look at this problem here or the free body diagram here it is immediately clear. that there is no net external force in the horizontal direction. So what happens to the net momentum in the horizontal direction that must be conserved and that exactly is what this statement is.
If you look at this, this is d by dt of mx dot x plus m x dot and this is equal to 0 and this is basically the net momentum there okay. So we will go to the one more example where we will consider the time dependent constraints. So it is a real enormous constraint.
This is an example with time dependent constraints. So here we have a pendulum and this pendulum is suspended from a trolley and the trolley can move horizontally okay. And here what we are going to assume as the motion of this trolley is already known.
and that is given by some function of time. So this point here if I measure it from some arbitrary x axis, so this distance here is given by y. the function f and it is predetermined.
So it is not the the trolley does not move under the action of forces but there is some external force which is a constraint force which moves the trolley according to some known time dependence okay. So we will go around. the other constraints coordinates of this point are say x and y then the constraint equation can be immediately written.
So this is your x axis this is your y axis okay. So the constraint is that the length of this rod remains fixed and is equal to L okay. So the constraint equation becomes x minus f of t whole square that is the distance between the vertical axis here to the bob plus y square must be equal to L square.
And as usual whenever there is a pendulum problem or the problem with a rotation involved like this we of course immediately make one switch of variable. So I will write y as L cos theta and x ft as L sin theta. Now what kind of constraint is this because in this constraint the time appears explicitly this constraint is called as real numbers and is of course holonomic because it comes in the form of an equation involving coordinates and the time okay.
Now force and thus so everything else is a constraint force except the weight of the bob. So again the force here applied force is minus mass times g times j cap okay and then the remaining part can be immediately done as usual. So what are the actual displacements? The only difference comes when we are considering the actual displacement. The actual displacement here is given by dx i cap plus dy j cap.
So this would be your dr vector. And remember here y. of course can be used as dependent variable and or I will write this in terms of the coordinate theta. So your dx is equal to L cos theta d theta but remember there is a time dependent term here so that would be equal to. f prime t dt and similarly dy would be equal to minus L sin theta d theta.
Now these are the actual displacements. What about the virtual displacement? Virtual displacement remember occurs at a particular instant which means I am going to hold this trolley steady. and only move this bob.
In that case the virtual displacements are given by delta r vector which is delta x times i cap plus delta y. times j cap and this would be equal to because delta x now is simply L cos theta d theta and delta y is minus L sin theta d theta. Remember in this case that additional term involving f will not be there because since we are considering the displacement at an instant the dt is 0 and hence this term which appears in actual displacement will not appear in the virtual displacement.
Now let us write the Danamber's principle. So, according to that the only force is mg j cap m x double dot m y double dot into delta r is equal to 0. okay. So we of course need to calculate mx double dot and my double dot. So that we can do immediately here your since x is this y dot is equal to –l sin theta theta dot and y double dot will be equal to –l.
cos theta theta dot square L sin theta theta double dot and similarly x dot will be equal to L. cos theta times theta dot but remember there is a term f so this will be f dot and x double dot will be equal to minus L sin theta theta dot square. plus L cos theta theta double dot plus F double dot. Now you see the difference between this and the pendulum that we have seen earlier. In the x double dot now we have this x dot term there.
So I will substitute this back into this equation here. And again I am going to ask you people to work through the algebra here there is only one degree of freedom. So your delta r has only delta theta in it.
So the coefficient of delta theta must become 0 and using that I will ask you to prove that theta double dot. g by L cos theta must be equal to f double dot f double dot by L cos theta. And this we can immediately see that if the suspension trolley.
is actually not moving which means f of t is constant then its second derivative would be 0 and this would reduce to a normal pendulum equation. Note that even if this f of t is a linear function. of t the equation of motion is exactly same. So the pendulum in fact would seem to just do a usual oscillatory motion as if the trolley was not moving but that we already knew because if you go to the trolley's frame but trolley's frame is also inertial that means there would be any no pseudo forces in the problem and you would actually get the same equation of motion for the pendulum in the trolley frame same as the stationary frame.
Okay, so after these two examples, three examples, we see that the calculation of equation of motion is not as easy. There is already quite a bit of work that we have to do and I have already made few mistakes here. So these derivations are usually long but what we are going to do is this. Now we can actually do the formal derivation from D'Alembert's principle. And combining with it with generalized coordinates we can now write down the final Lagrange's equations which make the calculation easier.