I also gave ChatGPT this problem from this thread You can see the results here: Again it fails to get the correct optimized solution. Was interesting to see it changed its answer in a new session to be more correct but still wrong.