Hi,
이 답변은 영어로 작성되었으며 가장 빠른 답변을 제공하도록 설계되었습니다.
I understand that you want to optimize the execution speed of your code.
Unfortunately, there are no alternative methods available to optimize the execution time of your code. The integral function itself takes time to execute for the range of 1 to 500 symbols of 'x', and there are no other alternatives that can significantly improve the execution speed.
Hope it helps!