when taking x to the power of 2 in a function do I put my x number in parentheses or not?

32 Views Asked by At

I have been struggling with this for the past couple of days now and can't seem to get a solid answer.

Let's say that we are differentiating $f(x)=x^3-3x^2-24x+1$ and we get $3x^2-6x-24$ and we put this equal to zero to find that $x = -2$ and $x = 4$.

The problem I have is after finding these $x$ values and wanting to put them in I can't decide if I put $-2$ as $(-2)^2$ or $-2^2$ if I take the one or the other the signs change from $-12$ to $+12$ and that changes my answer as a whole. Could someone please help me with this one? Thanks

2

There are 2 best solutions below

0
On

The problem has been resolved in the comments, but I'll put an answer here with brief explanation for completeness.

Say you have an expression $x^2$ where $x=-2$. How do you write the value of the expression explicitly? If you write $-2^2$, this really means $-(2^2)$ because of notational conventions we follow, so this is really $-(2\times2)$. Thus, the correct version is $(-2)^2$, which denotes $(-2)\times(-2)$ to show what you want. You should note that these are completely different things, and the sign isn't just magically changed for no reason, and you should be clear that, when you see something like $-a^b$, we really mean $-(a^b)$ and not $(-a)^b$. This is especially important if you look at powers other than nice integers, and the difference is not just in changing a sign; $-1^{1/2}$ is $-1$ but $(-1)^{1/2}$ has no value in the real numbers!

2
On

When a mathematical expression has ambiguities, often there are "binding rules" to resolve the ambiguity.

One example is $a \times b + c$: is it $(a \times b) + c$? Or is it $a \times (b + c)$? This one is resolved by the rule that the multiplication operator $\times$ binds more tightly than $+$, meaning that we do the $\times$ operation before the $+$ operation. So the expression $a \times b + c$ is interpreted as $(a \times b) + c$. If what you wanted was the other one, then you must put in the parentheses: $a \times (b + c)$.

Similarly, exponents bind more tightly than the unary negation operator, so the expression $-2^2$ is interpreted as $-(2^2)$. But for this problem what you want is the other one, so you must put in the parentheses: $(-2)^2$.

In general binding rules, also called rules of precedence, will tell you the order of operation in most mathematical expressions. Here's a fuller description of the rules of precedence.