1: \begin{abstract}
2: We propose a numerical method to solve an inverse source problem of computing the initial condition of hyperbolic equations from the measurements of Cauchy data. This problem arises in thermo- and photo- acoustic tomography in a bounded cavity, in which the reflection of the wave makes the widely-used approaches, such as the time reversal method, not applicable.
3: In order to solve this inverse source problem, we approximate the solution to the hyperbolic equation by its Fourier series with respect to a special orthonormal basis of $L^2$.
4: Then, we derive a coupled system of elliptic equations for the corresponding Fourier coefficients.
5: %This method allows to approximately transfer the problem of solving an hyperbolic equation in time domain to a system of elliptic equations,
6: We solve it by the quasi-reversibility method.
7: The desired initial condition follows.
8: We rigorously prove the convergence of the quasi-reversibility method as the noise level tends to 0.
9: Some numerical examples are provided.
10: In addition, we numerically prove that the use of the special basic above is significant.
11: % In fact, using the traditional ``sine" and ``cosine" basis does not give
12: % The paper is ended with some numerical illustrations of the problem in 1D, in comparing with the Fourier basic, to see the superiority of our orthonormal basis.
13: \end{abstract}
14: