An Optimal Control Method for Trajectory Tracking Error Detection of Autonomous Vehicles (International Journal of Applied Mathematics and Computer Science, 2025)