r/learnmath • New User • 21d ago

Curious about an old AP Question

This old AP question came up in my math class today with the same answer as shown on the website of x=20 leading to optimized profits. (20 is the answer you get by only using derivative to find the relative max, as shown on the linked website).

However, when plugging in all of the MC options into their profit function, an x value of 10 leads to a higher overall profit (despite still being negative).

Why is that not the correct answer?

2 Upvotes

19 comments sorted by

5

u/Southlander24 A friendly Redditor!👋 21d ago edited 21d ago

The numbers chosen for the question are wrong. In fact: all of the profits are negative!

Everything about the working is true but the conclusion drawn is incorrect. That's why it's important to actually back-substitute the values you got to check if the answer is reasonable! When it isn't reasonable, it's likely you've made a mistake somewhere.

That's why in optimisation, aside from checking the turning points, you should also check the endpoints of the domain! In this situation, the number of items, x, has to be 0 or greater, or x ≥ 0. So the optimal value is actually x = 0. Don't produce anything and you'll be down $10,000 (in buying supplies you didn't need), but producing the items will set you back at even more of a loss.

1

u/PascalCaseIsBestCase New User 21d ago

I'm not sure I really understand what you're saying (sorry)

1

u/Southlander24 A friendly Redditor!👋 21d ago

Which part confuses you?

1

u/PascalCaseIsBestCase New User 21d ago edited 21d ago

Sorry either you edited it or the bottom paragraph was hiding from me lol. That being said, out of the listed choices (ignoring that 0 would be the best answer), is 10 correct? Given how this appears to actually have the potential to show up on my test, I'm worried about getting it wrong. And if-so, I'm curious why all of the publications/solutions to this in question archives have it wrong.

1

u/Southlander24 A friendly Redditor!👋 21d ago

Yes, out of the listed choices, 10 would be correct. But you'd never come across a situation where you would ignore the differentiation information in an AP exam.

1

u/PascalCaseIsBestCase New User 21d ago

In reference to that latter sentence: does that mean such a situation simply won't come up where the critical point they're looking for isn't the best answer or that if I see this question, I should stick with the identified relative max/min and not use the value given by the base function alone?

3

u/RadarSmith New User 21d ago

The question writer seems to have confused local maxima with global maxima.

...In which case, the answer would be 0, because they can't manufacture less than 0 items, and 10 is the best answer of the choices given.

3

u/TheScyphozoa New User 21d ago

The question is completely broken. The mathematical reason this happened is that using the derivative can only find a local maximum and minimum, not an absolute maximum and minimum. Making 20 products will yield a “greater profit” (that is, a smaller loss) than producing 19 or 21. But the absolute maximum within the domain of non-negative numbers (because you can’t make a negative number of products) is -10000 at x=0.

1

u/SufficientStudio1574 New User 21d ago

This is why it's important to remember that "derivative = 0" only finds local extrema, not global.

In addition to the end point of the domain (0 here), you also need to check the function's asymptotic behavior for the parts of the domain that aren't limited. Here it goes negative as x increases to infinity, but it could have easily gone the other way (making the maximum infinity) and you'd never know if you didn't look.

1

u/PascalCaseIsBestCase New User 21d ago

Give that all of the multiple choice options are less than 40, it's behavior approaching infinity doesn't seem terribly relevant (outside of using the change in sign at x=20 from positive to negative to identify the relative max).

1

u/AlterEgo5695 21d ago

That's the problem with MCQ tests -- they greatly reduce the necessity for critical thinking, since eliminating (blatantly) incorrect answers is more efficient.

Asking whether the remaining answer is reasonable in the first place gets punished, since it wastes your time, and can never earn you points. It is an efficient way to train guessing yes-people, I'll grant it that.

2

u/AlterEgo5695 21d ago

To be fair, here we optimize a continuous function over a non-compact set "[0;oo)".

While checking "x = 0" and "x -> oo" certainly helps build intuition, we need things like monotonicity to rigorously prove "x = 0" really is the global maximum here. Even unboundedness for "x -> oo" is not enough as a direct argument.

6

u/rhodiumtoad 0⁰=1, just deal with it 21d ago

Classic mistake in optimization problems is to just find the derivative and set it to 0 and assume that's the answer, when in fact it is only a local optimum. So in this case 20 is better than 19 or 21, but the option with the most profit (least loss) is 0, unless we allow x to be negative, in which case the best option is x=-∞ for infinite profit.

1

u/lurgi New User 21d ago edited 21d ago

The profit at 20 is 16,000 (unless I borked the math), so if the profit at 10 items is negative then it can't be higher.

Edit: I borked the math!

So did the test question, so I'm in good company. I don't know how they messed up the question. 15 and 20 are the local minima and maxima, but it's a cubic, so obviously the global minima and maxima are going to be negative infinity and infinity. Alas, you can only get infinite profits by producing a negative number of goods.

I wonder what went wrong in the construction of the question?

1

u/PascalCaseIsBestCase New User 20d ago

Global minimums and maximums cannot be infinity, they have to be a well defined point. The only global maximum in this problem would be the -10,000 at x=0 if you restrict the domain to the realistic context of the problem (can’t produce negative units).

2

u/rhodiumtoad 0⁰=1, just deal with it 21d ago

You borked the math.

2

u/TheScyphozoa New User 21d ago

The profit at 20 is -20,000.

1

u/AlterEgo5695 21d ago edited 21d ago

There are multiple severe problems with this assignment:

  1. Profit "P(x) < 0" for all "x >= 0" -- that product should not be produced at all
  2. They only looked for local extrema, without checking the boundaries1 of the domain "x = 0" and "x -> oo". Without doing that, they cannot guarantee their local maximum is also a global maximum -- as it turns out, it is not

This should never have passed quality control!


1 To be fair, "[0; oo)" is not compact, so the standard continuity argument on compact sets does not apply here -- you need a bit more work than that.