\begin{equation}
\frac{dy}{dx} = \sqrt{-w^2 y^2 + C_1} \\
\end{equation}
separate variables
\begin{equation}
\frac{1}{\sqrt{C_1 - \omega^2 y^2}} \, dy = \, dx
\end{equation}
integrate LS by substituting $y = \frac{\sqrt{C_1}}{\omega}u$
\begin{align}
\int \frac{1}{\sqrt{C_1 - \omega^2 y^2}} \, dy
&= \int \frac{1}{\sqrt{C_1 - \omega^2 ((\sqrt{C_1}/\omega)u)^2}} \frac{\sqrt{C_1}}{\omega} \, du \\
&= \int \frac{1}{\sqrt{C_1(1 - u^2)}} \frac{\sqrt{C_1}}{\omega} \, du \\
&= \frac{1}{\omega} \arcsin u + C_2 \\
&= \frac{1}{\omega} \arcsin\left(\frac{\omega}{\sqrt{C_1}}y\right) + C_2
\end{align}
Integrate also the RS to obtain
\begin{equation}
\frac{1}{\omega} \arcsin\left(\frac{\omega}{\sqrt{C_1}}y\right) + C_2 = x
\end{equation}
Isolate $y$ in terms of $x$:
\begin{equation}
y = \frac{\sqrt{C_1}}{\omega} \sin(\omega x - C_2)
\end{equation}
Expand the sine term:
\begin{equation}
y = \frac{\sqrt{C_1}}{\omega} (\sin(\omega x) \cos C_2 - \sin(C_2) \cos(\omega x))
\end{equation}
By choosing $C_1 = \omega^2$ and either $C_2 = 0$ or $C_2 = 3\pi/2$ respectively we obtain particular solutions $y_1 = \sin(\omega x)$ and $y_2 = \cos(\omega x)$. The Wronskian is
\begin{align}
W &= \left|\begin{array}{cc} \sin(\omega x) & \cos(\omega x) \\ \omega \cos(\omega x) & -\omega \sin( \omega x) \end{array}\right| \\
&= -\omega \sin^2(\omega x) - \omega \cos^2(\omega x) \\
&= -\omega \neq 0
\end{align}
so we conclude that the general solution to the linear homogeneous second-order ODE is $\{y = A \sin(\omega t) + B \cos(\omega t) \mid A, B \in \mathbb{R} \}$