After seeing the derivation of the velocity addition formula (wikipedia) I want to use the same approach for deriving the acceleration addition formula.
My understanding of velocity addition derivation
In two frames $S, S'$ in standard configuration ($S$ thinks $S'$ moves with speed $v$ in x-direction and $u$ is speed in x-direction).
We have $dt' = \gamma(dt - \frac{v}{c^2}dx)$ and $dx' = \gamma(dx-v\ dt)$.
Velocity is defined as $$ u' = \frac{dx'}{dt'} = \frac{\gamma(dx-v\ dt)}{\gamma(dt - \frac{v}{c^2}dx)} $$
Now we divide everything with $dt$:
$$ u' = \frac{(\frac{dx}{dt}-v\ \frac{dt}{dt})}{(\frac{dt}{dt} - \frac{v}{c^2}\frac{dx}{dt})} = \frac{u - v}{1 - \frac{v}{c^2} u} $$
which is the correct formula.
Doing the same thing for acceleration addition
We have $du' = \frac{du - v}{1 - \frac{v}{c^2} du}$
$$a' = \frac{du'}{dt'} = \frac{\frac{du - v}{1 - \frac{v}{c^2} du}}{ \gamma(dt - \frac{v}{c^2}dx)}$$
Now we divide everything with $dt$ and assuming $\frac{v}{dt}= 0$ and $\frac{1}{dt} = 0$ (which we seemed to assume in the velocity derivation) we have:
$$ a' = \frac{\frac{\frac{du}{dt} - \frac{v}{dt}}{\frac{1}{dt} - \frac{v}{c^2} \frac{du}{dt}}}{ \gamma(\frac{dt}{dt} - \frac{v}{c^2}\frac{dx}{dt})} = \frac{\frac{a}{- \frac{v}{c^2}a}}{\gamma(1- \frac{v}{c^2}u)} = \frac{1}{-\frac{v}{c^2} \gamma (1 - \frac{v}{c^2}u)} $$
which is obviously wrong. I suspect I'm to sloppy with my differentials (how to treat them algebraically has always been a bit mysterious for me) but what exactly am I doing wrong and how would I do it if I wanted to use an approach similar approach as my velocity addition derivation?