# Inverted pendulum

by saltine
Tags: inverted, pendulum
 P: 101 1. The problem statement, all variables and given/known data I was reading a book and it had this problem: "The input u is an acceleration provided by the control system and applied in the horizontal direction to the lower end of the rod. The horizontal displacement of the lower end is y. The linearized form of Newton's law for small angles gives $$mL\ddot{\theta} = mg\theta - mu$$ . . . (1) ... (then it proceeds to part (a) of the problem.)" 3. The attempt at a solution My question is about equation (1). Suppose I sum up the forces at the mass m: First, I see two axes. One is pointing from the ball to the hinge. The other is tangential to the circular movement. The forces pointing to the hinge will be cancelled by the normal force from the rod. Therefore I ignore that. The forces on the tangential direction (clockwise) are: F = ma = mg sin(θ) + mu cos(θ) . .. . (2) Here, I moved the acceleration u to the ball because this acceleration is equivalent to one applied at the center of mass of the ball. Now, since a is the tangential acceleration, I could translate it into angular acceleration a = Lα, this gives me: mLα = mg sin(θ) + mu cos(θ) . . . (3) This is almost the same as (1). Now when I use small angle approximation: mLα = mgθ + mu . . . (4) Why is my sign for mu flipped compared to (1)? - Thanks
HW Helper
Thanks
P: 26,148
 Quote by saltine … Why is my sign for mu flipped compared to (1)?
Hi saltine!

(have a mu: µ )

(how come you had α and θ but not µ? )

Sorry, but your analysis is all wrong …

there are two forces on the ball, the gravitational force and the force along the rod …

you want to ignore the latter, so you take components perpendicular to the rod, giving a = gθ …

but acceleration of ball = acceleration of ball relative to hinge + acceleration of hinge

ie a = Lα + µ …

so Lα + µ = gθ

(or, without maths, if there's negligible gravity, and you pull the hinge to the right, obviously the rod will swing to the left )
 P: 101 mu was not a greek letter µ, it was the mass m times the acceleration u. How do I determine whether I should include u to the acceleration or as part of a force? The original setting was Fig 1. In Fig 4, the ball is attached rigidly to a box that is accelerating at u. From the reference frame of the joint, the ball is not accelerating, so aJoint = 0. From the reference frame of absolute coordinate, the ball is accelerating at u, the same as the box, so aBall In Absolute = aBall in Joint Frame + u = u. In Fig 3, the ball is sitting inside a frictionless box. The box is accelerating at u. Since there is no force applied to the ball in the Absolute frame, the ball cannot accelerate: aAbsolute = 0. Meanwhile, from the reference frame of the box, the acceleration of the ball is aBall in Box Frame = aBall in Absolute Frame - aBox in Absolute Frame = 0 - u = -u. In Fig 2, a force Fu is applied to point A in a no gravity environment. In the frame of the center of mass, the pin-shaped object got a torque and would start to spin about the center of mass with angular acceleration α = a/L = Fu/mL. In the absolute frame, the object got a push and its center of mass would translate at aCM in Absolute = Fu/m. In Fig 1, in the reference frame of A, the ball is falling to the right: aBall in Frame A = gsinθ. In the absolute frame, aBall in Absolute Frame = aBall in Frame A + aA in Absolute Frame = gsinθ + u. This is the wrong result. But why? In Fig 1, with small angles, the ball is approximately resting on a frictionless surface. In the absolute frame, the ball is accelerating at aBall in Absolute = gsinθ due to gravity, in the frame of A, aBall in Frame A = aBall in Absolute - aA in Absolute = gsinθ - u. This is the same as (1), but is the explanation valid? The implication seems to be that in small angles, the cart does not move the ball sideway, it only moves the ball up or dowm by moving hinge A underneath the ball. Here is another attempt: The orientation of the ball is affected by g and u. The angular acceleration due to g is αg = gsinθ/L. . . . (5) The angular acceleration due to u is αu = -ucosθ/L. . . . (6) The total angular acceleration is α = gsinθ/L - ucosθ/L. In small angle approximation, α = gθ/L – u/L. In this explanation, how do I justify (5) and (6)?
HW Helper
Thanks
P: 26,148
Inverted pendulum

Hi saltine!
 Quote by saltine In Fig 1, in the reference frame of A, the ball is falling to the right: aBall in Frame A = gsinθ. In the absolute frame, aBall in Absolute Frame = aBall in Frame A + aA in Absolute Frame = gsinθ + u. This is the wrong result. But why?
Sorry, but I just don't like your terminology from this point onward …
 acceleration of ball = acceleration of ball relative to hinge + acceleration of hinge
you're saying that acceleration of ball relative to hinge = gsinθ … it isn't!

you can only find the acceleration from good ol' Newton's second law, and for that you need an inertial frame, which the hinge isn't …

that's all there is to it!

You must use an inertial frame, and in this case the only candidate is the stationary frame, so you use …
 Quote by tiny-tim there are two forces on the ball, the gravitational force and the force along the rod
… and take components perpendicular to the rod.
 P: 101 I am confused because u is not a force but just acceleration. In Fig 1, there are two forces acting on the ball. The component of mg that is parallel to the rod is cancelled by the normall force from the rod, so the net force at the ball is only mg sinθ. You said: acceleration of ball = acceleration of ball relative to hinge + acceleration of hinge And that the acceleration of the ball is a = F/m = g sinθ. Therefore g sinθ must also equal Lα + u. In Fig 5, the situation is similar except that u is now from an external force, Fu = Mu. Is this situation the same? Why is/isn't Fu part of the net force acting on the ball? - Thanks
 P: 101 I found another way to explain the original situation: When a rocket accelerates sideway, the perceived gravity is in the opposite direction of the acceleration. Therefore with the applied the acceleration u to the cart, the "gravity" that the ball perceives is the sum g + -u. Now I could take the tangential component due to this perceived gravity: Net Tangential Force = maT = mg sinθ - mu cosθ Since aT = α L, m α L = mg sinθ - mu cosθ. With small angle approximation: $$mL\ddot{\theta} = mg\theta - mu$$ Which is equation (1) ! This is the only way I understand it at the moment.
HW Helper
Thanks
P: 26,148
Hi saltine!
 Quote by saltine I am confused because u is not a force but just acceleration.
Then it just goes onto the acceleration side of F = ma …

you add it to the other (rotational) acceleration.
 In Fig 1, there are two forces acting on the ball. The component of mg that is parallel to the rod is cancelled by the normall force from the rod, so the net force at the ball is only mg sinθ.
I didn't understand this at all.

The net force on the ball is mg sinθ plus the force from the rod.

Nothing is cancelled (what is it to be cancelled with?) …

the reason why you leave out the mg cosθ is not because its cancelled, but simply because you're only looking at tangential components.
 In Fig 5, the situation is similar except that u is now from an external force, Fu = Mu. Is this situation the same? Why is/isn't Fu part of the net force acting on the ball?
Fu isn't "part of the net force acting on the ball" because isn't acting on the ball at all …

you must decide which body you're applying Netwon's second law to, and then only use the forces on that body …

your book is using the ball as the body, so the only forces on it are mg and the force from the rod …

any force on anything else is irrelevant.

 Quote by saltine Net Tangential Force = maT = mg sinθ - mu cosθ Since aT = α L, m α L = mg sinθ - mu cosθ. With small angle approximation: $$mL\ddot{\theta} = mg\theta - mu$$
This is much better … you've used the same method as your book, except that you've moved the mu cosθ from one side of the equation to the other, by using the accelerating frame.

(The tangential force is mg sinθ, and the tangential acceleration (times mass) is mαL + mu cosθ)

This isn't necessary

and it's risky, because it's so easy to get the ± sign wrong.

Your book just uses the stationary frame, and uses only tangential components, so that there's only one component of force on the ball, and the acceleration is split into two parts.

 Related Discussions Introductory Physics Homework 1 General Physics 1 Advanced Physics Homework 3 Introductory Physics Homework 0 Introductory Physics Homework 2