Minecraft: How do I make my roller coaster work without the cart rocking?

Whenever my minecart goes over a normal rail to a powered rail, it rocks to left and right and I go off. Any way for this to not happen?

I have never heard of that… Anyways you can push the cart using a minecart furnace like a train. You put the coal in and it propels the car and all subsequent cars forward. You'd have to reverse it to put it backwards but it allows you to make the maneuvers without the power rails or loss of traction.