In the applied research of nonlinear system, the low degree of chaos in the dynamical system leads to the limitation of using the chaos method to solve some practical problems. In this paper, we use the product trigonometric function and ternary polynomial to build a dynamical system, which has strong chaotic characteristics. The dynamical system is constructed by two product trigonometric functions and a ternary linear equation, and its chaotic properties are verified by bifurcation diagrams, Lyapunov exponents, fractal dimensions, etc. The system has many parameters and large parameter intervals and is not prone to cycles. The conditions for the non-divergence of this system are given by mathematical derivation, and it is found that the linear part of the system can be replaced by an arbitrary ternary polynomial system and still not diverge, and the bifurcation diagram is drawn to verify it. Finally, the chaotic sequence is distributed more uniformly in the value domain space by adding the modulo operation. Then, the bit matrix of multiple images is directly permuted by the above system, and the experiment confirms that the histogram, information entropy, and pixel correlation of its encrypted images are satisfactory, as well as a very large key space.