Two substances, $A$ and $B$ , are being converted into a single compound $C$. In the laboratory it has been shown that for these substances, the following law of conversion holds: the time of rate change of the amount $x$ of compound $C$ is proportional to the product of the amounts of unconverted substances $A$ and $B$ . Assume the units of measure so chosen that one unit of compound $C$ is formed from the combination of one unit of $A$ with one unit of $B$. If at time $t = 0$ there are $a$ units of substance $A$, $b$ units of substance $B$, and none of compound $C$ present, show that the law of conversion may be expressed by the equation
$$\frac{dx}{dt} = k(a-x)(b-x)$$
I need to solve it with given initial conditions.
I assume $b$ is different from $a$.
Therefore, $x = \frac{ab[exp (b - a)kt - 1]}{[b exp (b - a)kt - a]}$
And if $b = a$, $x = \frac{[(a^2)kt]}{(akt + 1)}$
Have no idea how to proceed further.
Any help would be appreciated.