Incredibly basic notation question: Is $-1^2$ 1 or -1? How about $-x^2$ where $x$ is $1$?












3












$begingroup$


Notation question: Is $-1^2$ equal to $1$ (because it's $(-1)^2$, as seems obvious) or $-1$ (because it's $-(1^2)$). E.g., is the $-1$ a single thing (token or whatever) in the equation? Similarly, let $x$ be $1$. Is $-x^2$ $1$ or $-1$?



I believe $-1^2$ is $1$ because "$-1$" is a single thing (a negative number), but that $-x^2$ where $x$ is $1$ is $-1$ because it's $-(x^2)$, the "$-x$" is not a single thing and exponeniation happens before negation.



Am I correct or incorrect? Or correct, but for the wrong reason?



This may seem incredibly odd to ask, but I'm suddenly unsure of something I've been sure of for more than four decades. Why would I question it? Because in JavaScript, -1 is not a numeric literal, it's a unary - operator followed by a numeric literal for the number 1, and this had pretty major ramifications for adding an exponentiation operator to the language, because the unary - has very high precedence. But I'm sure...ish that $-1$ in math notation is a literal number (and that exponentiation happens before negation).










share|cite|improve this question









$endgroup$








  • 3




    $begingroup$
    This is purely anecdotal, but I've always read $-1^2$ as $-(1^2)$.
    $endgroup$
    – axblount
    Dec 5 '18 at 15:33








  • 3




    $begingroup$
    In analysis (such as power series expansions of trigonometric functions) you will see a lot of expressions involving $(-1)^n$. It is invariably always written this way, because $-1^n$ would mean something different (and trivial).
    $endgroup$
    – Henning Makholm
    Dec 5 '18 at 15:40
















3












$begingroup$


Notation question: Is $-1^2$ equal to $1$ (because it's $(-1)^2$, as seems obvious) or $-1$ (because it's $-(1^2)$). E.g., is the $-1$ a single thing (token or whatever) in the equation? Similarly, let $x$ be $1$. Is $-x^2$ $1$ or $-1$?



I believe $-1^2$ is $1$ because "$-1$" is a single thing (a negative number), but that $-x^2$ where $x$ is $1$ is $-1$ because it's $-(x^2)$, the "$-x$" is not a single thing and exponeniation happens before negation.



Am I correct or incorrect? Or correct, but for the wrong reason?



This may seem incredibly odd to ask, but I'm suddenly unsure of something I've been sure of for more than four decades. Why would I question it? Because in JavaScript, -1 is not a numeric literal, it's a unary - operator followed by a numeric literal for the number 1, and this had pretty major ramifications for adding an exponentiation operator to the language, because the unary - has very high precedence. But I'm sure...ish that $-1$ in math notation is a literal number (and that exponentiation happens before negation).










share|cite|improve this question









$endgroup$








  • 3




    $begingroup$
    This is purely anecdotal, but I've always read $-1^2$ as $-(1^2)$.
    $endgroup$
    – axblount
    Dec 5 '18 at 15:33








  • 3




    $begingroup$
    In analysis (such as power series expansions of trigonometric functions) you will see a lot of expressions involving $(-1)^n$. It is invariably always written this way, because $-1^n$ would mean something different (and trivial).
    $endgroup$
    – Henning Makholm
    Dec 5 '18 at 15:40














3












3








3


1



$begingroup$


Notation question: Is $-1^2$ equal to $1$ (because it's $(-1)^2$, as seems obvious) or $-1$ (because it's $-(1^2)$). E.g., is the $-1$ a single thing (token or whatever) in the equation? Similarly, let $x$ be $1$. Is $-x^2$ $1$ or $-1$?



I believe $-1^2$ is $1$ because "$-1$" is a single thing (a negative number), but that $-x^2$ where $x$ is $1$ is $-1$ because it's $-(x^2)$, the "$-x$" is not a single thing and exponeniation happens before negation.



Am I correct or incorrect? Or correct, but for the wrong reason?



This may seem incredibly odd to ask, but I'm suddenly unsure of something I've been sure of for more than four decades. Why would I question it? Because in JavaScript, -1 is not a numeric literal, it's a unary - operator followed by a numeric literal for the number 1, and this had pretty major ramifications for adding an exponentiation operator to the language, because the unary - has very high precedence. But I'm sure...ish that $-1$ in math notation is a literal number (and that exponentiation happens before negation).










share|cite|improve this question









$endgroup$




Notation question: Is $-1^2$ equal to $1$ (because it's $(-1)^2$, as seems obvious) or $-1$ (because it's $-(1^2)$). E.g., is the $-1$ a single thing (token or whatever) in the equation? Similarly, let $x$ be $1$. Is $-x^2$ $1$ or $-1$?



I believe $-1^2$ is $1$ because "$-1$" is a single thing (a negative number), but that $-x^2$ where $x$ is $1$ is $-1$ because it's $-(x^2)$, the "$-x$" is not a single thing and exponeniation happens before negation.



Am I correct or incorrect? Or correct, but for the wrong reason?



This may seem incredibly odd to ask, but I'm suddenly unsure of something I've been sure of for more than four decades. Why would I question it? Because in JavaScript, -1 is not a numeric literal, it's a unary - operator followed by a numeric literal for the number 1, and this had pretty major ramifications for adding an exponentiation operator to the language, because the unary - has very high precedence. But I'm sure...ish that $-1$ in math notation is a literal number (and that exponentiation happens before negation).







notation






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 5 '18 at 15:29









T.J. CrowderT.J. Crowder

1185




1185








  • 3




    $begingroup$
    This is purely anecdotal, but I've always read $-1^2$ as $-(1^2)$.
    $endgroup$
    – axblount
    Dec 5 '18 at 15:33








  • 3




    $begingroup$
    In analysis (such as power series expansions of trigonometric functions) you will see a lot of expressions involving $(-1)^n$. It is invariably always written this way, because $-1^n$ would mean something different (and trivial).
    $endgroup$
    – Henning Makholm
    Dec 5 '18 at 15:40














  • 3




    $begingroup$
    This is purely anecdotal, but I've always read $-1^2$ as $-(1^2)$.
    $endgroup$
    – axblount
    Dec 5 '18 at 15:33








  • 3




    $begingroup$
    In analysis (such as power series expansions of trigonometric functions) you will see a lot of expressions involving $(-1)^n$. It is invariably always written this way, because $-1^n$ would mean something different (and trivial).
    $endgroup$
    – Henning Makholm
    Dec 5 '18 at 15:40








3




3




$begingroup$
This is purely anecdotal, but I've always read $-1^2$ as $-(1^2)$.
$endgroup$
– axblount
Dec 5 '18 at 15:33






$begingroup$
This is purely anecdotal, but I've always read $-1^2$ as $-(1^2)$.
$endgroup$
– axblount
Dec 5 '18 at 15:33






3




3




$begingroup$
In analysis (such as power series expansions of trigonometric functions) you will see a lot of expressions involving $(-1)^n$. It is invariably always written this way, because $-1^n$ would mean something different (and trivial).
$endgroup$
– Henning Makholm
Dec 5 '18 at 15:40




$begingroup$
In analysis (such as power series expansions of trigonometric functions) you will see a lot of expressions involving $(-1)^n$. It is invariably always written this way, because $-1^n$ would mean something different (and trivial).
$endgroup$
– Henning Makholm
Dec 5 '18 at 15:40










2 Answers
2






active

oldest

votes


















5












$begingroup$

The exponent binds first, so $-1^2 = -1cdot 1 = -1.$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    ... wow .... I'm glad I asked. I'd gotten myself into a very confused state.
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:32





















1












$begingroup$

You’re confusing $(-1)^2$ with $-1^2$. Recall that exponents have the priority, so you get



$$-1^2 = -(1)^2 = -1cdot 1 = -1$$



On the other hand, for $(-1)^2$, you get



$$(-1)^2 = (-1)cdot(-1) = +1$$



The same idea applies to all negative numbers raised to an even power. If the whole negative number is in parentheses, your answer becomes positive, but if the number is not within parentheses, the exponent comes first so the answer becomes negative.






share|cite|improve this answer









$endgroup$









  • 2




    $begingroup$
    I remembered that exponents had priority. My confusion was whether $-1$ is a single token (as we'd put it in programming), a number; or two tokens, negation and a number. I got myself in a right confused state over it. But of course, for years I've been reading things like $-2^{32} - 1$ correctly. Off day. :-)
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:43










  • $begingroup$
    (sigh... $-2^{32} + 1$ I mean...)
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:55






  • 2




    $begingroup$
    @T.J.Crowder - that confuses a lot of people! Thinking about it as a single token seems most natural at first, but you figured out in the question exactly why we don't do that: because we want $-x^2$ and $x^2$ to be different.
    $endgroup$
    – Deusovi
    Dec 5 '18 at 17:53











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3027197%2fincredibly-basic-notation-question-is-12-1-or-1-how-about-x2-where-x%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









5












$begingroup$

The exponent binds first, so $-1^2 = -1cdot 1 = -1.$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    ... wow .... I'm glad I asked. I'd gotten myself into a very confused state.
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:32


















5












$begingroup$

The exponent binds first, so $-1^2 = -1cdot 1 = -1.$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    ... wow .... I'm glad I asked. I'd gotten myself into a very confused state.
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:32
















5












5








5





$begingroup$

The exponent binds first, so $-1^2 = -1cdot 1 = -1.$






share|cite|improve this answer









$endgroup$



The exponent binds first, so $-1^2 = -1cdot 1 = -1.$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Dec 5 '18 at 15:31









ncmathsadistncmathsadist

42.4k260103




42.4k260103












  • $begingroup$
    ... wow .... I'm glad I asked. I'd gotten myself into a very confused state.
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:32




















  • $begingroup$
    ... wow .... I'm glad I asked. I'd gotten myself into a very confused state.
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:32


















$begingroup$
... wow .... I'm glad I asked. I'd gotten myself into a very confused state.
$endgroup$
– T.J. Crowder
Dec 5 '18 at 15:32






$begingroup$
... wow .... I'm glad I asked. I'd gotten myself into a very confused state.
$endgroup$
– T.J. Crowder
Dec 5 '18 at 15:32













1












$begingroup$

You’re confusing $(-1)^2$ with $-1^2$. Recall that exponents have the priority, so you get



$$-1^2 = -(1)^2 = -1cdot 1 = -1$$



On the other hand, for $(-1)^2$, you get



$$(-1)^2 = (-1)cdot(-1) = +1$$



The same idea applies to all negative numbers raised to an even power. If the whole negative number is in parentheses, your answer becomes positive, but if the number is not within parentheses, the exponent comes first so the answer becomes negative.






share|cite|improve this answer









$endgroup$









  • 2




    $begingroup$
    I remembered that exponents had priority. My confusion was whether $-1$ is a single token (as we'd put it in programming), a number; or two tokens, negation and a number. I got myself in a right confused state over it. But of course, for years I've been reading things like $-2^{32} - 1$ correctly. Off day. :-)
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:43










  • $begingroup$
    (sigh... $-2^{32} + 1$ I mean...)
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:55






  • 2




    $begingroup$
    @T.J.Crowder - that confuses a lot of people! Thinking about it as a single token seems most natural at first, but you figured out in the question exactly why we don't do that: because we want $-x^2$ and $x^2$ to be different.
    $endgroup$
    – Deusovi
    Dec 5 '18 at 17:53
















1












$begingroup$

You’re confusing $(-1)^2$ with $-1^2$. Recall that exponents have the priority, so you get



$$-1^2 = -(1)^2 = -1cdot 1 = -1$$



On the other hand, for $(-1)^2$, you get



$$(-1)^2 = (-1)cdot(-1) = +1$$



The same idea applies to all negative numbers raised to an even power. If the whole negative number is in parentheses, your answer becomes positive, but if the number is not within parentheses, the exponent comes first so the answer becomes negative.






share|cite|improve this answer









$endgroup$









  • 2




    $begingroup$
    I remembered that exponents had priority. My confusion was whether $-1$ is a single token (as we'd put it in programming), a number; or two tokens, negation and a number. I got myself in a right confused state over it. But of course, for years I've been reading things like $-2^{32} - 1$ correctly. Off day. :-)
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:43










  • $begingroup$
    (sigh... $-2^{32} + 1$ I mean...)
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:55






  • 2




    $begingroup$
    @T.J.Crowder - that confuses a lot of people! Thinking about it as a single token seems most natural at first, but you figured out in the question exactly why we don't do that: because we want $-x^2$ and $x^2$ to be different.
    $endgroup$
    – Deusovi
    Dec 5 '18 at 17:53














1












1








1





$begingroup$

You’re confusing $(-1)^2$ with $-1^2$. Recall that exponents have the priority, so you get



$$-1^2 = -(1)^2 = -1cdot 1 = -1$$



On the other hand, for $(-1)^2$, you get



$$(-1)^2 = (-1)cdot(-1) = +1$$



The same idea applies to all negative numbers raised to an even power. If the whole negative number is in parentheses, your answer becomes positive, but if the number is not within parentheses, the exponent comes first so the answer becomes negative.






share|cite|improve this answer









$endgroup$



You’re confusing $(-1)^2$ with $-1^2$. Recall that exponents have the priority, so you get



$$-1^2 = -(1)^2 = -1cdot 1 = -1$$



On the other hand, for $(-1)^2$, you get



$$(-1)^2 = (-1)cdot(-1) = +1$$



The same idea applies to all negative numbers raised to an even power. If the whole negative number is in parentheses, your answer becomes positive, but if the number is not within parentheses, the exponent comes first so the answer becomes negative.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Dec 5 '18 at 15:35









KM101KM101

5,9361523




5,9361523








  • 2




    $begingroup$
    I remembered that exponents had priority. My confusion was whether $-1$ is a single token (as we'd put it in programming), a number; or two tokens, negation and a number. I got myself in a right confused state over it. But of course, for years I've been reading things like $-2^{32} - 1$ correctly. Off day. :-)
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:43










  • $begingroup$
    (sigh... $-2^{32} + 1$ I mean...)
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:55






  • 2




    $begingroup$
    @T.J.Crowder - that confuses a lot of people! Thinking about it as a single token seems most natural at first, but you figured out in the question exactly why we don't do that: because we want $-x^2$ and $x^2$ to be different.
    $endgroup$
    – Deusovi
    Dec 5 '18 at 17:53














  • 2




    $begingroup$
    I remembered that exponents had priority. My confusion was whether $-1$ is a single token (as we'd put it in programming), a number; or two tokens, negation and a number. I got myself in a right confused state over it. But of course, for years I've been reading things like $-2^{32} - 1$ correctly. Off day. :-)
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:43










  • $begingroup$
    (sigh... $-2^{32} + 1$ I mean...)
    $endgroup$
    – T.J. Crowder
    Dec 5 '18 at 15:55






  • 2




    $begingroup$
    @T.J.Crowder - that confuses a lot of people! Thinking about it as a single token seems most natural at first, but you figured out in the question exactly why we don't do that: because we want $-x^2$ and $x^2$ to be different.
    $endgroup$
    – Deusovi
    Dec 5 '18 at 17:53








2




2




$begingroup$
I remembered that exponents had priority. My confusion was whether $-1$ is a single token (as we'd put it in programming), a number; or two tokens, negation and a number. I got myself in a right confused state over it. But of course, for years I've been reading things like $-2^{32} - 1$ correctly. Off day. :-)
$endgroup$
– T.J. Crowder
Dec 5 '18 at 15:43




$begingroup$
I remembered that exponents had priority. My confusion was whether $-1$ is a single token (as we'd put it in programming), a number; or two tokens, negation and a number. I got myself in a right confused state over it. But of course, for years I've been reading things like $-2^{32} - 1$ correctly. Off day. :-)
$endgroup$
– T.J. Crowder
Dec 5 '18 at 15:43












$begingroup$
(sigh... $-2^{32} + 1$ I mean...)
$endgroup$
– T.J. Crowder
Dec 5 '18 at 15:55




$begingroup$
(sigh... $-2^{32} + 1$ I mean...)
$endgroup$
– T.J. Crowder
Dec 5 '18 at 15:55




2




2




$begingroup$
@T.J.Crowder - that confuses a lot of people! Thinking about it as a single token seems most natural at first, but you figured out in the question exactly why we don't do that: because we want $-x^2$ and $x^2$ to be different.
$endgroup$
– Deusovi
Dec 5 '18 at 17:53




$begingroup$
@T.J.Crowder - that confuses a lot of people! Thinking about it as a single token seems most natural at first, but you figured out in the question exactly why we don't do that: because we want $-x^2$ and $x^2$ to be different.
$endgroup$
– Deusovi
Dec 5 '18 at 17:53


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3027197%2fincredibly-basic-notation-question-is-12-1-or-1-how-about-x2-where-x%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wiesbaden

Marschland

Dieringhausen