At present, the global energy problem is serious. Wave energy is the kinetic energy and potential energy of waves on the ocean surface. Because of its high energy density, wide distribution, and long continuous operation of the device, it has become the focus of academic research. The key problem to be solved urgently for the large-scale application of wave energy is how to optimize the energy conversion efficiency of wave energy devices. This paper starts from the Newtonian dynamic equation, analyzes the motion state of the wave energy device in different wave environments, and studies the optimization and control of its power output. This paper first adopts the analysis method of first whole and then isolation, and establishes a one-dimensional coordinate system with the zero point of sea level. Then, the force analysis of the system is carried out, the dynamic differential equation is established, and the initial draft of the system is solved through the initial balance equation. Since the dynamic equation is a second-order linear ordinary differential inhomogeneous linear equation, the fourth-order Runge is used. The Kutta method is used to solve the problem, and the numerical solution for the position and velocity of the float is obtained. Secondly, the movable coordinate system is established with the float as the reference system, and the force analysis of the oscillator is carried out to obtain its relative dynamic equation. Then, the initial relative position of the oscillator is solved through the initial balance equation, and the relative dynamic differential equation is obtained by using the fourth-order Runge-Kutta method to obtain the numerical solution of the relative position and relative velocity of the oscillator with respect to time. Finally, the numerical solution of the absolute position and absolute velocity of the oscillator with respect to time is obtained through coordinate transformation.