Source codeVideos

Command Palette

Search for a command to run...

What is a Rational Function?

Have you ever seen fractions in mathematics? Well, rational functions are similar to fractions, but more interesting because they involve variables!

A rational function is a function in the form of a fraction, where both the numerator and denominator are polynomial functions. Simply put, a rational function can be written as:

f(x)=P(x)Q(x)f(x) = \frac{P(x)}{Q(x)}

Where:

  • P(x)P(x) is a polynomial in the numerator
  • Q(x)Q(x) is a polynomial in the denominator
  • Q(x)0Q(x) \neq 0 (denominator cannot be zero)

Examples of Rational Functions in Life

Let's look at a real example to better understand rational functions.

Chicken Coop Problem:

Mr. Budi wants to build a rectangular chicken coop with an area of 100 m². He wants to know the relationship between the length and width of the coop.

If the length of the coop is xx meters, then:

  • Area = length × width = 100
  • x×width=100x \times \text{width} = 100
  • Width = 100x\frac{100}{x}

The function f(x)=100xf(x) = \frac{100}{x} is an example of a rational function!

Types of Rational Functions

Simple Rational Function

The simplest form of a rational function:

f(x)=kxf(x) = \frac{k}{x}

Where kk is a constant. Example: f(x)=5xf(x) = \frac{5}{x}

Linear Rational Function

Both numerator and denominator are linear functions:

f(x)=ax+bcx+df(x) = \frac{ax + b}{cx + d}

Example: f(x)=2x+3x1f(x) = \frac{2x + 3}{x - 1}

Quadratic Rational Function

Involves quadratic functions in the numerator or denominator:

f(x)=x2+2x+1x3f(x) = \frac{x^2 + 2x + 1}{x - 3}

Domain of Rational Functions

The domain of a rational function is all values of xx that make the function defined. Remember, the denominator cannot be zero!

How to find the domain:

  1. Find values of xx that make the denominator = 0
  2. The domain is all real numbers except those values

Example: Determine the domain of f(x)=x+2x3f(x) = \frac{x + 2}{x - 3}

Solution:

  • Denominator is zero when: x3=0x - 3 = 0
  • So: x=3x = 3
  • Domain: Df={xx3,xR}D_f = \{x | x \neq 3, x \in \mathbb{R}\}

Simplifying Rational Functions

Rational functions can be simplified by finding common factors in the numerator and denominator.

Without Factoring

Simplify: f(x)=6x23xf(x) = \frac{6x^2}{3x}

Solution:

f(x)=6x23xf(x) = \frac{6x^2}{3x}
=6xx3x= \frac{6x \cdot x}{3x}
=6x3xx= \frac{6x}{3} \cdot \frac{x}{x}
=2x= 2x

With Factoring

Simplify: f(x)=x24x2f(x) = \frac{x^2 - 4}{x - 2}

Solution:

f(x)=x24x2f(x) = \frac{x^2 - 4}{x - 2}
=(x+2)(x2)x2= \frac{(x + 2)(x - 2)}{x - 2}
=x+2= x + 2

Note: x2x \neq 2 (from the original domain)

Operations on Rational Functions

Addition and Subtraction

Just like regular fractions, we need to find a common denominator first!

Example: 2x+3x+1\frac{2}{x} + \frac{3}{x + 1}

Solution:

2x+3x+1\frac{2}{x} + \frac{3}{x + 1}
=2(x+1)x(x+1)+3xx(x+1)= \frac{2(x + 1)}{x(x + 1)} + \frac{3x}{x(x + 1)}
=2(x+1)+3xx(x+1)= \frac{2(x + 1) + 3x}{x(x + 1)}
=2x+2+3xx(x+1)= \frac{2x + 2 + 3x}{x(x + 1)}
=5x+2x(x+1)= \frac{5x + 2}{x(x + 1)}

Multiplication

Multiply numerator with numerator, denominator with denominator:

ab×cd=acbd\frac{a}{b} \times \frac{c}{d} = \frac{ac}{bd}

Example: x+1x×2xx1\frac{x + 1}{x} \times \frac{2x}{x - 1}

Solution:

x+1x×2xx1=2x(x+1)x(x1)=2(x+1)x1\frac{x + 1}{x} \times \frac{2x}{x - 1} = \frac{2x(x + 1)}{x(x - 1)} = \frac{2(x + 1)}{x - 1}

Division

Remember, dividing = multiplying by the reciprocal:

ab÷cd=ab×dc=adbc\frac{a}{b} \div \frac{c}{d} = \frac{a}{b} \times \frac{d}{c} = \frac{ad}{bc}

Exercises

  1. Determine the domain of f(x)=x+3x29f(x) = \frac{x + 3}{x^2 - 9}

  2. Simplify f(x)=x21x+1f(x) = \frac{x^2 - 1}{x + 1}

  3. Calculate 1x12x+1\frac{1}{x - 1} - \frac{2}{x + 1}

  4. A car travels 300 km. If the average speed is vv km/h, write the travel time function in terms of vv.

Answer Key

Answer 1:

x29=0x^2 - 9 = 0
(x+3)(x3)=0(x + 3)(x - 3) = 0
x=3 or x=3x = -3 \text{ or } x = 3

Domain: Df={xx3,x3,xR}D_f = \{x | x \neq -3, x \neq 3, x \in \mathbb{R}\}

Answer 2:

f(x)=x21x+1f(x) = \frac{x^2 - 1}{x + 1}
=(x+1)(x1)x+1= \frac{(x + 1)(x - 1)}{x + 1}
=x1= x - 1

With the condition x1x \neq -1

Answer 3:

1x12x+1\frac{1}{x - 1} - \frac{2}{x + 1}
=(x+1)2(x1)(x1)(x+1)= \frac{(x + 1) - 2(x - 1)}{(x - 1)(x + 1)}
=x+12x+2(x1)(x+1)= \frac{x + 1 - 2x + 2}{(x - 1)(x + 1)}
=x+3(x1)(x+1)= \frac{-x + 3}{(x - 1)(x + 1)}

Answer 4:

Time = Distance ÷ Speed

t(v)=300vt(v) = \frac{300}{v}