With [DtDtu]n as the finite difference approximation to u′′(tn) we can write [DtDtu+ω2u=0]n
[DtDtu]n means applying a central difference with step Δt/2 twice: [Dt(Dtu)]n=[Dtu]n+12−[Dtu]n−12Δt which is written out as 1Δt(un+1−unΔt−un−un−1Δt)=un+1−2un+un−1Δt2.