Solve differential equation $\frac{dx}{dt}$ = $x (1 − x) \cos (x)$ with $x(t)$ being the solution of the ODE and $x(0) = \frac{1}{2}$ and find limit $t\rightarrow\infty$ of $x(t)$.
I'm having trouble integrating the equation.
I did rewrite the equation to
$$\frac{dt}{dx} = \frac{1}{x(1-x)\cos(x)} = \frac{\sec(x)}{x(1-x)}$$
How do I integrate this to solve the ODE?