Jump to content

Wikipedia:Reference desk/Mathematics

From Wikipedia, the free encyclopedia
Welcome to the mathematics section
of the Wikipedia reference desk.
Select a section:
Want a faster answer?

Main page: Help searching Wikipedia

   

How can I get my question answered?

  • Select the section of the desk that best fits the general topic of your question (see the navigation column to the right).
  • Post your question to only one section, providing a short header that gives the topic of your question.
  • Type '~~~~' (that is, four tilde characters) at the end – this signs and dates your contribution so we know who wrote what and when.
  • Don't post personal contact information – it will be removed. Any answers will be provided here.
  • Please be as specific as possible, and include all relevant context – the usefulness of answers may depend on the context.
  • Note:
    • We don't answer (and may remove) questions that require medical diagnosis or legal advice.
    • We don't answer requests for opinions, predictions or debate.
    • We don't do your homework for you, though we'll help you past the stuck point.
    • We don't conduct original research or provide a free source of ideas, but we'll help you find information you need.



How do I answer a question?

Main page: Wikipedia:Reference desk/Guidelines

  • The best answers address the question directly, and back up facts with wikilinks and links to sources. Do not edit others' comments and do not give any medical or legal advice.
See also:


March 30

[edit]

0^0 (cont'd!)

[edit]

I have read the previous discussions on the definition of . The controversy arises solely because the limit does not exist... but does it matter that it doesn't exist? What's wrong with simply defining and acknowledging that the function is discontinuous at ? 101.119.129.156 (talk) 13:40, 30 March 2025 (UTC)[reply]

Maybe it is because mathematicians like to be purists. Although typical real-world problems consider , there are theoretical systems where the limit exists but has a different value. 101.119.129.156 (talk) 14:00, 30 March 2025 (UTC)[reply]

Continuity matters because operations on real numbers require it. Consider the expression π√2. You can't say "Add π to itself √2 times" because that's nonsense. Instead you have to build up the definition from integers to rationals, then from rationals to real numbers. In detail, first define r⋅n as r added to itself n times; this can be done inductively: r⋅0 = 0, r⋅(n+1) = r⋅n + r. Then define r⋅(a/b) when a and b are integers, as the solution to p⋅b=r⋅a. Finally define x⋅y as the limit of (ai/bi)(ci/di) where ai/bi has limit x and ci/di has limit y. But without knowing that r⋅s is a continuous function of r and s you can't guarantee that your limiting value of (ai/bi)(ci/di) doesn't depend on which sequences ai/bi and ci/di you're using. Multiplication is continuous so there is no such problem extending the definition from rationals to reals. But exponentiation is not continuous so there is a problem. You have to restrict the domain of the operation so that this issue does not arise. And this has been done to extend the definition as much as possible, though this becomes awkward to state concisely. If you restrict r to positive values then rs is continuous and can be extended to xy for real x and y as long as x is positive. If n is a non-negative integer then rn is continuous for all r, so xn can be defined for all real x. Because rs is not a continuous function in the neighborhood of r=0, s=0, the expression 00 is problematic when considered as the case r=0, s=0 of the expression rs. It's not that mathematicians like to be purists, but that they like to have expressions mean something definite and not be a matter of opinion. For more detail, the relevant article is Zero to the power of zero. --RDBury (talk) 20:22, 30 March 2025 (UTC)[reply]
Here is a concrete example. Take the problem of determining
and consider the rule
This seems reasonable enough. Now apply this to
In this case so the rule suggests that the answer is But the actual limit is
When the exponent is restricted to the domain of the natural numbers, the notion of it having a limit does not apply, so then there is no ground for considering an indeterminate form, and defining without restriction is perfectly reasonable. With that convention, defining a Taylor series by means the same as, but is more convenient than,  ​‑‑Lambiam 21:04, 30 March 2025 (UTC)[reply]

To be honest, I rather agree with the OP (and Don Knuth, p. 6). There is nothing wrong with it, and it is a perfectly defensible convention. For me, just as you say, by definition (so that the binomial theorem works without special cases), and you just need to be aware that is not continuous at (0,0). It is also just like any empty product: you are multiplying no numbers.
Also I am not aware of any common reason to define as anything specific other than 1, if you define it at all. Double sharp (talk) 12:52, 31 March 2025 (UTC)[reply]

I think RDBury's answer is a good one. Saying " in the integers, therefore it should have that definition in any context" is a bit like saying " in the trivial group, therefore it should have that definition in any context". Unless I'm missing something. 101.119.121.180 (talk) 13:46, 31 March 2025 (UTC)[reply]

Well , whereas the trivial group doesn't have that going for it. And you're implicitly saying if you want to write polynomials or power series in the form and write . Not to mention if you want the binomial theorem to hold without awkward edge cases, e.g. . Double sharp (talk) 13:57, 31 March 2025 (UTC)[reply]
Uh, I'm pretty sure the trivial group is a subset of . 101.119.121.180 (talk) 14:04, 31 March 2025 (UTC)[reply]
True. What I meant (but failed hilariously at saying) is that if you think of the trivial group as under multiplication, then the multiplications are incompatible (since you can't sensibly define in ). Whereas saying in doesn't really break exponentiation in : sure it becomes discontinuous, but anything you do at will make it so, so why not just use the convenient value? Double sharp (talk) 14:06, 31 March 2025 (UTC)[reply]
RDBury's answer is a good one like that person said. There is absolutely no good reason to extend the natural number/set theory version to real numbers, it just causes problems. In analysis it is much better to say something does not have a limit or to calculate a limit than to mandate some discontinuous value it's just asking for trouble. NadVolum (talk) 17:14, 31 March 2025 (UTC)[reply]
I guess this is where we are going to disagree, then. I think, following Knuth, that the binomial theorem and being able to write power series compactly are important enough for analysis that it's better to mandate the discontinuous value : the alternative (having to put special cases in the binomial theorem) just seems even worse.
Anyway, if we can deal in analysis with step functions with their discontinuities, then what is wrong with having a discontinuous exponential function? It is not as if can be given any value that makes continuous. We can, however, choose to give it the one value that makes sense in some context. Double sharp (talk) 18:04, 31 March 2025 (UTC)[reply]
The polynomial case has a natural-number exponent. It does make sense to define the function with a real base and a natural-number exponent in such a way that . What does not have such a clear motivation is to define the function with real base and real exponent in the case of . --Trovatore (talk) 18:12, 31 March 2025 (UTC)[reply]
Well, then let's just go with the binomial theorem. That certainly allows the exponent to be real. Or indeed, complex. Surely we would not claim that should be left undefined just because we can't speak of continuity here unless we go straight to ? Or should we start leaving undefined because the real exponential is conceptually , and is undefined? Or are we going to start worrying about , since there we don't even have the discrete exponential to fall back to? I dunno, I think it's most convenient just to expand the domain of the exponential as far as possible by saying that equals 0 when (by limiting arguments), and that as a special case. I cannot think of a situation when these values are "wrong" in the sense that it gets harder to state theorems if you use them; you just need to be aware of the discontinuity. Double sharp (talk) 18:13, 31 March 2025 (UTC)[reply]
I am not sure what instance of the binomial theorem you have in mind. Yes, the domain of the exponential function as a partial function from , , is . There is really no particular use I am aware of to extend the function past that. --Trovatore (talk) 20:08, 31 March 2025 (UTC)[reply]
@Trovatore: Following Knuth, I mean this: . All the terms are clearly 0 except the first, which is . It is for this kind of thing that I think it's worth defining explicitly: refusing to do so means you need to pedantically exclude special cases for the binomial theorem. As for , maybe it is indeed not something you'd ever really need, but the answer is both obvious and doesn't break anything. So, really, why not? Double sharp (talk) 20:14, 31 March 2025 (UTC)[reply]
The first term there is , not . --Trovatore (talk) 22:59, 31 March 2025 (UTC)[reply]
Nothing is 'wrong' with that convention: you are free to write it down and use it all you like. You can even fire up Python, type print(0 ** 0), and get the answer 1; or type print(0.0 ** 0.0), and get the answer 1.0. But it does not make sense in all contexts. For that reason, the IEEE 754 rules allow three different kinds of exponentiation, which make different choices here: [1], [2]. --Amble (talk) 19:44, 31 March 2025 (UTC)[reply]

March 31

[edit]

Source for calculation of singular vectors

[edit]

I am looking for a step-by-step guide to calculating singular vectors. This is what I have so far: Given a matrix A, which is not square, calculate M as A matrix multiplied to A' (A transposed). It can be A'A or AA'. Does not matter for the final result. Calculate the eigenvectors of M as e1, e2, etc... ??? You have singular vectors. In attempting to fill in the ??? part, every web search shoves me to singular value decomposition. I am not attempting to calculate a singular value decomposition. I am trying to calculate the singular vectors of the original non-square matrix A.

For an example. I am attempting to calculate the singular vectors for the four data sets from Anscombe's quartet. For set 1, when I multiply A'A, I get the matrix [[1001, 797.6], [797.6, 660.17]]. I did the math and got the two eigenvalue,vector pairs: 1646.19 [1.24, 1] and 14.98 [-0.81,1]. I don't know what the singular vectors are. My understanding is the singular values are the square roots of the eigenvalues. So, the square root of 1646 is 40.57 and the square root of 14.98 is 3.87. But, I want the singular vectors, not the singular values. 68.187.174.155 (talk) 16:53, 31 March 2025 (UTC)[reply]

April 1

[edit]