I'm given a problem with the ODE
y'[x]=y[x]*Sqrt[4-2y[x]]
I've tried
DSolve[{w'[x] == w[x]*Sqrt[4 - 2*w[x]]}, w[x], x]
which gives me
{{w[x] -> -2 (-1 + Tanh[1/2 (-2 x - Sqrt[2] C[1])]^2)}}but that doesn't seem correct for some reason.
Can someone please point me in the direction of how to do this problem correctly? I don't really understand Mathematica at all.