Why Is Maple Giving Incorrect Answers for Summations?

  • Thread starter Thread starter stripes
  • Start date Start date
  • Tags Tags
    Maple Summation
Click For Summary

Discussion Overview

The discussion revolves around the use of Maple software for verifying mathematical summations and the unexpected results it produces. Participants explore issues related to the representation of mathematical expressions, particularly in expanded versus factored forms, and the behavior of the evalb function in Maple.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant reports that Maple provides an unexpected expanded form for the summation of k^3, questioning why the output seems incorrect.
  • Another participant suggests using the factor command to obtain the correct answer, implying that Maple's output can vary based on the command used.
  • A participant discusses the evaluation of the series sum of x^k and notes that using evalb returns false for what they believe are equivalent expressions, raising concerns about Maple's handling of simplifications.
  • Some participants highlight that mathematical expressions can be represented in multiple forms, suggesting that the differences in output do not necessarily indicate errors.
  • There is a suggestion to seek further clarification on the evalb function's behavior in a dedicated forum for software-related questions.

Areas of Agreement / Disagreement

Participants express differing views on the outputs generated by Maple, particularly regarding the equivalence of expanded and factored forms of expressions. There is no consensus on why evalb returns false for seemingly equivalent expressions, indicating ongoing uncertainty and exploration of the topic.

Contextual Notes

Participants note that the behavior of Maple may depend on the simplification of expressions and that issues may arise when comparing different forms of mathematical expressions. The discussion reflects a lack of resolution regarding the specific reasons for the software's outputs.

stripes
Messages
262
Reaction score
0

Homework Statement



Verify the following summations using Maple (see image).

Homework Equations



None

The Attempt at a Solution



For the first one, I enter

Code:
sum(k^3, k=1..n);

in Maple, and the result is

1/4*(n+1)^4-1/2*(n+1)^3+1/4*(n+1)^2,

which is definitely not the answer. Why is Maple giving me these weird and incorrect answers? The question is rather simple as I am just supposed to verify these summations using a computer, but for some reason, my computer seems to be complicating things.
 

Attachments

  • sum.jpg
    sum.jpg
    7.3 KB · Views: 499
Last edited:
Physics news on Phys.org
Okay, so it seems if I type

Code:
factor(sum(k^3, k=1..n));
,

I get the correct answer. What gives?
 
Similarly,

Code:
sum(x^k, k=0..infinity);
1
- -----
x - 1

which = 1/(1-x).

But when I type

Code:
evalb(-1/(x-1) = 1/(1-x));

I obtain false. But they are equal! Am I completely missing something with Maple here?
 
Hi stripes. Are you aware that there is usually more than one way to write any given mathematical expression, for example an expanded and a factorized form.

Look at a simple example.
[tex]\frac{1}{x} - \frac{1}{x+1} = \frac{1}{x(x+1)}[/tex]
Writing it one way as opposed to the other makes it neither weird nor wrong.
 
uart said:
Hi stripes. Are you aware that there is usually more than one way to write any given mathematical expression, for example an expanded and a factorized form.

Look at a simple example.
[tex]\frac{1}{x} - \frac{1}{x+1} = \frac{1}{x(x+1)}[/tex]
Writing it one way as opposed to the other makes it neither weird nor wrong.

Oh, I understand that completely. I think most people on this forum do. What is puzzling me is that when I am given the expanded form, I don't immediately recognize it as being the correct answer because I am not quite a mathematician yet. So when I try to see if the expanded expression is equal to the factored expression, by using the evalb() operator in Maple, I get "false". I think one of my posts explained that. That's what's puzzling.

In other words, Maple is telling me 1/(1-x) =/= -1/(x-1), but they are, in fact, equal. This is my issue.
 
Ok I see. I thought it was just the factorized versus expanded form of the expression that was confusing you.

I don't know why "evalb" returns false like that on expressions that seem obviously equivalent. Maybe if you post a question on that problem in the "Maths and Science Software" forum someone there may know. :smile:
 
For the sum question, I have found that Maple tends to give expanded versions for some reason; to simplify that, just use the factor command. As far as the evalb thing, I've been messing around with Maple to try to figure it out, then looked on the website page for the evalb command, and there seems to be an issue of returning false for true equations when an equation is not simplified. This information can be found here.
 

Similar threads

Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
7
Views
2K
Replies
2
Views
2K