# Two blocks connected by spring on frictionless surface and Newton's third law

Suppose there is the following situation:

Blocks $A$ and $B$, with masses $m_A$ and $m_B$, are connected by a light spring on a horizontal, frictionless table. When block $A$ has acceleration $a_A$, then block $B$ has, by Newton’s second and third laws, acceleration $-a_A\frac{m_A}{m_B}$.

What does it mean for block $B$ to have a negative acceleration? Since the blocks are connected by a spring, does not block $B$ move in the same direction as block $A$?

-

What does it mean for block B to have a negative acceleration? Since the blocks are connected by a spring, does not block B move in the same direction as block A?

Since they are connected by a spring, Block B does not move in the same direction as block A always. Actually, this situation can be understood using center of mass.

In the situation given, the masses will move in the positive x direction while oscillating back and forth along the spring. Also, it isn't necessary that the Block B "moves" backward, although here it seems it does. It's just the acceleration which is negative, which is justifies if they are oscillating.

Another case might be that there are other forces acting on Block B. What you wrote is just the acceleration of Block B due to Block A.

-
Acceleration is a vector, so $-a_A$ denotes an acceleration with the same magnitude as $a_A$, but in the opposite direction.