Overtaking with non-constant acceleration 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.
 A: Since the acceleration changes discontinuously, there is no one way to solve it in one step.
One simplification is to switch to the frame of reference of the RC car.  You can do this simply by making the initial velocity of the starting/stopping car $-14$ m/s.  The question then reduces to:  When is the displacement of the moving car zero again?
if you use SAVTU on the first acceleration, you can find out if $S=0$ in less than 12 seconds.  If not, you can find out $S$ after 12 seconds, and then see if you get back to $S=0$ at constant velocity of $6$ m/s in less than 40 seconds, and so on... 
Explicit solution added;
First, Setting $s=0$ (car catches RC during first acceleration), $a = \frac{5}{3}$, and $u = -14$, and solving for t, we get t = 16.8 sec
It would take 16.8 sec of constant acceleration for the car to catch the RC, which we don't have!
So, finding s at the end of the first acceleration, if $a=\frac{5}{3}$, $u = -14$, $t=12$, we get $$s=-14 \times 12+\frac{1}{2}\times\frac{5}{3}\times 12^2=-48$$The car is 48 m behind the RC at the end of the firat acceleration.
The car is catching the RC at $6 $ m/s, and will make up the 48 m in 8 seconds of constant velocity, which we do have.
Total time is 20 seconds.  The RC will cover 280 m, and so will the accelerating car...
A: Plotting the displacement time graph helps a lot in these kind of problems.

From this graph we can say the RC is ahead of the car initially. The car catches up and overtakes the RC at t=20 seconds.
Note:
You do not need graph plotting tools to plot these graphs. Basically, you don't need to plot these graphs to accurately too.
Rough back-of-the-envelope calculations can easily determine the displacement of the car and RC at various time intervals. Then you can use the fact that an accelerated S-T graph would be quadratic, hence a parabola, again giving you approximate plots. 
This is enough to determine that the car will overtake the RC during its uniform motion. And then it becomes pretty easy to use SUVAT!
A: The car accelerates from 0 to 20 m/s in 12 s.  It has an average speed of 10 m/s over that time, and so covers 120 m in that time.  In that same time, the RC car goes 14 m/s * 12 s = 168 m.  So the car didn't catch up while accelerating.  At 12 s, the car is 168 m - 120 m = 48 m behind the RC car.
The car is now going a constant 20 m/s, whereas the R/C car is going 14 m/s.  So it can catch up.  The difference is 6 m/s.  The car has 48 m to make up, so that takes 48 m / 6 m/s = 8 s after it finishes accelerating, or 20 s after it starts.  This is long before the car begins to decelerate, which is 40 s after it's done accelerating.
Therefore the car catches up at 20 s, which is at 14 m/s * 20 s = 280 m.
