sachin123 said:
Thank You for your explanation.
So you meant we would have to assume a velocity for the Earth and include its momentum in the correct equation right?
Yes, its
relative velocity. It's often convenient to define the velocity
relative to the center of mass of the system.
But anyway, like I mentioned before, defining the system to include the entire Earth is overkill for problems like the one involving the bullet and the ball. It would make the problem really, really complicated, for no good reason. All I'm saying is that you
could do it (not that you
should do it). When the gun is fired, a bullet shoots out in one direction, but it also imparts a torque on the Earth (due to the recoil) in the other direction. After the bullet hits the ball, the ball raises up and also imparts a horizontal force on the pendulum support system, which creates a torque on the Earth in the opposite direction that the recoil did earlier. If you're careful enough, the vector sum of all momentums (bullet, ball, Earth and anything else) is zero at any given instant in time. In the beginning, since nothing is moving, all the momentums are zero. In the end, after everything comes to rest eventually, again all the momentums are zero. And in the middle, when things are moving, all the momentums still add up to zero as long as you consider everything. Now that's not the best way to solve problems like this. My only point is that momentum is always conserved as long as nothing is left out of the system (such that there are no external forces).
Lets see this:two masses m1 m2 connected by a spring,if we take spring inside the system,we can easily write the eqs.But how if we don't?And yes the spring is light and exerts force on the bodies which become external forces.Then?
You've described a classic (almost textbook example) mechanics problem.

And we
could solve for the detailed equations of motion if we wanted to.
But for the point of this thread, suffice it to say that
m1v1(t) + m2v2(t) = 0
assuming the center of mass is stationary, and the spring mass system is on a frictionless horizontal surface such that we can ignore gravity. (Here
v1(
t) and
v2(
t) are the respective velocities of each mass.)
Now if instead you have a mass attached to a spring, such that the other end is attached to the ceiling, you generally wouldn't use conservation of momentum. Sure, you
could if you really wanted to (by bringing the whole Earth into the system), but it would make things more complicated than necessary.