A military gun is mounted on a railroad car (m = 1500 kg). There is no frictional force on the car, the track is horizontal, and the car is initially at rest. The gun then fires a shell of mass 30 kg with a velocity of 300 m/s at an angle of 40° with respect to the horizontal. Find the recoil velocity of the car.

Using Pi=Pf, I plugged in
0=30*300+1500v
to get V=-6 m/s.
I don't quite understand where the angle comes into play to solve this. Am I doing this right?

The angle is relevant because only the horizontal component of the recoil is applied to the railroad car. Basically, you calculate the impulse delivered by firing (equal to the momentum of the shell), multiply it by the cosine of 40 degrees, to get the horizontal impulse delivered to the railroad car. Then, find what velocity that impulse would correspond to for the railroad car.

To solve this problem, we need to apply the principle of conservation of momentum. The recoil velocity of the car can be determined by considering the momentum of the system before and after the shell is fired.

Let's denote the initial velocity of the car as Vc, the final velocity of the shell as Vs, and the final velocity of the car as Vcf. The momentum of an object is calculated by multiplying its mass by its velocity.

Before the shell is fired:
The momentum of the car-shell system can be calculated as:
Pi = m_car * Vc + m_shell * V_shell
= 1500 kg * Vc

After the shell is fired, we need to consider the horizontal and vertical components separately.

Horizontal Component:
The horizontal component of the shell's momentum after firing does not contribute to the recoil of the car because there is no horizontal external force acting on the system. Therefore, the horizontal momentum does not change.

Vertical Component:
The vertical component of the shell's momentum after firing does not contribute to the recoil of the car either because the track is horizontal. Therefore, the vertical momentum also does not change.

As a result, we only need to consider the horizontal momentum:

Pf = m_car * Vcf

According to the principle of conservation of momentum, Pi = Pf. Plugging in the values, we have:

Pi = Pf
m_car * Vc = m_car * Vcf

Rearranging the equation, we can solve for Vcf:

Vcf = Vc

This means the recoil velocity of the car will be equal in magnitude, but opposite in direction, to its initial velocity. Therefore, you correctly obtained V = -6 m/s, indicating that the car recoils in the opposite direction to its initial motion.

The angle at which the shell is fired (40° with respect to the horizontal) does not directly affect the recoil velocity of the car since there is no horizontal force acting on the system. The angle only determines the trajectory of the shell itself.