I have tried to solve this problem by adding the sum of the displacements during acceleration, constant velocity and deceleration, but it does not work out.
Question:
A car accelerates from rest to $20~\text{m/s}$ in $12$ seconds ($a =5/3~\text{ms}^{-2}$), it travels at $20~\text{m/s}$ for $40$ seconds, then retardation occurs from $20~\text{m/s}$ to rest in $8$ seconds ($a = -2.5~\text{ms}^{-2}$). As the car accelerates an RC car, moving parallel to the car, is moving at $14~\text{m/s}$. When will overtaking occur and what will the distance be? The RC car passes the car just as it starts to accelerate.
I can do this without a problem if acceleration is a constant. Is there a differential equation I can use to compute this as that is my better area or must I stick with the SUVAT equations?
Again, if I could be pointed in the right direction that way I can learn.