Permanent magnet synchronous motors (PMSMs) with rectangular coils in hairpin windings exhibit improved fill factor and reduced end turn of the coils, which in turn improve the efficiency and power density of PMSMs, making them ideal for e-mobility applications. Herein, the shape of a PMSM was optimized for torque ripple reduction using metamodels to improve the noise and vibrational performance of the motor. The objective function of the optimal design aimed to minimize the torque ripple, and the average torque and efficiency were set as constraints. The notch width and depth and barrier length were selected as the design variables to satisfy the objective function and constraints. Using the optimal Latin hypercube design technique, 27 experimental points were selected, and a finite element analysis (FEA) was performed for each point. Furthermore, a function approximation was performed using six metamodels, and the best metamodel was selected using the root mean square error test. Moreover, the optimization was performed by combining the best metamodels for each variable with a sequential two-point diagonal quadratic approximation optimization algorithm. The torque ripple was improved by approximately 1.63% compared with the initial model, whereas the constraint values remained constant. Finally, an FEA was performed on the optimal point, and the FEA results matched with those of the optimal method.