Skip to main content

Functions

A function is a rule that assigns to each element in one set exactly one element in another set. Functions are central to the DSE Mathematics compulsory syllabus and underpin topics including polynomials), logarithms, sequences), and inequalities).

Functions and Relations

Definition of a Function

A function ff from a set AA to a set BB, written f ⁣:ABf \colon A \to B, is a rule that assigns to every element xAx \in A exactly one element yBy \in B. The element yy is called the image of xx under ff, written y=f(x)y = f(x).

  • The set AA is called the domain of ff.
  • The set BB is called the codomain of ff.
  • The set of all images {f(x):xA}\{f(x) : x \in A\} is called the range of ff. The range is always a subset of the codomain: range(f)B\mathrm{range}(f) \subseteq B.

A relation is any subset of A×BA \times B. A function is a special type of relation where each element of AA appears as the first component of exactly one ordered pair.

Mapping Diagrams

A mapping diagram represents a function by drawing arrows from each element of the domain to the corresponding element(s) in the codomain. For a valid function, every element in the domain must have exactly one arrow leaving it.

Vertical Line Test

For a graph in the xyxy-plane, the vertical line test states that a curve represents a function of xx if and only if no vertical line intersects the curve more than once.

Types of Functions

A function f ⁣:ABf \colon A \to B is:

  • Injective (one-to-one) if f(x1)=f(x2)    x1=x2f(x_1) = f(x_2) \implies x_1 = x_2. Equivalently, distinct inputs produce distinct outputs. This can be checked using the horizontal line test: no horizontal line intersects the graph more than once.
  • Surjective (onto) if for every yBy \in B, there exists xAx \in A such that f(x)=yf(x) = y. In other words, the range equals the codomain.
  • Bijective (one-to-one correspondence) if ff is both injective and surjective.
Examples
  • f(x)=2x+1f(x) = 2x + 1 with domain {R}\mathbb{'\{'}R{'\}'} is injective (linear, non-constant) and surjective onto {R}\mathbb{'\{'}R{'\}'}, hence bijective.
  • f(x)=x2f(x) = x^2 with domain {R}\mathbb{'\{'}R{'\}'} is neither injective (f(2)=f(2)=4f(2) = f(-2) = 4) nor surjective onto {R}\mathbb{'\{'}R{'\}'} (range is [0,)[0, \infty)).
  • f(x)=x2f(x) = x^2 with domain [0,)[0, \infty) and codomain [0,)[0, \infty) is bijective.
  • f(x)=1xf(x) = \dfrac{1}{x} with domain {R}{0}\mathbb{'\{'}R{'\}'} \setminus \{0\} is injective but not surjective onto {R}\mathbb{'\{'}R{'\}'} (range is {R}{0}\mathbb{'\{'}R{'\}'} \setminus \{0\}).

Composite Functions

Definition

Given two functions ff and gg, the composite function fgf \circ g (read "ff of gg") is defined by:

(fg)(x)=f(g(x))(f \circ g)(x) = f(g(x))

For (fg)(x)(f \circ g)(x) to be defined at a particular value of xx, two conditions must hold:

  1. xx must be in the domain of gg.
  2. g(x)g(x) must be in the domain of ff.

The domain of fgf \circ g is therefore:

dom(fg)={xdom(g):g(x)dom(f)}\mathrm{dom}(f \circ g) = \{x \in \mathrm{dom}(g) : g(x) \in \mathrm{dom}(f)\}

Order of Composition

In general, fggff \circ g \neq g \circ f. The order of composition matters because the inner function is evaluated first.

Inverse Functions

If ff is a bijection, then the inverse function f1f^{-1} exists and satisfies:

f1(f(x))=xforallxdom(f)f^{-1}(f(x)) = x \quad \mathrm{for all } x \in \mathrm{dom}(f) f(f1(y))=yforallydom(f1)=range(f)f(f^{-1}(y)) = y \quad \mathrm{for all } y \in \mathrm{dom}(f^{-1}) = \mathrm{range}(f)

The graphs of y=f(x)y = f(x) and y=f1(x)y = f^{-1}(x) are reflections of each other in the line y=xy = x.

To find f1(x)f^{-1}(x), set y=f(x)y = f(x), solve for xx in terms of yy, then interchange xx and yy.

A necessary condition for a function to have an inverse is that it is one-to-one (injective). If the original function is not injective on its given domain, one may restrict the domain to make it injective.

Examples
  • Let f(x)=2x+3f(x) = 2x + 3 and g(x)=x2g(x) = x^2. Then:

    • (fg)(x)=f(g(x))=f(x2)=2x2+3(f \circ g)(x) = f(g(x)) = f(x^2) = 2x^2 + 3
    • (gf)(x)=g(f(x))=g(2x+3)=(2x+3)2=4x2+12x+9(g \circ f)(x) = g(f(x)) = g(2x + 3) = (2x + 3)^2 = 4x^2 + 12x + 9
    • Note that (fg)(1)=5(f \circ g)(1) = 5 but (gf)(1)=25(g \circ f)(1) = 25, confirming fggff \circ g \neq g \circ f.
  • Find the inverse of f(x)=2x+1x3f(x) = \dfrac{2x + 1}{x - 3} (x3x \neq 3):

    • Set y=2x+1x3y = \dfrac{2x + 1}{x - 3}
    • y(x3)=2x+1    yx3y=2x+1y(x - 3) = 2x + 1 \implies yx - 3y = 2x + 1
    • x(y2)=3y+1    x=3y+1y2x(y - 2) = 3y + 1 \implies x = \dfrac{3y + 1}{y - 2}
    • Therefore f1(x)=3x+1x2f^{-1}(x) = \dfrac{3x + 1}{x - 2}, with domain {R}{2}\mathbb{'\{'}R{'\}'} \setminus \{2\}.
  • Let f(x)=x1f(x) = \sqrt{x - 1} and g(x)=x2+1g(x) = x^2 + 1. Find the domain of fgf \circ g:

    • dom(g)={R}\mathrm{dom}(g) = \mathbb{'\{'}R{'\}'}
    • dom(f)={x:x1}\mathrm{dom}(f) = \{x : x \geq 1\}, so we require g(x)1g(x) \geq 1, i.e. x2+11    x20x^2 + 1 \geq 1 \implies x^2 \geq 0, which holds for all real xx.
    • Therefore dom(fg)={R}\mathrm{dom}(f \circ g) = \mathbb{'\{'}R{'\}'}.

Quadratic Functions

A quadratic function has the general form:

f(x)=ax2+bx+c,a0f(x) = ax^2 + bx + c, \quad a \neq 0

where aa, bb, and cc are real constants.

Vertex Form

By completing the square, the quadratic can be rewritten in vertex form:

f(x)=a(x+b2a)2+4acb24af(x) = a\left(x + \frac{b}{2a}\right)^2 + \frac{4ac - b^2}{4a}
  • The vertex is at (b2a,  4acb24a)\left(-\dfrac{b}{2a},\; \dfrac{4ac - b^2}{4a}\right).
  • The axis of symmetry is the vertical line x=b2ax = -\dfrac{b}{2a}.
  • If a>0a > 0, the parabola opens upward (minimum at the vertex).
  • If a<0a < 0, the parabola opens downward (maximum at the vertex).

Discriminant

The discriminant of a quadratic ax2+bx+c=0ax^2 + bx + c = 0 is defined as:

Δ=b24ac\Delta = b^2 - 4ac

The discriminant determines the nature of the roots of the equation f(x)=0f(x) = 0:

ConditionRoots
Δ>0\Delta > 0Two distinct real roots
Δ=0\Delta = 0One repeated real root
Δ<0\Delta < 0No real roots

The roots are given by the quadratic formula:

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

See also polynomials) for connections between quadratic functions and polynomial equations.

Completing the Square

To complete the square for ax2+bx+cax^2 + bx + c:

  1. Factor out aa from the first two terms: a(x2+bax)+ca\left(x^2 + \dfrac{b}{a}x\right) + c.
  2. Add and subtract (b2a)2\left(\dfrac{b}{2a}\right)^2 inside the brackets: a[(x+b2a)2(b2a)2]+ca\left[\left(x + \dfrac{b}{2a}\right)^2 - \left(\dfrac{b}{2a}\right)^2\right] + c.
  3. Simplify to obtain the vertex form.

This technique is also essential in solving inequalities) involving quadratic expressions.

Examples
  • Express f(x)=2x212x+22f(x) = 2x^2 - 12x + 22 in vertex form:

    • f(x)=2(x26x)+22=2[(x3)29]+22=2(x3)2+4f(x) = 2(x^2 - 6x) + 22 = 2\left[(x - 3)^2 - 9\right] + 22 = 2(x - 3)^2 + 4
    • Vertex: (3,4)(3, 4), axis of symmetry: x=3x = 3, minimum value: 44.
  • Determine the nature of roots of 3x25x+2=03x^2 - 5x + 2 = 0:

    • Δ=(5)24(3)(2)=2524=1>0\Delta = (-5)^2 - 4(3)(2) = 25 - 24 = 1 > 0
    • Two distinct real roots: x=5±16x = \dfrac{5 \pm 1}{6}, i.e. x=1x = 1 or x=23x = \dfrac{2}{3}.
  • Find the range of f(x)=x2+4x7f(x) = -x^2 + 4x - 7:

    • f(x)=(x24x)7=[(x2)24]7=(x2)23f(x) = -(x^2 - 4x) - 7 = -\left[(x - 2)^2 - 4\right] - 7 = -(x - 2)^2 - 3
    • Since (x2)20-(x - 2)^2 \leq 0 for all xx, the maximum value is 3-3.
    • Range: (,3](-\infty, -3].

Exponential Functions

An exponential function has the form:

f(x)=ax,a>0,  a1f(x) = a^x, \quad a > 0,\; a \neq 1

where aa is called the base.

Properties

For a,b>0a, b > 0 and m,n{R}m, n \in \mathbb{'\{'}R{'\}'}:

am×an=am+naman=amn(am)n=amna0=1an=1an\begin{aligned} a^m \times a^n &= a^{m + n} \\ \frac{a^m}{a^n} &= a^{m - n} \\ (a^m)^n &= a^{mn} \\ a^0 &= 1 \\ a^{-n} &= \frac{1}{a^n} \end{aligned}

Graphs

  • For a>1a > 1: f(x)=axf(x) = a^x is strictly increasing. The graph passes through (0,1)(0, 1), approaches the xx-axis as xx \to -\infty (horizontal asymptote at y=0y = 0), and rises steeply as xx \to \infty.
  • For 0<a<10 < a < 1: f(x)=axf(x) = a^x is strictly decreasing. The graph is a reflection of y=(1a)xy = \left(\frac{1}{a}\right)^x in the yy-axis.

Exponential Equations

Equations of the form af(x)=ag(x)a^{f(x)} = a^{g(x)} can be solved by equating exponents: f(x)=g(x)f(x) = g(x) (provided a>0a > 0, a1a \neq 1).

For equations of the form af(x)=ba^{f(x)} = b, take logarithms of both sides. See logarithms for the full treatment of logarithmic techniques.

Examples
  • Solve 4x=2x+34^{x} = 2^{x+3}:

    • Rewrite: (22)x=2x+3    22x=2x+3(2^2)^x = 2^{x+3} \implies 2^{2x} = 2^{x+3}
    • Equate exponents: 2x=x+3    x=32x = x + 3 \implies x = 3
  • Solve 52x1=3x+25^{2x - 1} = 3^{x + 2}:

    • Take logarithms: (2x1)ln5=(x+2)ln3(2x - 1)\ln 5 = (x + 2)\ln 3
    • 2xln5ln5=xln3+2ln32x \ln 5 - \ln 5 = x \ln 3 + 2\ln 3
    • x(2ln5ln3)=ln5+2ln3x(2\ln 5 - \ln 3) = \ln 5 + 2\ln 3
    • x=ln5+2ln32ln5ln3x = \dfrac{\ln 5 + 2\ln 3}{2\ln 5 - \ln 3}
  • The half-life of a substance is 8 hours. If the initial amount is 100 g, find the amount remaining after 24 hours:

    • A(t)=100×(12)t/8A(t) = 100 \times \left(\frac{1}{2}\right)^{t/8}
    • A(24)=100×(12)3=12.5gA(24) = 100 \times \left(\frac{1}{2}\right)^3 = 12.5 \mathrm{ g}

Logarithmic Functions

The logarithmic function is the inverse of the exponential function. If ay=xa^y = x (where a>0a > 0, a1a \neq 1, x>0x > 0), then:

y=logaxy = \log_a x

This means logax\log_a x is the exponent to which aa must be raised to obtain xx.

The function f(x)=logaxf(x) = \log_a x has domain (0,)(0, \infty) and range {R}\mathbb{'\{'}R{'\}'}. See logarithms for further details.

Laws of Logarithms

For a,M,N>0a, M, N > 0 (a1a \neq 1) and p{R}p \in \mathbb{'\{'}R{'\}'}:

loga(MN)=logaM+logaN(ProductLaw)loga(MN)=logaMlogaN(QuotientLaw)logaMp=plogaM(PowerLaw)loga1=0logaa=1\begin{aligned} \log_a (MN) &= \log_a M + \log_a N &\mathrm{(Product Law)} \\ \log_a \left(\frac{M}{N}\right) &= \log_a M - \log_a N &\mathrm{(Quotient Law)} \\ \log_a M^p &= p \log_a M &\mathrm{(Power Law)} \\ \log_a 1 &= 0 \\ \log_a a &= 1 \end{aligned}

Change of Base Formula

To evaluate a logarithm with any base:

logab=logcblogca=lnblna\log_a b = \frac{\log_c b}{\log_c a} = \frac{\ln b}{\ln a}

for any positive base c1c \neq 1.

Solving Logarithmic Equations

When solving logarithmic equations, the following steps are typical:

  1. Use the laws of logarithms to combine or expand logarithmic terms.
  2. Convert the logarithmic equation to its equivalent exponential form, or equate arguments when the logarithms have the same base.
  3. Always verify that solutions satisfy the domain condition (arguments of all logarithms must be positive).
Examples
  • Solve log2(x+3)+log2(x1)=4\log_2 (x + 3) + \log_2 (x - 1) = 4:

    • Product law: log2[(x+3)(x1)]=4\log_2 [(x + 3)(x - 1)] = 4
    • Convert: (x+3)(x1)=24=16(x + 3)(x - 1) = 2^4 = 16
    • x2+2x3=16    x2+2x19=0x^2 + 2x - 3 = 16 \implies x^2 + 2x - 19 = 0
    • x=2±4+762=1±25x = \dfrac{-2 \pm \sqrt{4 + 76}}{2} = -1 \pm 2\sqrt{5}
    • Domain requires x+3>0x + 3 > 0 and x1>0x - 1 > 0, i.e. x>1x > 1.
    • 1+253.47>1-1 + 2\sqrt{5} \approx 3.47 > 1 (accepted); 125<0-1 - 2\sqrt{5} < 0 (rejected).
    • Solution: x=1+25x = -1 + 2\sqrt{5}.
  • Evaluate log320\log_3 20 in terms of ln\ln:

    • log320=ln20ln3\log_3 20 = \dfrac{\ln 20}{\ln 3}
  • Solve 2log5xlog5(x1)=log542\log_5 x - \log_5 (x - 1) = \log_5 4:

    • Power law: log5x2log5(x1)=log54\log_5 x^2 - \log_5 (x - 1) = \log_5 4
    • Quotient law: log5x2x1=log54\log_5 \dfrac{x^2}{x - 1} = \log_5 4
    • x2x1=4    x2=4x4    x24x+4=0\dfrac{x^2}{x - 1} = 4 \implies x^2 = 4x - 4 \implies x^2 - 4x + 4 = 0
    • (x2)2=0    x=2(x - 2)^2 = 0 \implies x = 2
    • Check: x=2>0x = 2 > 0 and x1=1>0x - 1 = 1 > 0. Valid.

Graph Transformations

Given the graph of y=f(x)y = f(x), the graph of y=af(x+b)+cy = af(x + b) + c is obtained by applying a sequence of transformations. The general form can be broken down as:

y=af(x(b))+cy = a \cdot f\left(x - (-b)\right) + c

Graph Transformations

Use the sliders to explore how the parameters aa, bb, and cc transform the parent function, and observe the order in which each transformation is applied.

Individual Transformations

TransformationEffect
y=f(x)+cy = f(x) + cVertical translation upward by cc units (c>0c \gt 0) or downward by cc units (c<0c \lt 0)
y=f(xh)y = f(x - h)Horizontal translation to the right by hh units (h>0h \gt 0) or to the left by hh units (h<0h \lt 0)
y=af(x)y = af(x)Vertical stretch by factor aa (a>1a \gt 1) or vertical compression by factor aa (0<a<10 \lt a \lt 1); reflection in the xx-axis if a<0a \lt 0
y=f(kx)y = f(kx)Horizontal stretch by factor 1k\frac{1}{k} (0<k<10 \lt k \lt 1) or horizontal compression by factor 1k\frac{1}{k} (k>1k \gt 1); reflection in the yy-axis if k<0k \lt 0

Order of Transformations

For y=af(x+b)+cy = af(x + b) + c, the recommended order of application (from the graph of y=f(x)y = f(x)) is:

  1. Horizontal translation by b-b units (shift left if b>0b > 0, right if b<0b < 0): replace xx with x+bx + b.
  2. Vertical stretch/compression (and possible xx-axis reflection) by factor a|a|: multiply the function by aa.
  3. Vertical translation by cc units: add cc.

Alternatively, one may think of this as working from the "inside out": apply the horizontal shift first, then the vertical scaling, then the vertical shift.

info

Horizontal transformations operate on xx before the function is evaluated; vertical transformations operate on f(x)f(x) after the function is evaluated. This is why the horizontal shift has the "opposite sign" effect: f(x+b)f(x + b) shifts left by bb (not right).

Examples
  • Describe the transformation from y=x2y = x^2 to y=2(x3)2+1y = 2(x - 3)^2 + 1:

    • Starting from y=x2y = x^2:
    • Shift right by 3 units: y=(x3)2y = (x - 3)^2
    • Vertical stretch by factor 2: y=2(x3)2y = 2(x - 3)^2
    • Shift up by 1 unit: y=2(x3)2+1y = 2(x - 3)^2 + 1
    • The vertex moves from (0,0)(0, 0) to (3,1)(3, 1).
  • The graph of y=f(x)y = f(x) passes through (2,5)(2, 5). Find the corresponding point on y=f(2x)+3y = -f(2x) + 3:

    • Start with (2,5)(2, 5) on y=f(x)y = f(x), meaning f(2)=5f(2) = 5.
    • For y=f(2x)+3y = -f(2x) + 3, set 2x=2    x=12x = 2 \implies x = 1.
    • Then y=f(2)+3=5+3=2y = -f(2) + 3 = -5 + 3 = -2.
    • The point is (1,2)(1, -2).
  • Given f(x)=xf(x) = \sqrt{x}, sketch y=x+42y = \sqrt{-x + 4} - 2:

    • Rewrite as y=f((x4))2=f(x+4)2y = f(-(x - 4)) - 2 = f(-x + 4) - 2.
    • From y=xy = \sqrt{x}: reflect in the yy-axis to get y=xy = \sqrt{-x}, then shift right by 4 to get y=(x4)=x+4y = \sqrt{-(x - 4)} = \sqrt{-x + 4}, then shift down by 2.
    • Domain: x+40    x4-x + 4 \geq 0 \implies x \leq 4. Range: [2,)[-2, \infty).


Modulus Function

Definition

The modulus (or absolute value) function is defined piecewise:

f(x)=x={xifx0xifx<0f(x) = |x| = \begin{cases} x & \mathrm{if } x \geq 0 \\ -x & \mathrm{if } x \lt 0 \end{cases}

The graph of y=xy = |x| is V-shaped, with its vertex at the origin. It is symmetric about the yy-axis, making it an even function: x=x|{-x}| = |x| for all xx.

Properties

For all a,b{R}a, b \in \mathbb{'\{'}R{'\}'}:

Proposition (Multiplicativity). ab=ab|ab| = |a| \cdot |b|.

Proof. By cases on the signs of aa and bb:

  • If a0a \geq 0 and b0b \geq 0: ab=ab=ab|ab| = ab = |a| \cdot |b|.
  • If a0a \geq 0 and b<0b \lt 0: ab=ab=(ab)=ab=a(b)=ab|ab| = |a \cdot b| = |{-}(ab)| = ab = a \cdot ({-b}) = |a| \cdot |b|.
  • The remaining cases are symmetric. \qed\qed

Proposition (Triangle Inequality). a+ba+b|a + b| \leq |a| + |b|.

Proof. We have aaa-|a| \leq a \leq |a| and bbb-|b| \leq b \leq |b| for all a,ba, b. Adding: (a+b)a+ba+b-(|a| + |b|) \leq a + b \leq |a| + |b|, which means a+ba+b|a + b| \leq |a| + |b|. \qed\qed

Solving Modulus Equations

The equation f(x)=a|f(x)| = a (where a0a \geq 0) is equivalent to f(x)=af(x) = a or f(x)=af(x) = -a. If a<0a \lt 0, there is no solution.

Solving Modulus Inequalities

InequalityEquivalent FormCondition
f(x)<a\|f(x)\| \lt aa<f(x)<a-a \lt f(x) \lt aa>0a \gt 0
f(x)>a\|f(x)\| \gt af(x)<af(x) \lt -a or f(x)>af(x) \gt aa0a \geq 0
f(x)a\|f(x)\| \leq aaf(x)a-a \leq f(x) \leq aa0a \geq 0
f(x)a\|f(x)\| \geq af(x)af(x) \leq -a or f(x)af(x) \geq aa0a \geq 0

Proof of f(x)<a    a<f(x)<a\|f(x)\| \lt a \iff -a \lt f(x) \lt a (for a>0a \gt 0):

()(\Rightarrow) If f(x)<a|f(x)| \lt a, then by definition of modulus, a<f(x)<a-a \lt f(x) \lt a.

()(\Leftarrow) If a<f(x)<a-a \lt f(x) \lt a, then f(x)<af(x) \lt a and f(x)<a-f(x) \lt a, so f(x)<a|f(x)| \lt a. \qed\qed

Graphs Involving Modulus

  • y=f(x)y = |f(x)|: Reflect any part of the graph of y=f(x)y = f(x) that lies below the xx-axis above it. The portion above the axis remains unchanged.
  • y=f(x)y = f(|x|): The graph for x0x \geq 0 is the same as y=f(x)y = f(x). The graph for x<0x \lt 0 is the reflection of the x0x \geq 0 portion in the yy-axis (i.e., f(x)f(|x|) is always an even function).
Examples
  • Solve 2x3=7|2x - 3| = 7:

    • 2x3=7    x=52x - 3 = 7 \implies x = 5, or 2x3=7    x=22x - 3 = -7 \implies x = -2.
    • Solutions: x=2x = -2 or x=5x = 5.
  • Solve 3x+1<5|3x + 1| \lt 5:

    • 5<3x+1<5    6<3x<4    2<x<43-5 \lt 3x + 1 \lt 5 \implies -6 \lt 3x \lt 4 \implies -2 \lt x \lt \frac{4}{3}.
    • Solution: x(2,  43)x \in \left(-2,\; \frac{4}{3}\right).
  • Solve x25x6|x^2 - 5x| \geq 6:

    • Case 1: x25x6    x25x60    (x6)(x+1)0    x1x^2 - 5x \geq 6 \implies x^2 - 5x - 6 \geq 0 \implies (x - 6)(x + 1) \geq 0 \implies x \leq -1 or x6x \geq 6.
    • Case 2: x25x6    x25x+60    (x2)(x3)0    2x3x^2 - 5x \leq -6 \implies x^2 - 5x + 6 \leq 0 \implies (x - 2)(x - 3) \leq 0 \implies 2 \leq x \leq 3.
    • Solution: x1x \leq -1 or 2x32 \leq x \leq 3 or x6x \geq 6.
  • Sketch y=x24x5y = |x^2 - 4x - 5|:

    • Factor: y=(x5)(x+1)y = |(x - 5)(x + 1)|.
    • The quadratic x24x5x^2 - 4x - 5 has roots at x=1x = -1 and x=5x = 5, with vertex at x=2x = 2 giving f(2)=485=9f(2) = 4 - 8 - 5 = -9.
    • Below the xx-axis on (1,5)(-1, 5); above on (,1][5,)(-\infty, -1] \cup [5, \infty).
    • Reflect the portion on (1,5)(-1, 5) upward. The minimum on (1,5)(-1, 5) becomes a maximum at (2,9)(2, 9).

Inequalities with Functions

Quadratic Inequalities

To solve ax2+bx+c>0ax^2 + bx + c \gt 0 (or <\lt, \geq, \leq), use the discriminant and the shape of the parabola:

  1. Find the roots of ax2+bx+c=0ax^2 + bx + c = 0 (if they exist).
  2. Sketch the parabola (opens upward if a>0a \gt 0, downward if a<0a \lt 0).
  3. Read off the intervals where the inequality is satisfied.
DiscriminantRootsa>0a \gt 0: f(x)>0f(x) \gt 0a>0a \gt 0: f(x)<0f(x) \lt 0
Δ>0\Delta \gt 0Two distinctx<x1x \lt x_1 or x>x2x \gt x_2x1<x<x2x_1 \lt x \lt x_2
Δ=0\Delta = 0One repeatedAll xx1x \neq x_1No solution
Δ<0\Delta \lt 0NoneAll x{R}x \in \mathbb{'\{'}R{'\}'}No solution

See inequalities.md) for the general theory.

Rational Inequalities

To solve f(x)g(x)>0\frac{f(x)}{g(x)} \gt 0 (or <\lt, \geq, \leq):

  1. Express both sides with a common denominator so one side is zero.
  2. Factor numerator and denominator completely.
  3. Draw a sign chart: identify all critical points (zeros of numerator and denominator) and test the sign of the expression in each interval.
  4. Exclude values where the denominator is zero (even for \geq or \leq).
warning

Critical pitfall: When multiplying both sides of an inequality by an expression involving xx, the direction of the inequality flips if that expression is negative. Instead of multiplying through, use a sign chart.

Examples
  • Solve x23x40x^2 - 3x - 4 \leq 0:

    • x23x4=(x4)(x+1)x^2 - 3x - 4 = (x - 4)(x + 1).
    • Roots: x=1x = -1 and x=4x = 4. Parabola opens upward.
    • f(x)0f(x) \leq 0 between the roots: 1x4-1 \leq x \leq 4.
  • Solve x1x+2>0\frac{x - 1}{x + 2} \gt 0:

    • Critical points: x=1x = 1 (numerator zero) and x=2x = -2 (denominator zero, excluded).
    • Sign chart:
      • x<2x \lt -2: both negative, quotient positive. Include.
      • 2<x<1-2 \lt x \lt 1: numerator negative, denominator positive, quotient negative. Exclude.
      • x>1x \gt 1: both positive, quotient positive. Include.
    • Solution: x<2x \lt -2 or x>1x \gt 1.
  • Solve x24x30\frac{x^2 - 4}{x - 3} \leq 0:

    • (x2)(x+2)x30\frac{(x - 2)(x + 2)}{x - 3} \leq 0.
    • Critical points: x=2x = -2, x=2x = 2, x=3x = 3 (excluded).
    • Sign chart: negative on (2,2)(2,3)(-2, 2) \cup (2, 3), positive elsewhere.
    • Include zeros of numerator: x=2x = -2 and x=2x = 2.
    • Solution: 2x2-2 \leq x \leq 2 or 2<x<32 \lt x \lt 3, i.e., [2,2](2,3)[-2, 2] \cup (2, 3).

Rational Functions

Definition

A rational function is any function of the form:

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

where P(x)P(x) and Q(x)Q(x) are polynomials and Q(x)0Q(x) \neq 0. The domain is {R}{x:Q(x)=0}\mathbb{'\{'}R{'\}'} \setminus \{x : Q(x) = 0\}.

Asymptotes

Vertical asymptotes occur at values of xx where Q(x)=0Q(x) = 0 but P(x)0P(x) \neq 0. Near a vertical asymptote at x=ax = a, the magnitude of f(x)f(x) grows without bound.

Horizontal asymptotes describe the end behaviour of f(x)f(x) as x±x \to \pm\infty. Compare the degrees of PP and QQ:

ConditionHorizontal Asymptote
degP<degQ\deg P \lt \deg Qy=0y = 0 (the xx-axis)
degP=degQ\deg P = \deg Qy=leadingcoefficientofPleadingcoefficientofQy = \frac{\mathrm{leading coefficient of } P}{\mathrm{leading coefficient of } Q}
degP=degQ+1\deg P = \deg Q + 1Oblique asymptote (polynomial long division)
degP>degQ+1\deg P \gt \deg Q + 1No horizontal or oblique asymptote

Proof (horizontal asymptote when degP=degQ\deg P = \deg Q): Let P(x)=anxn+P(x) = a_n x^n + \cdots and Q(x)=bnxn+Q(x) = b_n x^n + \cdots. Then:

limx±P(x)Q(x)=limx±anxn(1+c1x+)bnxn(1+d1x+)=anbn\qed\lim_{x \to \pm\infty} \frac{P(x)}{Q(x)} = \lim_{x \to \pm\infty} \frac{a_n x^n \left(1 + \frac{c_1}{x} + \cdots\right)}{b_n x^n \left(1 + \frac{d_1}{x} + \cdots\right)} = \frac{a_n}{b_n} \qed

Behaviour Near Vertical Asymptotes

For a vertical asymptote at x=ax = a, the sign of f(x)f(x) on each side depends on the signs of the remaining factors. Analyse using a sign chart or by evaluating test points on each side.

Sketching Rational Functions

  1. Factor numerator and denominator; cancel common factors (these produce "holes," not asymptotes).
  2. Determine the domain.
  3. Find vertical asymptotes (zeros of denominator after cancellation).
  4. Find horizontal/oblique asymptotes.
  5. Find xx- and yy-intercepts.
  6. Use sign analysis to determine behaviour near asymptotes.
  7. Sketch.
Examples
  • Sketch f(x)=2x+1x3f(x) = \frac{2x + 1}{x - 3}:

    • Domain: x3x \neq 3. Vertical asymptote: x=3x = 3.
    • Degrees equal (both 1), so horizontal asymptote at y=21=2y = \frac{2}{1} = 2.
    • yy-intercept: f(0)=13=13f(0) = \frac{1}{-3} = -\frac{1}{3}.
    • xx-intercept: 2x+1=0    x=122x + 1 = 0 \implies x = -\frac{1}{2}.
    • Sign analysis: f(x)>0f(x) \gt 0 for x<12x \lt -\frac{1}{2} or x>3x \gt 3; f(x)<0f(x) \lt 0 for 12<x<3-\frac{1}{2} \lt x \lt 3.
    • As x3+x \to 3^+, f(x)+f(x) \to +\infty; as x3x \to 3^-, f(x)f(x) \to -\infty.
  • Sketch f(x)=x21x24f(x) = \frac{x^2 - 1}{x^2 - 4}:

    • Factor: f(x)=(x1)(x+1)(x2)(x+2)f(x) = \frac{(x - 1)(x + 1)}{(x - 2)(x + 2)}.
    • Domain: x±2x \neq \pm 2. Vertical asymptotes: x=2x = 2 and x=2x = -2.
    • Degrees equal (both 2), horizontal asymptote at y=11=1y = \frac{1}{1} = 1.
    • xx-intercepts: x=±1x = \pm 1. yy-intercept: f(0)=14=14f(0) = \frac{-1}{-4} = \frac{1}{4}.
    • As x2+x \to 2^+, numerator 3>0\to 3 \gt 0, denominator 0+\to 0^+, so f(x)+f(x) \to +\infty.
    • As x2+x \to -2^+, numerator 3<0\to -3 \lt 0, denominator 0\to 0^-, so f(x)+f(x) \to +\infty.

Graphical Methods for Solving Equations

Using Graph Intersection

The solutions to f(x)=g(x)f(x) = g(x) correspond to the xx-coordinates of the intersection points of the curves y=f(x)y = f(x) and y=g(x)y = g(x).

This is particularly useful when:

  • An exact algebraic solution is difficult or impossible (e.g., ex=x+2e^x = x + 2).
  • You need to determine the number of solutions rather than their exact values.

Number of Solutions from Graph Features

For the equation f(x)=kf(x) = k (where kk is a constant), the number of solutions equals the number of times the horizontal line y=ky = k intersects the graph of y=f(x)y = f(x).

Key observations:

  • At a local maximum or minimum of ff, a small change in kk can change the number of solutions.
  • If kk equals the maximum or minimum value, the corresponding intersection point is a tangency (double root).
Examples
  • Find the number of solutions to x33x+1=0x^3 - 3x + 1 = 0:

    • Let f(x)=x33x+1f(x) = x^3 - 3x + 1. Then f(x)=3x23=3(x1)(x+1)f'(x) = 3x^2 - 3 = 3(x - 1)(x + 1).
    • Critical points: x=1x = -1 (local maximum, f(1)=3f(-1) = 3) and x=1x = 1 (local minimum, f(1)=1f(1) = -1).
    • Since f(1)=3>0f(-1) = 3 \gt 0 and f(1)=1<0f(1) = -1 \lt 0, the graph crosses the xx-axis three times.
    • Three distinct real solutions.
  • The equation 2x=x+32^x = x + 3 has exactly two solutions:

    • f(x)=2xf(x) = 2^x is strictly increasing and concave up; g(x)=x+3g(x) = x + 3 is a straight line.
    • At x=0x = 0: 20=1<3=g(0)2^0 = 1 \lt 3 = g(0).
    • At x=2x = 2: 22=4<5=g(2)2^2 = 4 \lt 5 = g(2).
    • At x=3x = 3: 23=8>6=g(3)2^3 = 8 \gt 6 = g(3).
    • By the intermediate value theorem, there is a root in (2,3)(2, 3).
    • For large negative xx: 2x02^x \to 0 and x+3x + 3 \to -\infty, so 2x>x+32^x \gt x + 3.
    • Since 2x2^x grows faster than any linear function, there is exactly one more crossing for some x<0x \lt 0.
    • Total: exactly 2 solutions.

Common Pitfalls

Modulus function errors
  • Forgetting both cases. When solving f(x)=a|f(x)| = a, you must consider f(x)=af(x) = a AND f(x)=af(x) = -a. Dropping one case loses solutions.
  • Wrong inequality direction. f(x)<a\|f(x)\| \lt a means f(x)f(x) is between a-a and aa (a single interval). f(x)>a\|f(x)\| \gt a means f(x)f(x) is outside this range (two disjoint intervals). Confusing these produces wrong solution sets.
  • Squaring both sides carelessly. Squaring f(x)=g(x)|f(x)| = |g(x)| to get f(x)2=g(x)2f(x)^2 = g(x)^2 is valid, but squaring f(x)=g(x)f(x) = g(x) can introduce extraneous solutions (e.g., x=xx = \sqrt{x} squares to x2=xx^2 = x, giving x=0x = 0 or x=1x = 1, but x=1x = 1 is extraneous).
Rational function errors
  • Cancelling factors blindly. x24x2=x+2\frac{x^2 - 4}{x - 2} = x + 2 only for x2x \neq 2. The point x=2x = 2 is a hole, not a point on the graph.
  • Confusing holes and asymptotes. If a factor cancels from both numerator and denominator, the result is a hole (removable discontinuity), not a vertical asymptote.
  • Wrong horizontal asymptote. The horizontal asymptote depends on the leading terms only. Do not set the entire numerator equal to the entire denominator.
Inequality errors
  • Multiplying by a variable. Multiplying f(x)g(x)>0\frac{f(x)}{g(x)} \gt 0 by g(x)g(x) flips the inequality when g(x)<0g(x) \lt 0. Always use a sign chart instead.
  • Including excluded values. For f(x)g(x)0\frac{f(x)}{g(x)} \geq 0, values where g(x)=0g(x) = 0 are still excluded from the domain, even though the inequality is non-strict.
  • Wrong discriminant analysis. A negative discriminant with a>0a \gt 0 means the quadratic is always positive, not always negative.

Wrap-up Questions

Wrap-up Questions
  1. Question: Let f(x)=2x6x+1f(x) = \dfrac{2x - 6}{x + 1} and g(x)=x24g(x) = x^2 - 4. Find (fg)(x)(f \circ g)(x) and state its domain.
Answer
  • (fg)(x)=f(g(x))=f(x24)=2(x24)6(x24)+1=2x214x23(f \circ g)(x) = f(g(x)) = f(x^2 - 4) = \dfrac{2(x^2 - 4) - 6}{(x^2 - 4) + 1} = \dfrac{2x^2 - 14}{x^2 - 3}
  • dom(g)={R}\mathrm{dom}(g) = \mathbb{'\{'}R{'\}'}.
  • dom(f)={x{R}:x1}\mathrm{dom}(f) = \{x \in \mathbb{'\{'}R{'\}'} : x \neq -1\}, so we require g(x)1g(x) \neq -1, i.e. x241    x23    x±3x^2 - 4 \neq -1 \implies x^2 \neq 3 \implies x \neq \pm\sqrt{3}.
  • dom(fg)={R}{3,  3}\mathrm{dom}(f \circ g) = \mathbb{'\{'}R{'\}'} \setminus \{\sqrt{3},\; -\sqrt{3}\}.
  1. Question: Let f(x)=3x5f(x) = 3x - 5. Find f1(x)f^{-1}(x) and verify that f1(f(x))=xf^{-1}(f(x)) = x.
Answer
  • Set y=3x5y = 3x - 5. Solving for xx: x=y+53x = \dfrac{y + 5}{3}.
  • Interchanging xx and yy: f1(x)=x+53f^{-1}(x) = \dfrac{x + 5}{3}.
  • Verification: f1(f(x))=(3x5)+53=3x3=xf^{-1}(f(x)) = \dfrac{(3x - 5) + 5}{3} = \dfrac{3x}{3} = x. Confirmed.
  1. Question: A quadratic function f(x)f(x) has a maximum value of 77 at x=2x = 2, and f(0)=5f(0) = -5. Find f(x)f(x).
Answer
  • Since the maximum is at (2,7)(2, 7) and the parabola opens downward, write in vertex form: f(x)=a(x2)2+7f(x) = a(x - 2)^2 + 7 with a<0a < 0.
  • Using f(0)=5f(0) = -5: a(02)2+7=5    4a+7=5    a=3a(0 - 2)^2 + 7 = -5 \implies 4a + 7 = -5 \implies a = -3.
  • Therefore f(x)=3(x2)2+7=3x2+12x5f(x) = -3(x - 2)^2 + 7 = -3x^2 + 12x - 5.
  1. Question: Find the range of values of kk for which the equation x2+2(k1)x+k+5=0x^2 + 2(k - 1)x + k + 5 = 0 has two distinct real roots.
Answer
  • For two distinct real roots, Δ>0\Delta > 0.
  • Δ=[2(k1)]24(1)(k+5)=4(k1)24k20=4(k22k+1)4k20=4k28k+44k20=4k212k16\Delta = [2(k - 1)]^2 - 4(1)(k + 5) = 4(k - 1)^2 - 4k - 20 = 4(k^2 - 2k + 1) - 4k - 20 = 4k^2 - 8k + 4 - 4k - 20 = 4k^2 - 12k - 16.
  • 4k212k16>0    k23k4>0    (k4)(k+1)>04k^2 - 12k - 16 > 0 \implies k^2 - 3k - 4 > 0 \implies (k - 4)(k + 1) > 0.
  • Therefore k<1k < -1 or k>4k > 4.
  1. Question: Solve the equation 32x103x+9=03^{2x} - 10 \cdot 3^x + 9 = 0.
Answer
  • Let u=3xu = 3^x (note u>0u > 0). The equation becomes u210u+9=0u^2 - 10u + 9 = 0.
  • (u1)(u9)=0    u=1(u - 1)(u - 9) = 0 \implies u = 1 or u=9u = 9.
  • Case 1: 3x=1    x=03^x = 1 \implies x = 0.
  • Case 2: 3x=9=32    x=23^x = 9 = 3^2 \implies x = 2.
  • Solutions: x=0x = 0 or x=2x = 2.
  1. Question: Solve log3(x2)+log3(x+6)=2\log_3(x - 2) + \log_3(x + 6) = 2.
Answer
  • Product law: log3[(x2)(x+6)]=2\log_3[(x - 2)(x + 6)] = 2.
  • Convert: (x2)(x+6)=32=9(x - 2)(x + 6) = 3^2 = 9.
  • x2+4x12=9    x2+4x21=0x^2 + 4x - 12 = 9 \implies x^2 + 4x - 21 = 0.
  • (x+7)(x3)=0    x=7(x + 7)(x - 3) = 0 \implies x = -7 or x=3x = 3.
  • Domain: x2>0    x>2x - 2 > 0 \implies x > 2. Therefore x=7x = -7 is rejected.
  • Solution: x=3x = 3.
  1. Question: The graph of y=f(x)y = f(x) passes through the points (1,4)(1, 4) and (3,10)(3, 10). State the coordinates of the corresponding points on the graph of y=2f(x1)+3y = 2f(x - 1) + 3.
Answer
  • For a point (a,b)(a, b) on y=f(x)y = f(x) (so f(a)=bf(a) = b), the corresponding point on y=2f(x1)+3y = 2f(x - 1) + 3 is found by setting x1=ax - 1 = a, i.e. x=a+1x = a + 1, and y=2b+3y = 2b + 3.
  • (1,4)(1+1,  2×4+3)=(2,11)(1, 4) \mapsto (1 + 1,\; 2 \times 4 + 3) = (2, 11).
  • (3,10)(3+1,  2×10+3)=(4,23)(3, 10) \mapsto (3 + 1,\; 2 \times 10 + 3) = (4, 23).
  1. Question: Given f(x)=log2(x+3)f(x) = \log_2(x + 3) and g(x)=2x1g(x) = 2^x - 1, show that ff and gg are inverse functions of each other, and state the domain and range of f1f^{-1}.
Answer
  • (fg)(x)=f(g(x))=f(2x1)=log2((2x1)+3)=log2(2x+2)(f \circ g)(x) = f(g(x)) = f(2^x - 1) = \log_2((2^x - 1) + 3) = \log_2(2^x + 2).
  • Wait -- let us verify properly. g(x)=2x1g(x) = 2^x - 1, so f(g(x))=log2(2x1+3)=log2(2x+2)f(g(x)) = \log_2(2^x - 1 + 3) = \log_2(2^x + 2). This does not simplify to xx directly.
  • Let us re-examine. For ff and gg to be inverses, we need f(g(x))=xf(g(x)) = x.
  • f(g(x))=log2(2x+2)xf(g(x)) = \log_2(2^x + 2) \neq x in general. Let us check: at x=0x = 0, f(g(0))=log2(1+2)=log230f(g(0)) = \log_2(1 + 2) = \log_2 3 \neq 0.
  • These are not inverse functions. (This is a trick question designed to test careful verification.)
  • To find the true inverse of f(x)=log2(x+3)f(x) = \log_2(x + 3):
    • Set y=log2(x+3)    2y=x+3    x=2y3y = \log_2(x + 3) \implies 2^y = x + 3 \implies x = 2^y - 3.
    • f1(x)=2x3f^{-1}(x) = 2^x - 3.
  • dom(f1)=range(f)={R}\mathrm{dom}(f^{-1}) = \mathrm{range}(f) = \mathbb{'\{'}R{'\}'} (since log2(x+3)\log_2(x + 3) takes all real values for x>3x > -3).
  • range(f1)=dom(f)=(3,)\mathrm{range}(f^{-1}) = \mathrm{dom}(f) = (-3, \infty).
  1. Question: Given f(x)=x2+2x3f(x) = x^2 + 2x - 3, find the range of ff when (a) the domain is {R}\mathbb{'\{'}R{'\}'}, and (b) the domain is [0,4][0, 4].
Answer
  • Completing the square: f(x)=(x2+2x+1)13=(x+1)24f(x) = (x^2 + 2x + 1) - 1 - 3 = (x + 1)^2 - 4.
  • The vertex is at (1,4)(-1, -4).
  • (a) Domain {R}\mathbb{'\{'}R{'\}'}: Since the parabola opens upward with minimum 4-4, range is [4,)[-4, \infty).
  • (b) Domain [0,4][0, 4]:
    • f(0)=3f(0) = -3, f(4)=16+83=21f(4) = 16 + 8 - 3 = 21.
    • On [0,4][0, 4], the function is increasing (vertex at x=1x = -1 is to the left of the interval).
    • Range: [3,21][-3, 21].
  1. Question: Let f(x)=xx2f(x) = \dfrac{x}{x - 2} for x2x \neq 2. Find f1f^{-1}, and evaluate f1(3)+f(3)f^{-1}(3) + f(3).
Answer
  • Set y=xx2y = \dfrac{x}{x - 2}.
  • y(x2)=x    yx2y=x    yxx=2y    x(y1)=2y    x=2yy1y(x - 2) = x \implies yx - 2y = x \implies yx - x = 2y \implies x(y - 1) = 2y \implies x = \dfrac{2y}{y - 1}.
  • f1(x)=2xx1f^{-1}(x) = \dfrac{2x}{x - 1}, with domain {R}{1}\mathbb{'\{'}R{'\}'} \setminus \{1\}.
  • f1(3)=2(3)31=3f^{-1}(3) = \dfrac{2(3)}{3 - 1} = 3.
  • f(3)=332=3f(3) = \dfrac{3}{3 - 2} = 3.
  • f1(3)+f(3)=3+3=6f^{-1}(3) + f(3) = 3 + 3 = 6.

For the A-Level treatment of this topic, see Functions.


tip

Diagnostic Test Ready to test your understanding of Functions? The diagnostic test contains the hardest questions within the DSE specification for this topic, each with a full worked solution.

Unit tests probe edge cases and common misconceptions. Integration tests combine Functions with other DSE mathematics topics to test synthesis under exam conditions.

See Diagnostic Guide for instructions on self-marking and building a personal test matrix.


DSE Exam Technique

Showing Working

For function problems in DSE Paper 1:

  1. When determining the domain, explicitly state each restriction (division by zero, square root, logarithm).
  2. When sketching graphs, label all intercepts, asymptotes, and key points.
  3. When checking injectivity/surjectivity, provide a specific counterexample.
  4. When finding the range, show the maximum/minimum value and justify why it is attainable.

Significant Figures

Exact values are preferred. Decimal answers to 3 significant figures.

Common DSE Question Types

  1. Domain and range determination for various function types.
  2. Injectivity/surjectivity proofs and counterexamples.
  3. Graph sketching with transformations.
  4. Composite function evaluation and domain finding.
  5. Piecewise function evaluation and graphing.

Additional Worked Examples

Worked Example 9: Determining injectivity

Is the function f(x)=x33xf(x) = x^3 - 3x injective on {R}\mathbb{'\{'}R{'\}'}?

Solution

f(0)=0f(0) = 0, f(3)=3333=0f(\sqrt{3}) = 3\sqrt{3} - 3\sqrt{3} = 0, f(3)=0f(-\sqrt{3}) = 0.

Since f(0)=f(3)=f(3)f(0) = f(\sqrt{3}) = f(-\sqrt{3}) and the inputs are distinct, ff is not injective on {R}\mathbb{'\{'}R{'\}'}.

Note: ff is injective on [1,)[1, \infty) since f(x)=3x23=3(x1)(x+1)>0f'(x) = 3x^2 - 3 = 3(x-1)(x+1) > 0 for x>1x > 1.

Worked Example 10: Surjectivity

Is f(x)=x2+1f(x) = x^2 + 1 surjective if the codomain is {R}\mathbb{'\{'}R{'\}'}?

Solution

No. Since x20x^2 \geq 0 for all real xx, we have f(x)=x2+11f(x) = x^2 + 1 \geq 1. The value 0{R}0 \in \mathbb{'\{'}R{'\}'} is not attained. Therefore ff is not surjective onto {R}\mathbb{'\{'}R{'\}'}.

If the codomain is restricted to [1,)[1, \infty), then ff is surjective.

Worked Example 11: Graph of a piecewise function

Sketch the graph of f(x)={xif x2x22xif x>2f(x) = \begin{cases} |x| & \text{if } x \leq 2 \\ x^2 - 2x & \text{if } x > 2 \end{cases}

Solution

For x2x \leq 2: f(x)=xf(x) = |x|, which is a V-shape with vertex at (0,0)(0, 0).

At x=2x = 2: f(2)=2f(2) = 2.

For x>2x > 2: f(x)=x22x=(x1)21f(x) = x^2 - 2x = (x-1)^2 - 1.

At x=2+x = 2^+: f(2)=44=0f(2) = 4 - 4 = 0.

There is a jump discontinuity at x=2x = 2: f(2)=2f(2) = 2 but limx2+f(x)=0\lim_{x \to 2^+} f(x) = 0.

For x>2x > 2, the function is a parabola with vertex at (1,1)(1, -1), but since x>2x > 2, we only see the right branch, which is strictly increasing.

Worked Example 12: Even and odd function properties

If ff is an odd function and gg is an even function, determine whether fgf \circ g is even, odd, or neither.

Solution

(fg)(x)=f(g(x))=f(g(x))=(fg)(x)(f \circ g)(-x) = f(g(-x)) = f(g(x)) = (f \circ g)(x)

Since gg is even: g(x)=g(x)g(-x) = g(x).

So (fg)(x)=(fg)(x)(f \circ g)(-x) = (f \circ g)(x), which means fgf \circ g is even.


DSE Exam-Style Questions

DSE Practice 1. Let f(x)=2x+3x1f(x) = \dfrac{2x + 3}{x - 1}. Find the domain, range, and determine whether ff is injective.

Solution

Domain: x1x \neq 1, so dom(f)={R}{1}\mathrm{dom}(f) = \mathbb{'\{'}R{'\}'} \setminus \{1\}.

f(x)=2+5x1f(x) = 2 + \dfrac{5}{x - 1}.

For x>1x > 1: as x1+x \to 1^+, f(x)+f(x) \to +\infty; as x+x \to +\infty, f(x)2+f(x) \to 2^+. Range: (2,+)(2, +\infty).

For x<1x < 1: as x1x \to 1^-, f(x)f(x) \to -\infty; as xx \to -\infty, f(x)2f(x) \to 2^-. Range: (,2)(-\infty, 2).

Combined range: {R}{2}\mathbb{'\{'}R{'\}'} \setminus \{2\}.

ff is injective: for x>1x > 1, ff is strictly decreasing (derivative 5/(x1)2<0-5/(x-1)^2 < 0); for x<1x < 1, ff is also strictly decreasing. And no value from (2,+)(2, +\infty) overlaps with (,2)(-\infty, 2).

DSE Practice 2. Let f(x)=x22x+3f(x) = x^2 - 2x + 3 for x1x \geq 1. Find the range and determine whether ff has an inverse.

Solution

f(x)=(x1)2+2f(x) = (x - 1)^2 + 2. Since x1x \geq 1 and the vertex is at (1,2)(1, 2), ff is strictly increasing on [1,)[1, \infty).

Range: [2,)[2, \infty).

Since ff is strictly increasing (hence injective) on [1,)[1, \infty), it has an inverse.

DSE Practice 3. A function is defined by f(x)=xf(x) = \lfloor x \rfloor (the greatest integer less than or equal to xx). Find f(3.7)f(3.7), f(2.1)f(-2.1), and f(0)f(0).

Solution

f(3.7)=3f(3.7) = 3, f(2.1)=3f(-2.1) = -3, f(0)=0f(0) = 0.

DSE Practice 4. Determine whether f(x)=x3+xf(x) = x^3 + x is odd, even, or neither.

Solution

f(x)=(x)3+(x)=x3x=(x3+x)=f(x)f(-x) = (-x)^3 + (-x) = -x^3 - x = -(x^3 + x) = -f(x)

Since f(x)=f(x)f(-x) = -f(x), ff is odd.

DSE Practice 5. The function ff is defined on {R}\mathbb{'\{'}R{'\}'} by f(x)=ax2+bx+cf(x) = ax^2 + bx + c. Given that f(0)=5f(0) = 5, f(1)=4f(1) = 4, and f(1)=10f(-1) = 10, find aa, bb, and cc.

Solution

f(0)=c=5f(0) = c = 5.

f(1)=a+b+5=4    a+b=1(i)f(1) = a + b + 5 = 4 \implies a + b = -1 \quad \text{(i)}.

f(1)=ab+5=10    ab=5(ii)f(-1) = a - b + 5 = 10 \implies a - b = 5 \quad \text{(ii)}.

(i) + (ii): 2a=4    a=22a = 4 \implies a = 2. From (i): b=3b = -3.

f(x)=2x23x+5f(x) = 2x^2 - 3x + 5.