• Practice
  • About 24 min
  • 5 practice questions

Rational functions, rational inequalities, partial fractions and linear inequalities in two variables

Divide out improper rational expressions, solve rational inequalities with sign charts, resolve proper fractions into partial fractions for distinct, repeated and quadratic factors, and shade the half-planes of linear inequalities in two variables.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Write an improper rational expression as a polynomial plus a proper fraction.
  • Solve inequalities such as (x + a)/(x + b) < c by a sign chart, never by cross-multiplying blindly.
  • Resolve a proper fraction into partial fractions when the denominator has distinct, repeated or irreducible quadratic factors.
  • Shade the region of the plane given by one or more linear inequalities and find its corner points.

A rational function is a ratio of two polynomials. Rational inequalities appear when we find where a function is positive; partial fractions break a complicated fraction into simple pieces, a skill used heavily in integral calculus; and inequalities in two variables describe regions of the plane, the starting point of linear programming.

Rational expressions

A rational expression in x is P(x)/Q(x) with polynomials P and Q, Q(x) ≠ 0; for example (2x + 1)/(x² + x + 1) and (x² + x)/(x² − 5x + 6). If deg P ≥ deg Q, the division algorithm gives P(x) = f(x)Q(x) + r(x) with r = 0 or deg r < deg Q, so P/Q = f(x) + r(x)/Q(x). Example: x² + 3x + 5 = (x + 1)(x + 2) + 3, so (x² + 3x + 5)/(x + 1) = x + 2 + 3/(x + 1).

Rational inequalities

Do not multiply both sides by a denominator whose sign you do not know. Instead bring everything to one side, combine into a single fraction, factor, and use a sign chart. Zeros of the numerator are allowed in a ≤ or ≥ answer; zeros of the denominator are never allowed.

Worked example 1: a single fraction

Solve (2x − 1)/(x + 2) < 1. Subtract 1: (2x − 1 − (x + 2))/(x + 2) < 0, that is (x − 3)/(x + 2) < 0. The fraction is negative when numerator and denominator have opposite signs. Critical points −2 and 3: for x < −2 both are negative (fraction positive); for −2 < x < 3, x − 3 < 0 < x + 2 (fraction negative); for x > 3 both positive. Solution (−2, 3). Note that cross-multiplying by x + 2 would have lost the case x + 2 < 0.

Worked example 2: three factors

Solve (x − 1)(x + 2)/(x − 3) ≥ 0. Critical points −2, 1, 3.

Sign chart for (x − 1)(x + 2)/(x − 3)
Intervalx + 2x − 1x − 3Fraction
x < −2−−−−
−2 < x < 1+−−+
1 < x < 3++−−
x > 3++++

The fraction is positive on (−2, 1) and (3, ∞) and zero at −2 and 1; x = 3 is excluded because the denominator vanishes. Solution [−2, 1] ∪ (3, ∞).

Partial fractions

f(x)/g(x) is a proper fraction when deg f < deg g. If g factors into linear factors and quadratic factors with no real zeros, the fraction is a sum of simpler pieces, and this partial fraction decomposition is unique. (For an improper fraction, divide first.)

The form of the partial fractions
Factor in the denominatorPieces to write
x − a (simple)A/(x − a)
(x − a)ᵏ (repeated)A₁/(x − a) + A₂/(x − a)² + ... + Aₖ/(x − a)ᵏ
x² + px + q with no real zeros(Bx + C)/(x² + px + q)
(x² + px + q)ᵏ(B₁x + C₁)/(x² + px + q) + ... + (Bₖx + Cₖ)/(x² + px + q)ᵏ

Finding partial fractions

  1. Check it is proper if not, divide first
  2. Factor the denominator linear, repeated and irreducible quadratic factors
  3. Write the pieces one unknown constant per piece, as in the table
  4. Clear denominators multiply through by the full denominator
  5. Find the constants substitute the zeros, then compare coefficients or try easy x values

Worked example 3: distinct linear factors

Resolve (5x + 1)/((x − 1)(x + 2)). Let it equal A/(x − 1) + B/(x + 2). Then 5x + 1 = A(x + 2) + B(x − 1). Put x = 1: 6 = 3A, so A = 2. Put x = −2: −9 = −3B, so B = 3. Hence (5x + 1)/((x − 1)(x + 2)) = 2/(x − 1) + 3/(x + 2). Check: 2(x + 2) + 3(x − 1) = 5x + 1.

Worked example 4: a repeated factor

Resolve (x + 5)/((x − 1)(x + 1)²) = A/(x − 1) + B/(x + 1) + C/(x + 1)². Clearing: x + 5 = A(x + 1)² + B(x − 1)(x + 1) + C(x − 1). Put x = 1: 6 = 4A, A = 3/2. Put x = −1: 4 = −2C, C = −2. Compare x² coefficients: 0 = A + B, so B = −3/2. Check with x = 0: A − B − C = 3/2 + 3/2 + 2 = 5, which matches. So the answer is 3/(2(x − 1)) − 3/(2(x + 1)) − 2/(x + 1)².

Worked example 5: an irreducible quadratic factor

Resolve (3x + 1)/((x − 1)(x² + 1)). x² + 1 has no real zeros, so write A/(x − 1) + (Bx + C)/(x² + 1). Then 3x + 1 = A(x² + 1) + (Bx + C)(x − 1). Put x = 1: 4 = 2A, A = 2. Put x = 0: 1 = A − C, so C = 1. Compare x²: 0 = A + B, so B = −2. Check x = 2: 2 × 5 + (−4 + 1)(1) = 7 = 3 × 2 + 1. Answer 2/(x − 1) + (1 − 2x)/(x² + 1).

Linear inequalities in two variables

A line ax + by = c splits the plane into two half-planes: every point off the line satisfies exactly one of ax + by < c and ax + by > c. A vertical line x = k gives left and right half-planes, a horizontal line y = k gives lower and upper ones. To find which half-plane an inequality describes, test one point not on the line, usually the origin when c ≠ 0: if the point satisfies the inequality, shade its side; otherwise shade the other side. Draw the line solid for ≤ or ≥ (its points are included) and dashed for < or >.

Worked example 6: a single half-plane

Shade 2x − 3y < 6. The line 2x − 3y = 6 passes through (3, 0) and (0, −2); draw it dashed. Test (0, 0): 0 < 6 is true, so shade the side containing the origin, which is the side above-left of the line. Similarly y ≤ 3 is the solid line y = 3 and everything below it.

Worked example 7: a system and its corner points

Find the region x + 2y ≤ 8, 3x + y ≤ 9, x ≥ 0, y ≥ 0. Each of the first two lines is tested with (0, 0): 0 ≤ 8 and 0 ≤ 9 are true, so we keep the origin side of each; x ≥ 0 and y ≥ 0 keep the first quadrant. The lines x + 2y = 8 and 3x + y = 9 meet where y = 9 − 3x and x + 18 − 6x = 8, so x = 2 and y = 3. The common region is the quadrilateral with corners (0, 0), (3, 0), (2, 3) and (0, 4). Check (2, 3): 2 + 6 = 8 and 6 + 3 = 9, so it lies on both lines.

To solve a rational inequality, move everything to one side and use a sign chart. To shade ax + by < c, test the origin. A proper fraction with distinct linear factors splits into A/(x − a) + B/(x − b) + ....

— Remember

Key takeaways: divide first when a fraction is improper; never cross-multiply an inequality by an expression of unknown sign; denominators' zeros are always excluded; repeated factors need one piece per power and quadratic factors need a linear numerator; and a test point decides which half-plane an inequality describes.

Check your understanding

  1. 1. What is the solution set of (x + 4)/(x − 1) > 0?

    1. (−4, 1)
    2. (−∞, −4) ∪ (1, ∞)
    3. (−∞, −4] ∪ (1, ∞)
    4. (1, ∞)
    Show answer

    Answer: B. The fraction is positive when numerator and denominator have the same sign: both negative for x < −4 and both positive for x > 1. Between −4 and 1 they have opposite signs. x = −4 gives 0, which is not > 0. So the answer is (−∞, −4) ∪ (1, ∞).

  2. 2. If (7x − 1)/((x − 1)(x + 2)) = A/(x − 1) + B/(x + 2), what is A?

    1. 5
    2. 3
    3. 2
    4. −2
    Show answer

    Answer: C. 7x − 1 = A(x + 2) + B(x − 1). Put x = 1: 6 = 3A, so A = 2. (Putting x = −2 gives −15 = −3B, so B = 5.)

  3. 3. What is the correct form of the partial fractions of (x² + 1)/(x(x − 2)²)?

    1. A/x + B/(x − 2)
    2. A/x + (Bx + C)/(x − 2)²
    3. A/x² + B/(x − 2)
    4. A/x + B/(x − 2) + C/(x − 2)²
    Show answer

    Answer: D. The fraction is proper (degree 2 over degree 3). The simple factor x gives A/x, and the repeated factor (x − 2)² needs one piece for each power: B/(x − 2) + C/(x − 2)².

  4. 4. Which half-plane is given by 3x + 4y > 12?

    1. The side of the line 3x + 4y = 12 that does not contain the origin, line excluded
    2. The side containing the origin, line excluded
    3. The side containing the origin, line included
    4. The whole plane
    Show answer

    Answer: A. Testing (0, 0) gives 0 > 12, which is false, so the region is the side of the line away from the origin. Because the sign is >, points on the line are not included.

  5. 5. Which point lies in the region x + y ≤ 5, x ≥ 1, y ≥ 2?

    1. (4, 2)
    2. (0, 3)
    3. (2, 2)
    4. (1, 1)
    Show answer

    Answer: C. (2, 2): 2 + 2 = 4 ≤ 5, 2 ≥ 1 and 2 ≥ 2, so it lies in the region. (4, 2) gives 6 > 5, (0, 3) has x < 1, and (1, 1) has y < 2.

Privacy · Terms · Refunds · Delivery