Currently in Mathematics we are learning about "Simple Harmonic Motion" and how it satisfies the differential equation $\ddot x = -n^2 x$. Does this mean that the velocity($v$) in terms of displacement($x$) will always have a $\pm$ sign as the velocity will be both positive and negative at different points in space?
My confusion on the matter is further exacerbated by 2 solutions to similar questions (the bolded part of the question is the difference between the two);
Question 1 "A particle moves in a straight line so that at time $t$ its displacement from a fixed origin is $x$ and its velocity is $v$. If the acceleration is $3-2x$, find $v$ in terms of $x$ given that $v=2$ when $x =1$."
Solution: They use the fact that $\frac{d}{dx} (\frac {1}{2} v^2) = \ddot x$ (acceleration) and proceed to solve for $v$, though when they reach $v(x) = \pm \sqrt{6x-2x^2}$, they use the initial conditions to conclude that is must be the positive square root. i.e. $v(x) = + \sqrt{6x-2x^2}$.
Question 2 "A particle of mass 2kg moves in a straight line so that at time $t$ seconds its displacement from a fixed origin is $x$ metres and its velocity is $v$ m/s. If the resultant force (in newtons) that acts on the particle is; $6-4x$, find v in terms of $x$ given that $v=2$ when $x =1$."
Solution: They write $F=ma$, rearrange and conclude that acceleration is $\ddot x = 3-2x$. They then repeat the process (as above) and arrive at $v(x) = \pm \sqrt{6x-2x^2}$, BUT say how that its simple harmonic motion as $\ddot x = 3-2x$, and thus its plus and minus.
Is my understanding of the differential equation and simple harmonic motion correct? If so, is the second solution the correct one?
Thanks (I'm not sure if this falls more under mathematics or physics, but as I did this in maths, I've put it here)
