2025 AMC 12A Problems/Problem 25
Problem
Polynomials
and
each have degree
and leading coefficient
, and their roots are all elements of
. The function
has the property that there exist real numbers
such that the set of all real numbers
such that
consists of the closed interval
together with the open interval
. How many ordered pairs of polynomials
are possible?
Why MAA initially got this wrong
If you look at solution 2, they overcounted the second case, essentially saying that
had
choices because it could equal
or
, so the intended answer was
This would be correct if the problem was asking for the number of pairs of polynomials. But there is actually only
choice for
because no matter what variable we choose
to equal, both polynomial combinations result in the same function. So the correct answer was
functions.
Desmos graph showing how these functions are exactly the same: https://www.desmos.com/calculator/w6sk67ly1i
Solution 1 (Got Wrong)
None of the answer choices on the official test (which asked for the number of possible functions
) were correct, but choice E would be correct if this problem asked for the number of pairs of functions
.
Let
. Since
on
but not for values slightly less than
or slightly more than
,
at
and
. Therefore,
for some
.
Since
on
but not at
or
,
is not continuous at
or
. Therefore,
must be undefined at
and
, that is,
at
and
. So
for some
.
Therefore,
. Notice that
only on
and
. Therefore,
must be nonnegative for all
. This only happens if
.
Thus
, which is the same as
except that it is undefined at
. Thus
satisfies the desired property as long as
.
Note that each quintuple
defines a unique pair of functions
.
If
,
can be
,
, or
.
If
,
can be
or
.
If
,
can be
,
, or
.
If
,
can be
or
.
If
,
can be
,
, or
.
Therefore, there are
possible pairs of functions
.
-j314andrews
Solution 2 (credit to Sohil Rathi's video solution, pi_is_3.14 / OmegaLearn)
This is the solution to the original problem, which asked for the number of possible functions, not pairs of polynomials.
First, consider the problem if it were talking about two second degree polynomials. We can see that the function
by itself satisfies the condition of dropping below the x axis over
Now, we need to add one extra
term each to the numerator and denominator.
Case 1:
for some other value
not equal to
or
Note that
cannot be between
and
or between
and
because this would create a hole in the interval. So the only possibilities are:
This gives us
valid functions so far.
Case 2:
where
is
or
If
equals
or
the resulting function is essentially equivalent to
because a hole would already exist, so we can safely cancel the
terms. It doesn't matter whether we choose
to equal
or
because the function will still be the same. There are
ways to select the values for
and
and
way to choose any variable for
to equal, giving
valid functions for this case.
The correct answer is
functions.
~grogg007, original solution by OmegaLearn/ Sohil Rathi
i tried my best to show what I think was Sohil's thought process, but please feel free to edit this if you can explain it better :)
Solution 3
Solution 1 by user j314andrews is incomplete; Solution 2 by user grogg007 commits a serious logical error because it only provides functions that satisfy the requirements, without showing that no other functions do. Other places like [1] gives a good solution, but unfortunately it requires calculus. Here I am trying to provide a good solution that does not require calculus.
Let
and
be the set of the real roots of
and
, respectively. Then, outside of the intervals
and
,
except when
, where
is undefined.
For any function
, define a real number
as a toggling point for
if there exists a sequence
, with the understanding that
and
, such that
for some
,
is of the same sign (either always positive or always negative) on each interval
, for
, and
has opposite signs on
and
.
We call these open intervals
(
) the bands of
.
The polynomial
has no toggling point outside of
, and
has no toggling point outside of
. Now in our problem,
has exactly 4 toggling points:
. Our task is to see how these four points are related to the sets
and
.
Lemma. At each toggling point
for
,
- either
or
(or both); - if the multiplicities of the root
of
and
are
and
, respectively, then
is odd.
Proof. (1) if both
and
are nonzero, then
belongs to a band of
and a band of
. Taking the intersection between these two bands, we get an open interval on which
has the same sign as
. Thus
cannot be a toggling point of
.
(2) If
is odd, there are real numbers
, with
, such that
has the same sign on
and has the opposite sign on
. If
is even, there are real numbers
, with
, such that
has the same sign on
and on
. Similar statements can be made of
, having intervals
and
so that
is of the same sign on
, and of either a different or the same sign on
, depending on the parity of
. If both
and
are odd or both
and
are even, then
is of the same sign on the interval
and
, so
cannot be a toggling point for
.
Solution to the problem.
Since
is a toggling point for
, either
or
, or both. But since
is defined, we have
, so
. The same can be said of
, so
. The multiplicities of
and
must be
. Otherwise, point (2) of the Lemma would require the multiplicity of one of them to be at least
, but
is only cubic.
is a toggling point for
, so either
or
, or both. But if
, we have
, violating the condition. So
. Similarly,
. Concerning their multiplicities, point (2) of the Lemma gives us three cases, given that
is only cubic:
- (a)
is a single root of
,
,
is a double root of
and a single root of
; - (b) switching the roles of
and
; - (c) both
and
are single roots of
, and
has a single root
other than
and
.
Case (a) provides functions in the form of
. There are 5 of them because there are 5 ways to choose
from the set
.
Case (b) provides functions in the form of
, but they are the same as those provided in case (a). To ensure this, notice that the two expressions have the same domain and they are equal for every
in their domains.
Case (c) requires that
, because if
then
becomes an extra toggling point for
. So this case provides functions in the form of
. But since
is undefined, we need to make sure that
does not fall into
or
. So
can be
. In all these cases, we also have
, satisfying the conditions. That's 3 more functions.
So the total number of functions is
.
Lightest (talk) 22:51, 10 November 2025 (EST)
Video Solution 1 by OmegaLearn
See Also
| 2025 AMC 12A (Problems • Answer Key • Resources) | |
| Preceded by Problem 24 |
Followed by Last Problem |
| 1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | |
| All AMC 12 Problems and Solutions | |
These problems are copyrighted © by the Mathematical Association of America.