can you please explain why you don't need to differentiate from here? i'm fairly sure that to prove something is simple harmonic, you need to prove and show it in the from a = -n^2*x
and when you differentiate that twice, (or when i do it rather), i'm left with:
(-n^2 / 4 )* (A-B + x)...