It might help if you use Latex for equations so that they are more readable.
http://www.thestudentroom.co.uk/wiki/LaTeXAlternatively, use your Windows character map to find the Greek letters
αβγδεζηθλμπρφω for example
and other useful characters such as squared ² and half ½ .
Or use the superscript and subscript buttons in the word processing window you type your message in. On mine they are directly under the bold and italic buttons. If they are not there you will find the option in your TSR account settings.
Is the first equation meant to be
ax=−(2πf)2x?
(done using Latex)
or
a
x = -(2πf)
2x
(using the subscript superscript buttons.)
To see how it's done reply to my post using the quote button and take a look at my post.
In answer to your question, the 1st formula isn't derived it's the definition of SHM except that the constant in the defining equation is ω² and ω is by definition 2πf
The 2nd equation is obtained by integrating the first one twice.
However, at A level in physics it's normally shown to be true by differentiating it twice to obtain the 1st equation.