# BUG in ChatGPT 3.5 (unfortunately)

Hello!

UNFORTUNATELY ChatGPT doesn’t calculate -(-3^2) properly!

You: Calculate -(-3^2)

ChatGPT: When you have a negative sign in front of a parenthesis, it’s the same as multiplying everything inside the parenthesis by -1. So,

-(-3^2) = -(3^2) = -(9) = -9

So, -(-3^2) equals -9.

☆ This is WRONG, correct is +9 because to solve -(-3^2) we must do:

(a) FIRST the minus (before the parenthesis) must be resolved, so this minus and the minus inside the parenthesis results in PLUS

(b) THEN 3^2 = +9 and the PLUS of (a) don’t change this value, so it’s remains +9 (so the correct RESULT is +9)

Best regards from Stuttgart,
Stefan Gross

It’s not really a “bug”, per se, but just that the language AI is good at – language. Not being a calculator.

Just a bit more instruction will give the AI the ability to reflect on how to solve the problem before giving a final answer. Here’s ChatGPT 3.5:

Provide a step by step analysis and proof of the solution to the problem x = -(-3^2)

To solve the expression (x = -(-3^2)), let’s break it down step by step using the order of operations (PEMDAS/BODMAS):

1. Exponentiation: Evaluate the exponent first.
[3^2 = 9]

2. Negation: Apply the negation to the result of the exponentiation.
[-(3^2) = -(9)]

3. Negation (again): Apply another negation to the result.
[x = -(-9)]

4. Double Negation: Two negations cancel each other out, leaving the result unchanged.
[x = 9]

So, (x = 9) is the solution.

In summary:

[x = -(-3^2) = -(9) = 9]