The existence of electromagnetic waves is an important result of Maxwell's equations. For this reason, this paper, based on Maxwell's equations, after the introduction of potential functions, obtains Helmholtz equation of time-varying electromagnetic field, using the separation of variables, solves the equation on the basis of Spherical Symmetry, then uses MATLAB Toolbox (PDE Toolbox) and computer simulation program, achieves the visualization of the solution.