A reaction was given $\ce{A<=>B}$ The rate constants for forward and backward reactions were given as $k_\mathrm{f}$ and $k_\mathrm{b}$. The initial $\ce{[A]}$ was given as $a_{0}$ and the $\ce{[B]}$ at a time t (before equilibrium is attained) was to be calculated.
I tried solving it as follows -
For A I wrote -
$$\frac{\mathrm{d}[\ce{A}]}{\mathrm{d}t} = k_\mathrm{b}\ce{[B]}-k_\mathrm{f}\ce{[A]}$$
and similarly for B -
$$\frac{\mathrm{d}[\ce{B}]}{\mathrm{d}t} = k_\mathrm{f}\ce{[A]}-k_\mathrm{b}\ce{[B]}$$
Combining these two I got a 2nd order differential equation and wasn't able to proceed further. Is there something wrong with my approach or my equations?