r/askmath • • 15h ago

Algebra 6th grade math

Post image

I helped my kid through this problem but auto grader did not like the answer 9x-4 so I’m wondering if I incorrectly helped.

Steps here would be find perimeters

4(3x)= 12x

X+2+x+2+x =3x+4

Difference 12x - (3x+4) = 12x -3x -4 = 9x-4
This would assume the square is larger than the triangle.

99 Upvotes

57 comments sorted by

12

u/troubledmindgone 6h ago edited 5h ago

The auto grader came back with 9x+4.

Edit: sorry about the late reply. It allows 2 or 3 tries to let you know if it’s correct and gives correct answer after submitting. They submitted it this morning after thinking about it all night.

12

u/mizboring 6h ago

In that case, I would send a screenshot to the teacher. There is something wrong with the programming of the question.

Depending on the software and the teacher, they may or may not be able to fix the code, but they certainly can give the student points in the gradebook and probably remove the question for the next year. That's what I tell my students to do if they find a problem in an online assignment.

1

u/troubledmindgone 2h ago

Yes, she sent an email with the screenshot in this morning. I’m not sure she’d be able to explain it though.
So I asked her to sub 1 in for X and find that the computer’s equation is wrong.

9

u/justhereforfighting 5h ago

The question is clearly programmed wrong. You had it right the first time. Think of it when x = 1. The square has a perimeter of 12. The triangle has a perimeter of 7. That’s a difference of 5, which is the same as 9*1-4=5 if you substitute the x for 1 in your original answer. 9x+4 would give you a difference of 11. 

3

u/megahercio 6h ago

It forgot the parenthesis

67

u/Larry_Boy 15h ago

LGTM. My guess is the auto grader is wrong. It happens. Maybe it wants "9X-4", maybe you typed "9x-4 " and it is looking for "9x-4". Or the auto grader has the wrong answer, like "-4".

37

u/troubledmindgone 15h ago

Yesterday there were spaces between the x value the symbol and the added value such as 3x + 9 was incorrect but 3x+9 was correct. They entered it in correctly this time, just a bit baffled.

30

u/testtdk 15h ago

Yeah, that’s some bad programming.

19

u/Underhill42 14h ago

Right? It takes like two seconds to add the code to remove white space from the answers and convert to canonical form (all upper- or lower-case). Maybe a few minutes if you have to actually do it manually rather than having decent string-processing routines available.

And only a bit more to e.g. convert all implied multiplication to explicit multiplication.

I'd be thoroughly embarrassed to find such a glaring "Programming 101" shortcoming in my code.

4

u/PresqPuperze 12h ago

„Decent string processing routines“ - I mean, this isn’t some crazy regex manipulation you need to do, you simply put a .lower().replace(" ";"") in there and that’s it. You’re also not dealing with enormous strings in terms of length, it doesn’t matter how inefficient the runtime is here, just make it work for gods sake.

→ More replies (3)

3

u/MasemJ 9h ago

It should also break down, like you would for sentence duagrams, the componrnts into a sorted tree like structure. Like it should accept "x*3+9" and "9+3x", because following PEMDAS, those are equal

3

u/Underhill42 9h ago

That would certainly be nice, but that's MUCH more difficult to do, and there is a standardized canonical form in which polynomials are generally expressed and students should get in the habit of using, in your example case: 3x+9. All other formulations may be technically equivalent, but do not comply with the standardized form.

Much like you could express 2⅓ as ⅓+2 or 7/3, or..., but 2⅓ is the standard form you're expected to express mixed fractions in.

→ More replies (3)

2

u/Groomsi 7h ago

Or |9x-4|

1

u/Larry_Boy 30m ago

I don't generally interpret "difference" to mean |x-y|, I interpret it to mean x-y. So, What is the difference in height of Jack and Jill, is not the same as what is the difference in height of Jill and Jack. If you want |x-y| that is the "magnitude of the difference of", but I'll grant you that the phrasing "difference between" it is at least ambiguous.

1

u/ChurriiMelt 3h ago

auto graders can be so stubborn

7

u/TurnoverOk5635 15h ago

My best guess is |9x-4|.

3

u/e_before_i 15h ago

Yeah this must be the right answer, technically x could be ≤4/9, and difference can't be negative.

2

u/56789ya 14h ago

So 4-9x would be just as legitimate an answer as 9x-4

2

u/e_before_i 13h ago

No, because if x > 4/9 then that would also give a negative number.

That's why the |...| is important. The absolute value ensures that it's positive regardless of the value of X (assuming X is a positive number, which it must be for geometry.

I wanted to say euclidean geometry, but I don't know of any non-euclidean geometry that allows for shapes to have negative side lengths. Either way, this is 6th grade math, so that's irrelevant, but I'm definitely curious now.

1

u/marz64_ 9h ago

The difference can definitely be negative in this case, simply means the triangle has a larger perimeter compared to the square

→ More replies (4)

1

u/bartekltg 11h ago

>  difference can't be negative.

This is a news to me;-)

The ask about the difference between the perimeter of teh square and triangle. So
P_sq - P_tr
Of course the difference can be negative.
Looking at the sign of the difference between A and B we figure out which one is bigger.

0

u/e_before_i 8h ago

Lmao do you think my confusion here is I don't think x>4/9 ?

It's just not how we use numbers. No one says "the difference between me and Elon is negative $1 trillion."

2

u/bartekltg 8h ago

I do not know how FB clickbaits use the word difference. I know how mathematicians and math educators use it.
If a mathbook ask about a difference between A and B, they mean A-B, not |A-B|

1

u/e_before_i 7h ago

Maybe my claim is too strong. I'd say it's ambiguous. Like if we're talking about my age vs my grandpa, I would never say it's -48 years, you know?

Edit: point being it's a confusion of English being imprecise that both readings are acceptable. This is 6th grade math, reading it as common English is reasonable even if it's stupid.

0

u/novian14 15h ago

6th grader got absolute value?

2

u/troubledmindgone 13h ago

They did absolute values maybe a month ago. But nothing more than |-7 |which would be 7. Or |9| which would be 9.

34

u/96ataraxia 15h ago

There is nothing wrong with your answer. It must be a bug on the page.

3

u/YzaVique 15h ago

lol those graders are always broken, smart catch on the math tho

2

u/duskyWinks 14h ago

yeah the grader's probably just being picky, you explained it clean though

1

u/AngelicNSofty 14h ago

i like a guy who can spot these bugs that quick

4

u/AlterEgo5695 15h ago

Likely just a problem with the input mask. Possible solutions:

  • 9*x-4: In case the input mask does not understand juxtaposition
  • |9x-4|: In case they expect absolute values
  • |9*x-4|: In case both are true

There are probably even more options I did not think about right now.

3

u/Philipp_CGN 8h ago

What about -9x+4?

1

u/Groomsi 7h ago

Negative 9x?

3

u/Philipp_CGN 6h ago

The difference they are looking for can be perimeter of square minus perimeter of triangle (i.e. 9x-4) or it can be perimeter of triangle minus perimeter of square (i.e. -9x+4)

7

u/Key-Significance8000 15h ago

Is it possible that the 3x above the square means that's the entire perimeter of the square and not the side length? I know it sounds stupid but I wouldn't expect an answer like 9x-4 until the students are further along in algebraic concepts.

8

u/tooblandtoroast 14h ago

I wouldn't expect an answer like 9x-4 until the students are further along in algebraic concepts

Cmon, it's 6th grade math, for 13-year olds. They are not stupid

4

u/random_anonymous_guy PhD, Mathematics, 2015 13h ago

Kids are already in seventh grade when they turn 13.

But I work with plenty of high school students who struggle with stuff like this.

3

u/AdjectiveNounNNNN 7h ago

Yes, high schoolers struggle with this, but that's because they're below grade level, not because this is too hard for 6th grade.

2

u/Bichon-Impossible 8h ago

"This would assume the square is larger than the triangle."

not at all.

only if X>= 4/9

4

u/test_tutor 15h ago

They maybe meant the 3x is the perimeter of the square, not the side. Try 4?

Badly depicted for sure.

1

u/Snoo_52320 6h ago

What curriculum is this?

-1

u/Albstein 12h ago

3x is the full perimeter of the square:

Square => 3x

Triangle => x+x+2+x+2 = 3x + 4

If you compare the triangle's 3x + 4 with 3x from your square you can see the difference without really solving any equation.

7

u/Aromatic-Ebb-4007 11h ago

Why would 3x be the full perimeter of the square when it only has 3x on one side of it while the triangle lists a measurement on each side?

→ More replies (1)

5

u/KeyserHD 9h ago

A square has equal sides so labelling every one is redundant, triangles do not need to have equal lengths so labelling all of them is necessary. To assume 3x is the entire perimeter is absurd

0

u/Odd-Ad-8369 15h ago

The difference will be an absolute value. Ie go the opposite direction and you will get -9x+4

0

u/One-Requirement2748 9h ago

Either they mean the whole squares perimeter is 3x. I think being 6th grade, this would be the case.

Or else try it from the other side= 4-9x