Learn the idea. Try it yourself.

Read the explanation or try 6 questions with hints. Free, untimed and no sign-in needed.

Read the lessonStart practising →

Original preparation lesson: rational inequalities and integer solutions for students preparing for Pakistan’s NMTC screening route. Every exercise and explanation here was written for this lesson. These are preparation tasks, not official past-paper questions or a complete mock paper.

Your goal: find every allowed solution of a rational inequality, explain why no interval has been missed, and count the integer solutions without restoring a forbidden value.

Before you start: you should be able to multiply signed numbers, expand and factor simple quadratics, and reverse an inequality when dividing by a negative number. Review inequality rules and signs and algebraic identities and factorisation if those steps are uncertain. We will build the sign-chart and integer-counting methods here.

Study route: allow about 40–60 minutes for a first core pass through the starting checks, Examples 1–3 with their nearby practice, and Questions 1–6. This is a flexible study estimate; take longer when a prerequisite needs repair. Begin with Examples 1–2, then continue when you can explain every open or closed endpoint. Give Example 4, the Stretch questions and the proof extensions a separate sitting. The levels describe this lesson’s progression; they are not official contest classifications.

Three starting checks

RI-D1. What happens to the comparison?

Solve −3x<12-3x < 12.

Answer and repair route

Dividing by −3-3 reverses the comparison, so x>−4x > -4. For example,x=0, x = 0 works in both statements, while x=−5x = -5 works in neither. The boundary −4-4 is excluded because the inequality is strict.

If you kept the direction unchanged, revisit multiplication and division by negative numbers before moving on.

RI-D2. What must stay excluded?

Factor x2−x−6x^{2} - x - 6, then state which real values are forbidden in x2−x−6x−3\frac{x^{2} - x - 6}{x - 3}.

Answer and repair route

We need two numbers with product −6-6 and sum −1-1: −3-3 and 2. Therefore x2−x−6=(x−3)(x+2)x^{2} - x - 6 = (x - 3)(x + 2). Expanding checks the identity. The original denominator is zero at x=3x = 3, so that value is forbidden. The expression equals x+2x + 2 only for x≠3x \ne 3.

If the factorisation was difficult, review factoring and expanding back. If you allowed x=3x = 3, keep a separate domain line beside every calculation in this lesson.

RI-D3. Which integers fit?

List the integers n for which −52<n≤3-\frac{5}{2} < n \le 3.

Answer and repair route

The first integer greater than −2.5-2.5 is −2-2. The complete list is −2,−1,0,1,2,3-2, -1, 0, 1, 2, 3: six integers. The interval length is 5.5, which is not the number of integers.

If the count was uncertain, draw the integers before using an endpoint formula. Floor and ceiling functions provide a further counting route, but no floor notation is required below.

The expression must exist before its sign can be tested

AA rational expression is a quotient of polynomials, such as x+2x−3\frac{x + 2}{x - 3}. “Rational” describes the form of the expression; x may be any real number unless a question requires an integer. A solution must make the original expression defined and the stated comparison true.

For x+2x−3\frac{x + 2}{x - 3}, the value x=3x = 3 is excluded because division by zero is undefined. At x=−2x = -2, the numerator is zero and the denominator is nonzero, so the fraction is zero. These two boundary points have different jobs: a numerator zero may be included in a non-strict inequality; a denominator zero is always excluded.

Cancellation does not change that rule. The expression (x−1)(x+5)x−1\frac{(x-1)(x+5)}{x-1} equals x+5x + 5 for x≠1x \ne 1, but its original value at x=1x = 1 does not exist. We may simplify the calculation, while retaining x≠1x \ne 1 in the domain. We will call such a retained exclusion a hole.

Why ordinary cross-multiplication can fail

Consider 1x−2>0\frac{1}{x - 2} > 0. Multiplying by x−2x - 2 without checking its sign would produce 1>01 > 0 and falsely suggest that every x≠2x \ne 2 works. But x=1x = 1 gives −1>0-1 > 0, which is false.

Instead, split the domain. If x>2x > 2, the denominator is positive, so the fraction is positive. If x<2x < 2, it is negative, so the fraction is negative. Hence exactly x>2x > 2 works. There is no x=2x = 2 case because the original expression is undefined there.

There is also a safe multiplication method. For real quantities P and Q with Q≠0Q \ne 0, the square Q2Q^{2} is strictly positive. Multiplying PQ≤0\frac{P}{Q} \le 0 by Q2Q^{2} preserves the direction and gives PQ≤0PQ \le 0. Conversely, dividing PQ≤0PQ \le 0 by the positive Q2Q^{2} recovers the original inequality. Thus the two comparisons are equivalent on the domain Q≠0Q \ne 0. A zero of Q might satisfy PQ≤0PQ \le 0, but it must still be rejected from the rational inequality.

For longer expressions, a sign chart usually avoids unnecessary expansion. First subtract one side from the other and combine the result into a single fraction compared with zero. Then factor and read its sign. The arithmetic identity used to combine fractions does not require their common denominator to be positive; multiplying an inequality by that denominator without reversing the comparison does.

A sign chart records complete cases

A factor x−ax - a is negative to the left of a and positive to its right. Between consecutive roots of the factored numerator and denominator, each linear factor keeps its sign, so their product or quotient keeps its sign. This explains why one sign calculation for each interval is enough. We are not guessing from a few unrelated test values.

  1. Record the original domain. Mark every denominator zero before cancellation.
  2. Move everything to one side. Write one fraction compared with zero and factor it.
  3. Mark the critical values in order. Include numerator zeros, denominator zeros and any retained holes.
  4. Determine the sign on every interval. Use factor signs or a convenient test value. Account for any negative constant factor.
  5. Check boundaries separately. Include an allowed numerator zero only for ≤ or ≥. Keep all original denominator zeros excluded.

We write [a,b)[a, b) for a≤x<ba \le x < b: the square bracket includes a, and the round bracket excludes b. The symbol ∪ joins solution pieces; {a}\{a\} means the single value a. At infinity we use a round bracket because infinity is not a real endpoint.

Worked example 1: a zero and a forbidden point

Solve x+2x−3≤0\frac{x + 2}{x - 3} \le 0 over the real numbers.

Planning hint 1 for RI-E1

Find where the numerator is zero and where the denominator is zero. They are different kinds of boundary.

Planning hint 2 for RI-E1

A nonzero quotient is negative exactly when its numerator and denominator have opposite signs.

The domain is x≠3x \ne 3. The critical values are −2-2 and 3. We examine the three resulting intervals:

Factor signs determine the quotient
Intervalx+2x + 2x−3x - 3Quotient
x<−2x < -2−−+
−2<x<3-2 < x < 3+−−
x>3x > 3+++

The negative interval is −2<x<3-2 < x < 3. At x=−2x = -2 the fraction is 0−5=0\frac{0}{-5} = 0, which is permitted by ≤. At x=3x = 3 the fraction is undefined. Therefore the complete solution is −2≤x<3-2 \le x < 3, or [−2,3)[-2, 3).

Example 1 solution intervalA filled circle at minus two and an open circle at three, joined by a thick teal segment, show minus two less than or equal to x less than three. The axis uses equal spacing.−23Included solution intervalx
The filled point includes −2-2; the open point excludes 3.

A check at x=0x = 0 gives −23-\frac{2}{3}, as expected. That substitution checks our calculation; the complete sign chart is what proves that no other interval works.

Your turn 1: change the sign demand

Solve x−4x+1>0\frac{x - 4}{x + 1} > 0 over the real numbers.

Hint 1 for RI-T1

Place −1-1 and 4 on a number line before writing cases.

Hint 2 for RI-T1

You need equal nonzero signs in numerator and denominator. The strict comparison excludes a numerator zero.

Full solution for RI-T1

The domain excludes −1-1. For x<−1x < -1, both factors are negative, giving a positive quotient. For −1<x<4-1 < x < 4 their signs differ, giving a negative quotient. For x>4x > 4 both are positive. The value 4 gives zero and is not allowed by >. Thus x<−1x < -1 or x>4x > 4.

Bridge: a repeated factor need not reverse the sign

For x≠ax \ne a, the square (x−a)2(x - a)^{2} is positive on both sides of a. An odd power has the sign of x−ax - a, while an even power is positive away from a. Thus a simple factor changes sign as we cross its root, but a squared factor does not. The same sign rule applies to a denominator factor; the root of a denominator remains forbidden.

For instance,(x−2)2x+1, \frac{(x - 2)^{2}}{x + 1} is negative for x<−1x < -1 and positive for x>−1x > -1 except that it equals zero at x=2x = 2. Its sign does not reverse at 2. When the required comparison is ≤0\le 0, an allowed repeated numerator root can be an isolated solution, even when the expression is positive immediately on both sides.

Do not begin by automatically alternating + and − at every marked value. Check whether the remaining factor has odd or even multiplicity, meaning an odd or even exponent. A cancelled factor can leave a hole with no sign change at all.

Worked example 2: cancellation, a hole and an isolated solution

Solve (x−1)2(x+3)(x+2)(x+3)≤0\frac{(x - 1)^{2}(x + 3)}{(x + 2)(x + 3)} \le 0 over the real numbers.

Planning hint 1 for RI-E2

Write the two forbidden values before cancelling a common factor.

Planning hint 2 for RI-E2

Away from x=1x = 1, the squared numerator is positive. Decide the sign from x+2x + 2, then check x=1x = 1 separately.

The original denominator is zero at x=−2x = -2 and x=−3x = -3, so both are excluded. On this domain, cancel x+3x + 3 to obtain (x−1)2x+2≤0\frac{(x - 1)^{2}}{x + 2} \le 0. The cancellation makes the sign calculation shorter, but it does not restore −3-3.

If x<−2x < -2, the numerator is positive and x+2x + 2 is negative, so the quotient is negative. Every such x works except the hole x=−3x = -3. If x>−2x > -2 and x≠1x \ne 1, both numerator and denominator are positive, so the inequality fails. At x=1x = 1, the original denominator is 3×4=123 \times 4 = 12 and the numerator is zero, so the inequality holds.

The complete solution is x<−2x < -2 with x≠−3x \ne -3, together with x=1x = 1. In interval notation it is (−∞,−3)∪(−3,−2)∪{1}(-\infty , -3) \cup (-3, -2) \cup \{1\}. The point 1 is included even though no interval around it is included.

Example 2 solution with a hole and an isolated pointThe thick teal ray contains every real number less than minus two except minus three. Open circles exclude minus three and minus two. A separate filled circle includes one. Equal numerical distances have equal lengths on the axis.−3−21NegativeIsolated zeroxOpen: excluded · Filled: included
The hole at −3-3 stays excluded. The allowed zero at 1 is a separate solution.

There are three separate checks here: the sign changes at the remaining simple denominator root −2-2; it does not change at the repeated numerator root 1; and −3-3 stays forbidden because of the original denominator.

Your turn 2: keep the expression, make the inequality strict

Solve (x−1)2(x+3)(x+2)(x+3)<0\frac{(x - 1)^{2}(x + 3)}{(x + 2)(x + 3)} < 0 over the real numbers.

Hint 1 for RI-T2

Keep the same original domain and interval signs.

Hint 2 for RI-T2

Which solution of Example 2 produced equality rather than a negative value?

Full solution for RI-T2

The domain is still x≠−3,−2x \ne -3, -2. The quotient is negative exactly when x<−2x < -2, apart from the hole −3-3. The isolated point x=1x = 1 gives zero and must now be removed. Hence the solution is (−∞,−3)∪(−3,−2)(-\infty , -3) \cup (-3, -2).

Bridge: first solve over the reals, then count integers

A rational inequality may have infinitely many real solutions but only finitely many integer solutions in a stated interval. Keep these tasks separate. First identify the allowed real intervals; then find the first and last permitted integers in each piece and remove any forbidden integers.

If the first integer is L and the last is U, inclusive, the count is U−L+1U - L + 1 when L≤UL \le U. For example,−4,−3,−2,−1,0,1, -4, -3, -2, -1, 0, 1 has 1−(−4)+1=61 - (-4) + 1 = 6 entries. If L>UL > U there are no integers in that piece. An open integer endpoint must be skipped, while an open noninteger endpoint is handled by finding the next integer directly.

For disjoint pieces, add their counts. Do not count a shared endpoint twice, and do not subtract a forbidden point unless it actually lies in the candidate set. Listing a short candidate set is often clearer than introducing a counting formula.

Worked example 3: compare two fractions, then count

How many integers x with −5≤x≤8-5 \le x \le 8 satisfy 1x−1≥2x+2\frac{1}{x - 1} \ge \frac{2}{x + 2}?

Planning hint 1 for RI-E3

Subtract the right side and combine into one fraction. Record both denominator exclusions.

Planning hint 2 for RI-E3

The new numerator is (x+2)−2(x−1)(x + 2) - 2(x - 1). Its zero creates another boundary besides the two denominator zeros.

The domain excludes x=1x = 1 and x=−2x = -2. Subtracting gives

1x−1−2x+2=(x+2)−2(x−1)(x−1)(x+2)=4−x(x−1)(x+2)\frac{1}{x - 1} - \frac{2}{x + 2} = \frac{(x + 2) - 2(x - 1)}{(x - 1)(x + 2)} = \frac{4 - x}{(x - 1)(x + 2)}.

The numerator becomes x+2−2x+2=4−xx + 2 - 2x + 2 = 4 - x after expanding the brackets and collecting terms.

We need this last fraction to be nonnegative. Its critical values in order are −2,1-2, 1 and 4. The numerator 4−x4 - x is positive before 4 and negative after 4; this negative coefficient is why we must check the sign rather than assume it.

Combine the fractions before choosing intervals
Interval4−x4 - x(x−1)(x+2)(x - 1)(x + 2)Quotient
x<−2x < -2+++
−2<x<1-2 < x < 1+−−
1<x<41 < x < 4+++
x>4x > 4−+−

Include 4 because it makes the numerator zero and neither denominator zero. Thus the real solution is x<−2x < -2 or 1<x≤41 < x \le 4. Intersecting with the stated integer range leaves −5,−4,−3-5, -4, -3 from the first piece and 2, 3, 4 from the second. There are 6 integers.

At the equality endpoint x=4x = 4, the original comparison reads 13≥26\frac{1}{3} \ge \frac{2}{6}. At x=−2x = -2 or 1, it does not make sense. A candidate list is complete only after these domain and boundary checks.

Your turn 3: change the range and exclude equality

How many integers x with −4≤x≤6-4 \le x \le 6 satisfy 1x−1>2x+2\frac{1}{x - 1} > \frac{2}{x + 2}?

Hint 1 for RI-T3

Reuse the factor signs from Example 3, then reconsider the zero at 4.

Hint 2 for RI-T3

Intersect x<−2x < -2 and 1<x<41 < x < 4 with the new integer range.

Full solution for RI-T3

The strict comparison removes the equality point 4. The allowed real pieces are x<−2x < -2 and 1<x<41 < x < 4. Inside −4≤x≤6-4 \le x \le 6, their integers are −4,−3-4, -3 and 2, 3. Therefore the answer is 4.

Bridge: a moving boundary may change the order of the cases

A parameter is a fixed value whose possible choices we are investigating. If a boundary contains a parameter, its position is not known in advance. Before drawing the sign chart, ask whether it lies to the left of, equals, or lies to the right of the other boundary.

For two distinct integers a<ba < b, the integers strictly between them are a+1a + 1 through b−1b - 1. There are b−a−1b - a - 1 of them, with zero when b=a+1b = a + 1. The order of the endpoints matters; a negative count signals that the formula has been used outside its assumptions.

Worked example 4: recover the parameter from an integer count

Find every integer m for which n−mn−2<0\frac{n - m}{n - 2} < 0 has exactly three integer solutions n.

Planning hint 1 for RI-E4

A quotient of two simple linear factors is negative between their distinct roots. Decide separately whether m<2,m=2m < 2, m = 2 or m>2m > 2.

Planning hint 2 for RI-E4

For m<2m < 2, count the integers strictly between m and 2. For m>2m > 2, count those strictly between 2 and m.

The domain excludes n=2n = 2. If m<2m < 2, the quotient is negative exactly for m<n<2m < n < 2: numerator and denominator then have opposite signs. Its integer solutions are m+1m + 1 through 1, giving 1−m1 - m solutions. Requiring 1−m=31 - m = 3 gives m=−2m = -2.

If m>2m > 2, the negative interval is 2<n<m2 < n < m. Its integer solutions are 3 through m−1m - 1, giving m−3m - 3 solutions. Requiring m−3=3m - 3 = 3 gives m=6m = 6. These formulas give zero when the distinct integer roots are adjacent.

If m=2m = 2, the quotient is 1 for every allowed n, so there are no solutions. This collision case cannot be treated as an interval with two distinct endpoints.

Both candidates check: m=−2m = -2 gives n=−1,0,1n = -1, 0, 1; m=6m = 6 gives n=3,4,5n = 3, 4, 5. Therefore m=−2m = -2 or m=6m = 6, and the three cases prove that the list is complete.

Your turn 4: when are there no integer solutions?

Find every integer m for which n−mn−2<0\frac{n - m}{n - 2} < 0 has no integer solutions n.

Hint 1 for RI-T4

Keep the same three cases for m. An interval between adjacent integers contains no integer.

Hint 2 for RI-T4

Use 1−m=01 - m = 0 in the case m<2m < 2, and m−3=0m - 3 = 0 in the case m>2m > 2. Check the equal-root case separately.

Full solution for RI-T4

For m<2m < 2, the count is 1−m1 - m, so only m=1m = 1 works. For m>2m > 2, the count is m−3m - 3, so only m=3m = 3 works. When m=2m = 2 the quotient is always 1 on its domain, so it also has no negative values. The complete answer is m=1,2m = 1, 2 or 3.

A final bridge for the Stretch questions

When every occurrence of n is through n2n^{2}, temporarily write u=n2u = n^{2}. Solve the rational inequality in u, keeping the original exclusions. Then return to n: u≥0u \ge 0, and each positive square can come from both a positive and a negative integer. For example,4<n2≤9, 4 < n^{2} \le 9 means 2<∣n∣≤32 < |n| \le 3, so the only integer possibilities are n=−3n = -3 and n=3n = 3. Here ∣n∣|n| is the distance of n from zero. Squaring does not make n itself positive.

In a counting problem with a cancelled factor, first find the candidate integer interval, then ask whether the hole lies inside it. A forbidden value outside that interval does not reduce its count. Questions 8–9 combine these two reminders with the earlier method.

Stop at the first step that lost information

  • A forbidden value reappeared: return to the original denominator, before cancellation.
  • The sign chart alternates at a square: test the squared factor on both sides; it is positive away from its root.
  • A repeated numerator zero disappeared: test it separately when equality is allowed.
  • Cross-multiplication used an unknown sign: split into sign cases, use a positive square, or combine to one fraction compared with zero.
  • An integer count equals an interval length: write the first and last allowed integers and count inclusively.
  • A parameter answer uses only one order: check both orders and the equal-boundary case.

Practise with feedback

A practice session selects six questions from the bank below. Choose a starting level and explain your reasoning on paper before selecting an option. The complete static set provides two staged hints, worked solutions and a repair link for every question. A correct choice with help is useful practice, but it is different from an independent solution.

Interactive practice loads here. You can also use the complete question set below.

Nine graded original practice questions

Foundation secures domain, signs and endpoint counting. Core combines those skills. Stretch adds a squared-variable substitution or a moving boundary. Choose a complete answer; keep the written argument that supports it. The question text and option order below match the adaptive bank.

RI-Q1. Keep the original domain

Foundation

Solve x2−9x−3≥0\frac{x^{2} - 9}{x - 3} \ge 0 over the real numbers.

  1. x≥−3x \ge -3
  2. x≥−3x \ge -3, with x≠3x \ne 3
  3. x>−3x > -3, with x≠3x \ne 3
  4. −3≤x<3-3 \le x < 3
Hint 1 for RI-Q1

Factor the difference of two squares, but first record the forbidden value from the original denominator.

Hint 2 for RI-Q1

On its domain, the expression simplifies to x+3x + 3. Solve the linear inequality, then retain the domain restriction.

Answer and full solution for RI-Q1

Answer B: x≥−3x \ge -3, with x≠3x \ne 3.

The original denominator excludes x=3x = 3. Since x2−9=(x−3)(x+3)x^{2} - 9 = (x - 3)(x + 3), the fraction equals x+3x + 3 for x≠3x \ne 3. The condition x+3≥0x + 3 \ge 0 gives x≥−3x \ge -3. The value −3-3 is allowed because it makes the numerator zero and the denominator −6-6; the value 3 remains forbidden. Thus x≥−3x \ge -3 with x≠3x \ne 3. In particular, values larger than 3 are allowed, so the solution does not stop at the hole.

Check the first error: Cancelling a common factor does not define the original fraction at its zero.

Repair the domain before cancellation, then retry this question before looking at its answer.

RI-Q2. Locate a noninteger boundary

Foundation

Solve 2x+1x−4<0\frac{2x + 1}{x - 4} < 0 over the real numbers.

  1. x<−12x < -\frac{1}{2} or x>4x > 4
  2. −12≤x<4-\frac{1}{2} \le x < 4
  3. −12<x<4-\frac{1}{2} < x < 4
  4. −12<x≤4-\frac{1}{2} < x \le 4
Hint 1 for RI-Q2

Find the zero of each linear factor, then order the two boundaries.

Hint 2 for RI-Q2

The numerator and denominator have opposite signs between their roots. Check whether either endpoint can be included.

Answer and full solution for RI-Q2

Answer C: −12<x<4-\frac{1}{2} < x < 4.

The numerator is zero at x=−12x = -\frac{1}{2} and the denominator at x=4x = 4. Below −12-\frac{1}{2} both are negative, so their quotient is positive. Between −12-\frac{1}{2} and 4 the numerator is positive and the denominator negative, so the quotient is negative. Above 4 both are positive. The numerator zero is excluded by the strict comparison, and 4 is excluded by the domain. Hence −12<x<4-\frac{1}{2} < x < 4.

Check the first error: A strict inequality excludes an allowed zero; a denominator zero is excluded regardless of strictness.

Review the first sign chart, then retry this question before looking at its answer.

RI-Q3. Count after choosing the interval

Foundation

How many integers n satisfy n+3n−2≤0\frac{n + 3}{n - 2} \le 0?

  1. 4
  2. 6
  3. 7
  4. 5
Hint 1 for RI-Q3

First find the real solution interval. The numerator zero and denominator zero have different inclusion rules.

Hint 2 for RI-Q3

The first permitted integer is −3-3, while n=2n = 2 is forbidden. List the last permitted integer before counting.

Answer and full solution for RI-Q3

Answer D: 5.

The domain excludes 2. The quotient is negative between −3-3 and 2, positive outside that interval, and zero at −3-3. Therefore −3≤n<2-3 \le n < 2. Its integers are −3,−2,−1,0-3, -2, -1, 0 and 1, giving 5 solutions. Counting an interval length without checking the endpoints can give the wrong total.

Check the first error: The count includes zero and negative integers because no positivity restriction was stated.

Review inclusive integer counting, then retry this question before looking at its answer.

RI-Q4. Keep an isolated numerator zero

Core

Solve (x−2)2(x+1)2(x−5)≥0\frac{(x - 2)^{2}}{(x + 1)^{2}(x - 5)} \ge 0 over the real numbers.

  1. x=2x = 2 or x>5x > 5
  2. x≥5x \ge 5
  3. x≥2x \ge 2, with x≠5x \ne 5
  4. x<5x < 5, with x≠−1x \ne -1
Hint 1 for RI-Q4

Record both denominator zeros. Away from its zero, a squared factor is positive on both sides.

Hint 2 for RI-Q4

Away from x=2x = 2, the quotient has the sign of x−5x - 5. Check the allowed numerator zero separately.

Answer and full solution for RI-Q4

Answer A: x=2x = 2 or x>5x > 5.

The domain excludes x=−1x = -1 and x=5x = 5. For an allowed x other than 2, both squared factors are positive, so the quotient has the sign of x−5x - 5. It is positive for x>5x > 5 and negative for x<5x < 5, except at x=2x = 2. At 2 the numerator is zero and the denominator is nonzero, so equality is allowed. Thus the solution is the isolated value 2 together with every x>5x > 5. Neither −1-1 nor 5 can be restored.

Check the first error: Do not alternate signs at squared factors or discard an isolated allowed zero.

Review repeated factors and isolated solutions, then retry this question before looking at its answer.

RI-Q5. A hole changes an integer count

Core

How many integers n satisfy (n−2)(n−5)(n−2)(n+1)≤0\frac{(n - 2)(n - 5)}{(n - 2)(n + 1)} \le 0?

  1. 4
  2. 6
  3. 5
  4. 7
Hint 1 for RI-Q5

Cancel only after recording both forbidden integer values.

Hint 2 for RI-Q5

The simplified fraction is nonpositive for −1<n≤5-1 < n \le 5. Check which of those integers was excluded before cancellation.

Answer and full solution for RI-Q5

Answer C: 5.

The original domain excludes n=2n = 2 and n=−1n = -1. On that domain the fraction is n−5n+1\frac{n - 5}{n + 1}, which is negative for −1<n<5-1 < n < 5 and zero at n=5n = 5. The candidate integers are 0, 1, 2, 3, 4, 5. Removing the original hole 2 leaves 0, 1, 3, 4, 5, so there are 5 solutions. The excluded endpoint −1-1 was never in the candidate list and must not be subtracted again.

Check the first error: Subtract a forbidden integer exactly once and only if it lies in the candidate set.

Review cancellation with a retained hole, then retry this question before looking at its answer.

RI-Q6. Compare two fractions without unsafe multiplication

Core

Which is the complete set of integers n with 0≤n≤80 \le n \le 8 satisfying 2n−1>1n−4\frac{2}{n - 1} > \frac{1}{n - 4}?

  1. {0,5,6}\{0, 5, 6\}
  2. {2,3,8}\{2, 3, 8\}
  3. {2,3,7,8}\{2, 3, 7, 8\}
  4. {1,2,3,4,8}\{1, 2, 3, 4, 8\}
Hint 1 for RI-Q6

Move the second fraction to the left and form a single fraction compared with zero.

Hint 2 for RI-Q6

The resulting numerator is n−7n - 7. Make a sign chart using 1, 4 and 7, then intersect the positive intervals with 0≤n≤80 \le n \le 8.

Answer and full solution for RI-Q6

Answer B: {2,3,8}\{2, 3, 8\}.

The domain excludes n=1n = 1 and n=4n = 4. Subtraction gives 2n−1−1n−4=n−7(n−1)(n−4)\frac{2}{n - 1} - \frac{1}{n - 4} = \frac{n - 7}{(n - 1)(n - 4)}. For n<1n < 1 the numerator is negative and the denominator positive, so the quotient is negative. For 1<n<41 < n < 4 both numerator and denominator are negative, so it is positive. For 4<n<74 < n < 7 it is negative, and for n>7n > 7 it is positive. The strict comparison excludes 7. Intersecting 1<n<41 < n < 4 or n>7n > 7 with the given integer range leaves exactly {2,3,8}\{2, 3, 8\}.

Check the first error: The sign of the product of the two denominators changes; it cannot be treated as positive everywhere.

Review the two-fraction comparison, then retry this question before looking at its answer.

RI-Q7. A square, a fractional boundary and an integer range

Stretch

How many integers n with −6≤n≤7-6 \le n \le 7 satisfy (2n−1)(n−4)2(n+2)(n−3)<0\frac{(2n - 1)(n - 4)^{2}}{(n + 2)(n - 3)} < 0?

  1. 5
  2. 7
  3. 8
  4. 6
Hint 1 for RI-Q7

Separate the effect of the squared factor from that of the three simple linear factors. Keep n=4n = 4 as a separate zero check.

Hint 2 for RI-Q7

Away from n=4n = 4, examine 2n−1(n+2)(n−3)\frac{2n - 1}{(n + 2)(n - 3)} on intervals cut by −2,12-2, \frac{1}{2} and 3. Only afterward impose the integer range.

Answer and full solution for RI-Q7

Answer D: 6.

The domain excludes −2-2 and 3. The square (n−4)2(n - 4)^{2} is positive except at 4, where the original fraction is zero and so fails the strict inequality. For n≠4n \ne 4, the sign is that of 2n−1(n+2)(n−3)\frac{2n - 1}{(n + 2)(n - 3)}. It is negative for n<−2n < -2, positive for −2<n<12-2 < n < \frac{1}{2}, negative for 12<n<3\frac{1}{2} < n < 3, and positive for n>3n > 3. Thus the required integers in the given range are −6,−5,−4,−3-6, -5, -4, -3 and 1, 2: six in total. The zero 4 is outside the negative intervals anyway; it must not be added as a solution or subtracted from the count again.

Check the first error: A repeated factor does not force a sign change, and a fractional boundary is not an integer to count.

Rebuild the sign chart with repeated factors, then retry this question before looking at its answer.

RI-Q8. Return from a squared variable to every integer

Stretch

Let S be the set of all integers n satisfying (n2−4)(n2−16)(n2−4)(n2−1)≤0\frac{(n^{2} - 4)(n^{2} - 16)}{(n^{2} - 4)(n^{2} - 1)} \le 0. What is the sum of n2n^{2} over all n in S?

  1. 50
  2. 58
  3. 60
  4. 68
Hint 1 for RI-Q8

Record all four forbidden integers before cancelling. Then temporarily use u=n2u = n^{2}.

Hint 2 for RI-Q8

Solve u−16u−1≤0\frac{u - 16}{u - 1} \le 0, then select integer squares and remember that a positive square has two integer square roots.

Answer and full solution for RI-Q8

Answer A: 50.

The original denominator excludes n=−2,−1,1n = -2, -1, 1 and 2. On that domain cancel n2−4n^{2} - 4 and put u=n2u = n^{2}. The inequality u−16u−1≤0\frac{u - 16}{u - 1} \le 0 gives 1<u≤161 < u \le 16: the value 1 is forbidden and 16 gives equality. The integer values of n with 1<n2≤161 < n^{2} \le 16 are −4,−3,−2,2,3,4-4, -3, -2, 2, 3, 4. The original exclusions remove −2-2 and 2, leaving S ={−4,−3,3,4}= \{-4, -3, 3, 4\}. The requested sum is 16+9+9+16=5016 + 9 + 9 + 16 = 50. We count both signs because they are different integers in S.

Check the first error: Do not restore cancelled square roots or keep only positive n after the substitution u=n2u = n^{2}.

Review the squared-variable bridge, then retry this question before looking at its answer.

RI-Q9. A moving interval crosses a fixed hole

Stretch

For which integers m does (n−m)(n−4)(n−2)(n−4)<0\frac{(n - m)(n - 4)}{(n - 2)(n - 4)} < 0 have exactly five integer solutions n?

  1. m=−4m = -4 or m=8m = 8
  2. m=−3m = -3 or m=9m = 9
  3. m=−4m = -4 or m=9m = 9
  4. m=9m = 9 only
Hint 1 for RI-Q9

After recording the holes at n=2n = 2 and n=4n = 4, separate the orders m<2,m=2m < 2, m = 2 and m>2m > 2.

Hint 2 for RI-Q9

For m<2m < 2, the fixed hole 4 is outside the candidate interval. For m>2m > 2, decide whether 4 lies strictly between 2 and m before subtracting it.

Answer and full solution for RI-Q9

Answer C: m=−4m = -4 or m=9m = 9.

The original domain excludes n=2n = 2 and n=4n = 4. The simplified fraction is n−mn−2\frac{n - m}{n - 2}, so negativity occurs strictly between its distinct roots. If m<2m < 2, the candidates are m+1m + 1 through 1, and the hole 4 is outside them. There are 1−m1 - m solutions; setting this to 5 gives m=−4m = -4. If m=2m = 2, the simplified quotient is 1 and there are no solutions. If m>2m > 2, the candidates are 3 through m−1m - 1. For m=3m = 3 there are none, and for m=4m = 4 there is only 3, so neither works. For m≥5m \ge 5 the list contains 4; deleting it leaves (m−3)−1=m−4(m - 3) - 1 = m - 4 solutions. Setting m−4=5m - 4 = 5 gives m=9m = 9. These candidates check: m=−4m = -4 gives −3,−2,−1,0,1-3, -2, -1, 0, 1; m=9m = 9 gives 3, 5, 6, 7, 8. The complete answer is m=−4m = -4 or m=9m = 9.

Check the first error: A fixed hole changes the count only after the moving interval reaches it; check both orders of the moving root.

Review the parameter cases, then retain the hole, then retry this question before looking at its answer.

Two proof extensions

Write a connected solution before opening the hints. These six-point checklists are for self-review in this lesson; they are not official marking schemes. A correct final set without the domain and sign argument is incomplete.

RI-P1. Prove a counting rule with a cancelled hole

Let a, b and c be integers with a<ba < b. Determine the number of integer solutions n of (n−a)(n−c)(n−b)(n−c)≤0\frac{(n - a)(n - c)}{(n - b)(n - c)} \le 0. Express your answer in terms of a, b and the position of c. Your argument must also cover c=ac = a and c=bc = b.

Hint 1 for RI-P1

Record the domain before cancellation, then solve n−an−b≤0\frac{n - a}{n - b} \le 0.

Hint 2 for RI-P1

Count the integers from the included zero a to just before the forbidden pole b. Decide whether c is already outside that list.

Full proof for RI-P1

The original denominator excludes n=bn = b and n=cn = c. On that domain the quotient simplifies to n−an−b\frac{n - a}{n - b}. Since a<ba < b, both factors are negative for n<an < a, their signs differ for a<n<ba < n < b, and both are positive for n>bn > b. At n=an = a the simplified numerator is zero. Therefore the simplified nonpositive condition is a≤n<ba \le n < b, subject to the original exclusions.

The candidate integers are a,a+1,…,b−1a, a + 1, \ldots , b - 1. This list has b−ab - a entries. The endpoint b is already absent. If a≤c<ba \le c < b, exactly one candidate, namely c, is forbidden, leaving b−a−1b - a - 1 solutions. Otherwise c is outside the candidate list, leaving b−ab - a solutions.

This includes c=ac = a: the apparent numerator zero a is undefined in the original fraction and is removed. It also includes c=bc = b: there is only the already excluded endpoint b, so no candidate is removed. When b=a+1b = a + 1 and c=ac = a, the first formula gives zero, agreeing with an empty solution set. The sign cases cover the whole domain, so the count is complete.

Six-point self-review rubric for RI-P1
  • 1 point: States the original exclusions n≠bn \ne b and n≠cn \ne c before cancellation.
  • 1 point: Simplifies only on that domain and justifies the sign cases.
  • 1 point: Obtains the correct inclusive/exclusive candidate interval a≤n<ba \le n < b.
  • 1 point: Counts its b−ab - a integers.
  • 1 point: Subtracts one exactly when a≤c<ba \le c < b.
  • 1 point: Explains c=ac = a and c=bc = b, and states that the cases are complete.

Return to the worked bridge if a step needed help. Rewrite that step in your own words and try again later.

RI-P2. Solve a whole family of two-fraction comparisons

Let a and b be real numbers with a<ba < b, and let t be a real number with t>1t > 1. Find every real x satisfying 1x−a≥tx−b\frac{1}{x - a} \ge \frac{t}{x - b}. Express any new endpoint in terms of a, b and t, and justify why its position relative to a and b is fixed.

Hint 1 for RI-P2

Combine the difference into one fraction, preserving x≠ax \ne a and x≠bx \ne b.

Hint 2 for RI-P2

The numerator is (1−t)x+ta−b(1 - t)x + ta - b. Find its zero c, then rewrite c−ac - a using b−ab - a and t−1t - 1.

Full proof for RI-P2

The original domain is x≠a,bx \ne a, b. Subtracting the right side gives (1−t)x+ta−b(x−a)(x−b)≥0\frac{(1 - t)x + ta - b}{(x - a)(x - b)} \ge 0. Let c=ta−bt−1c = \frac{ta - b}{t - 1}. The numerator is −(t−1)(x−c)-(t - 1)(x - c).

To locate the new boundary, subtract a: c−a=a−bt−1=−b−at−1c - a = \frac{a - b}{t - 1} = -\frac{b - a}{t - 1}. The numerator b−ab - a and denominator t−1t - 1 are both positive, so c−a<0c - a < 0. Hence c<a<bc < a < b. This establishes the endpoint order without testing particular values.

For x<cx < c, the numerator is positive and both denominator factors are negative, so the quotient is positive. For c<x<ac < x < a, the numerator is negative while the denominator is positive, so the quotient is negative. For a<x<ba < x < b, the numerator and denominator are both negative, so the quotient is positive. For x>bx > b, the numerator is negative and the denominator positive, so the quotient is negative.

At x=cx = c the numerator is zero, and c is distinct from a and b, so equality is allowed. The poles a and b are always excluded. The complete solution is therefore x≤ta−bt−1x \le \frac{ta - b}{t - 1}, or a<x<ba < x < b. The four sign intervals and the three boundary checks exhaust every real possibility.

Six-point self-review rubric for RI-P2
  • 1 point: States x≠a,bx \ne a, b and combines the fractions correctly.
  • 1 point: Finds c=ta−bt−1c = \frac{ta - b}{t - 1} and the negative leading coefficient.
  • 1 point: Proves c<a<bc < a < b from the assumptions, rather than assuming an order.
  • 1 point: Justifies the signs in all four intervals.
  • 1 point: Includes c and excludes a and b for the correct reasons.
  • 1 point: Gives both solution pieces and explains completeness.

Return to the worked bridge if a step needed help. Rewrite that step in your own words and try again later.

My proof notebook

Write on paper or keep a draft here. Check the original domain, the ordered boundaries, the sign of every interval and the final integer count. The rubric supports your review; a written proof is not automatically marked.

What shows you are ready to move on?

Choose one Core question you solved independently. Explain why a forbidden point stays forbidden, why each interval keeps its sign and why every counted integer is allowed. Then attempt RI-Q9 or a proof extension without opening a hint. If you needed a solution, revisit the nearest worked example and retry on a later sitting; one remembered answer is not evidence that the method is secure.

How this fits Pakistan preparation

The STEM programme’s released-paper resources link the NSTC-22 Mathematics paper dated 28 June 2025. That historical paper includes 50 mathematics multiple-choice questions in Part II and two written mathematics questions in Part III. This lesson therefore practises both selecting an answer and explaining a complete argument. It covers one algebra topic, and it does not reproduce that paper or establish a future syllabus or format.

Use the Pakistan route and official-paper guide for current-stage context, and confirm your own edition’s instructions with the official NMTC organiser. The preparation lesson does not establish eligibility, registration or selection.

Choose your next step

For a sign error, return to inequality rules and signs. For a factoring error, return to algebraic identities and factorisation. For harder endpoint counting, continue to floor and ceiling functions. To improve the written argument, use proof methods.

Open my revision list · Explore the concept index

Original teaching material · IMOolympiad.com. Report a specific mathematical or wording error. Learning progress is optional and stays in this browser.