By basic equations, two basic theories are presented:1.Theory of stock's value=v*(t)=v*(0)exp(ar2*t). 2. Theory of conservation of stock's energy. Let stock's energy φ be defined as a quadratic function of stock price v and its derivative,φ=Av2+Bv+Cv2+Dv, under the constraint of basic equation, the problem was reduced to a problem of constrained optimization along optimal path. Using Lagrange multiplier and Euler equation of variation method, it can be proved that φ keeps conservation for any v. The application of these equations and theories on judgement and analysis of tendency of stock market are given, and the judgement is checked to be correct by the recorded tendency of Shenzhen and Shanghai stock markets.