Traffic flow prediction can help intelligent transportation effectively be carried out. This paper employs the Physics-Informed Neural Network (PINN) as a deep learning method and partial differential equation (PDE) multivariable methods to approximate solutions for the Lighthill-Whitham-Richards (LWR) traffic flow equation system. The relationship between traffic flow density function and time/displacement is obtained by setting different function conditions and initial boundary constraints. Furthermore, a series of three-dimensional graphics are generated during the research process through dynamic comparisons and evaluations of independent variables to intuitively display and analyze traffic flow trends and gradients. Additionally, before the commencement of the study, the authors propose specific initial condition combinations corresponding to real-world application scenarios to enhance the practicality of the research. Moreover, through the interpretation and reflection on the obtained images, the study identifies inconsistencies between actual situations and predictions, leading to necessary adjustments. Furthermore, the research explores the compatibility of the u(x) function and hard constraint conditions in different scenarios, aiming to accurately predict traffic information and ultimately enhance the utilization of traffic resources. By leveraging PINN and PDE technologies, this study contributes to advancing traffic flow analysis and optimization, potentially influencing urban planning and traffic management strategies positively.