Skip to main content

Functions and Equations

Function Notation

A function ff maps each element of a set (the domain) to exactly one element of another set (the codomain).

f:XYf: X \to Y

We write f(x)=yf(x) = y where xx is the input (independent variable) and yy is the output (dependent variable).

Key Terminology

TermDefinition
DomainSet of all valid inputs
CodomainSet of possible outputs
RangeSet of actual outputs (subset of codomain)
ArgumentThe input value, e.g., xx in f(x)f(x)
ImageThe output for a given input

Vertical Line Test

A relation is a function if and only if every vertical line intersects the graph at most once.


Domain and Range

Finding the Domain

The domain of a real-valued function is restricted by:

  1. Denominators must be non-zero: g(x)0g(x) \neq 0
  2. Square roots must have non-negative arguments: g(x)0g(x) \ge 0
  3. Logarithms must have positive arguments: g(x)>0g(x) \gt 0
Example

Find the domain of f(x)=1x2\displaystyle f(x) = \frac{1}{\sqrt{x-2}}.

We need x2>0x - 2 \gt 0 (strictly positive since it is in the denominator).

Domain: x>2x \gt 2, or (2,)(2, \infty).

Example

Find the domain of f(x)=ln(x+3)+5x\displaystyle f(x) = \ln(x+3) + \sqrt{5-x}.

From ln(x+3)\ln(x+3): x+3>0    x>3x + 3 \gt 0 \implies x \gt -3.

From 5x\sqrt{5-x}: 5x0    x55 - x \ge 0 \implies x \le 5.

Domain: (3,5](-3, 5].

Finding the Range

To find the range, consider the domain and the behaviour of the function:

  • Solve y=f(x)y = f(x) for xx and find restrictions on yy.
  • Consider the graph: what yy-values are achieved?
  • Check for horizontal asymptotes and extrema.
Example

Find the range of f(x)=x24x+3f(x) = x^2 - 4x + 3.

Completing the square: f(x)=(x2)21f(x) = (x-2)^2 - 1.

Since (x2)20(x-2)^2 \ge 0, the minimum value is 1-1.

Range: [1,)[-1, \infty).


Composite Functions

Definition

The composite function fgf \circ g (read "f of g") is defined by:

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

This means: first apply gg to xx, then apply ff to the result.

Order Matters

In general, fggff \circ g \neq g \circ f.

Example

Given f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2:

(fg)(x)=f(g(x))=f(x2)=2x2+1(f \circ g)(x) = f(g(x)) = f(x^2) = 2x^2 + 1(gf)(x)=g(f(x))=g(2x+1)=(2x+1)2=4x2+4x+1(g \circ f)(x) = g(f(x)) = g(2x+1) = (2x+1)^2 = 4x^2 + 4x + 1

Clearly fggff \circ g \neq g \circ f.

Domain of Composite Functions

The domain of fgf \circ g consists of all xx in the domain of gg such that g(x)g(x) is in the domain of ff.

Example

Given f(x)=xf(x) = \sqrt{x} and g(x)=x5g(x) = x - 5, find the domain of fgf \circ g.

(fg)(x)=f(x5)=x5(f \circ g)(x) = f(x - 5) = \sqrt{x - 5}

We need x50x - 5 \ge 0, so x5x \ge 5.

Domain of fgf \circ g: [5,)[5, \infty).


Inverse Functions

Definition

The inverse function f1f^{-1} of ff satisfies:

f1(f(x))=xandf(f1(x))=xf^{-1}(f(x)) = x \quad \mathrm{and} \quad f(f^{-1}(x)) = x

Existence of Inverses

A function has an inverse if and only if it is one-to-one (injective), meaning each output comes from exactly one input. This is verified by the horizontal line test: no horizontal line intersects the graph more than once.

Finding the Inverse

  1. Write y=f(x)y = f(x).
  2. Swap xx and yy.
  3. Solve for yy.
  4. Replace yy with f1(x)f^{-1}(x).
Example

Find the inverse of f(x)=2x+3x1f(x) = \dfrac{2x + 3}{x - 1}.

y=2x+3x1y = \frac{2x + 3}{x - 1}

Swap xx and yy:

x=2y+3y1x = \frac{2y + 3}{y - 1}x(y1)=2y+3x(y - 1) = 2y + 3xyx=2y+3xy - x = 2y + 3xy2y=x+3xy - 2y = x + 3y(x2)=x+3y(x - 2) = x + 3f1(x)=x+3x2f^{-1}(x) = \frac{x + 3}{x - 2}

Domain and Range of Inverses

The domain of f1f^{-1} equals the range of ff, and the range of f1f^{-1} equals the domain of ff.

Graph of Inverse Functions

The graph of y=f1(x)y = f^{-1}(x) is the reflection of y=f(x)y = f(x) in the line y=xy = x.

Restricting Domains

Functions that are not one-to-one on their natural domain can have inverses if their domain is restricted.

Example

f(x)=x2f(x) = x^2 is not one-to-one on {R}\mathbb{'\{'}R{'\}'}, but f:[0,)[0,)f: [0, \infty) \to [0, \infty) defined by f(x)=x2f(x) = x^2 has inverse f1(x)=xf^{-1}(x) = \sqrt{x}.


Function Transformations

Summary of Transformations

Given y=f(x)y = f(x):

TransformationEffect on GraphEquation
Vertical translation up by kkMoves up kk unitsy=f(x)+ky = f(x) + k
Vertical translation down by kkMoves down kk unitsy=f(x)ky = f(x) - k
Horizontal translation right by hhMoves right hh unitsy=f(xh)y = f(x - h)
Horizontal translation left by hhMoves left hh unitsy=f(x+h)y = f(x + h)
Vertical stretch by factor aaStretches vertically by aay=af(x)y = af(x)
Vertical compression by factor aaCompresses by 1a\dfrac{1}{a}y=af(x)y = af(x) where 0<a<10 \lt a \lt 1
Horizontal stretch by factor bbStretches horizontally by bby=f ⁣(xb)y = f\!\left(\dfrac{x}{b}\right)
Reflection in xx-axisFlips verticallyy=f(x)y = -f(x)
Reflection in yy-axisFlips horizontallyy=f(x)y = f(-x)
Reflection in y=xy = xSwaps xx and yyy=f1(x)y = f^{-1}(x)
Exam Tip

Horizontal transformations are often counterintuitive. f(x2)f(x - 2) shifts the graph to the right by 2 (not left). f(2x)f(2x) compresses horizontally by a factor of 12\dfrac{1}{2} (not stretches).

Order of Transformations

When combining transformations, apply in this order:

  1. Horizontal translations (shifts left/right)
  2. Horizontal stretches/compressions
  3. Reflections
  4. Vertical stretches/compressions
  5. Vertical translations (shifts up/down)
Example

Describe the sequence of transformations that maps f(x)=x2f(x) = x^2 to g(x)=2(x3)2+1g(x) = 2(x-3)^2 + 1.

Starting from f(x)=x2f(x) = x^2:

  1. Translate right by 3: (x3)2(x-3)^2
  2. Vertical stretch by factor 2: 2(x3)22(x-3)^2
  3. Translate up by 1: 2(x3)2+12(x-3)^2 + 1

The vertex moves from (0,0)(0, 0) to (3,1)(3, 1), and the parabola is narrower.

Effect on Key Points

Point on y=f(x)y = f(x)Point on y=f(xh)+ky = f(x-h)+k
(x,y)(x, y)(x+h,y+k)(x+h, y+k)

Graphing Functions

Key Features to Identify

  1. Domain and range
  2. Intercepts: xx-intercepts (zeros) and yy-intercept
  3. Symmetry: even (f(x)=f(x)f(-x) = f(x)), odd (f(x)=f(x)f(-x) = -f(x)), periodic
  4. Asymptotes: vertical, horizontal, oblique
  5. Stationary points: local maxima and minima
  6. End behaviour: as x±x \to \pm\infty

Asymptotes

Vertical asymptotes occur at values of xx where the function is undefined and the function approaches ±\pm\infty.

Horizontal asymptotes describe the behaviour as x±x \to \pm\infty.

For rational functions P(x)Q(x)\dfrac{P(x)}{Q(x)}:

  • If degP<degQ\deg P \lt \deg Q: horizontal asymptote at y=0y = 0.
  • If degP=degQ\deg P = \deg Q: horizontal asymptote at y=leadingcoefficientofPleadingcoefficientofQy = \dfrac{\mathrm{leading coefficient of } P}{\mathrm{leading coefficient of } Q}.
  • If degP=degQ+1\deg P = \deg Q + 1: oblique asymptote (found by polynomial division).
Example

Find the asymptotes of f(x)=2x+1x3\displaystyle f(x) = \frac{2x + 1}{x - 3}.

Vertical asymptote: x3=0    x=3x - 3 = 0 \implies x = 3.

Horizontal asymptote: Same degree, so y=21=2y = \dfrac{2}{1} = 2.

Function Graphing: Domain, Range, Asymptotes

Use the sliders to adjust parameters and observe how the domain, range, and asymptotic behaviour change.


Polynomial Equations

The Factor Theorem

(xa)(x - a) is a factor of P(x)P(x) if and only if P(a)=0P(a) = 0.

The Remainder Theorem

When P(x)P(x) is divided by (xa)(x - a), the remainder is P(a)P(a).

Example

Find the remainder when P(x)=2x33x2+5x7P(x) = 2x^3 - 3x^2 + 5x - 7 is divided by (x+2)(x + 2).

P(2)=2(8)3(4)+5(2)7=1612107=45P(-2) = 2(-8) - 3(4) + 5(-2) - 7 = -16 - 12 - 10 - 7 = -45

The remainder is 45-45.

The Rational Root Theorem

If P(x)=anxn++a0P(x) = a_n x^n + \cdots + a_0 has integer coefficients, then any rational root pq\dfrac{p}{q} (in lowest terms) satisfies:

  • pp divides a0a_0
  • qq divides ana_n
Example

Find all roots of P(x)=2x3x213x6P(x) = 2x^3 - x^2 - 13x - 6.

Possible rational roots: ±1,±2,±3,±6,±12,±32\pm 1, \pm 2, \pm 3, \pm 6, \pm \dfrac{1}{2}, \pm \dfrac{3}{2}.

P(3)=549396=0P(3) = 54 - 9 - 39 - 6 = 0, so x=3x = 3 is a root.

Divide by (x3)(x - 3):

2x3x213x6=(x3)(2x2+5x+2)2x^3 - x^2 - 13x - 6 = (x - 3)(2x^2 + 5x + 2)2x2+5x+2=(2x+1)(x+2)2x^2 + 5x + 2 = (2x + 1)(x + 2)

Roots: x=3x = 3, x=12x = -\dfrac{1}{2}, x=2x = -2.

Polynomial Division

Long division and synthetic division are two methods for dividing polynomials.

Example

Divide x3+2x25x6x^3 + 2x^2 - 5x - 6 by (x+1)(x + 1) using synthetic division.

-1 | 1 2 -5 -6
| -1 -1 6
|----------------
1 1 -6 0

Result: x2+x6=(x+3)(x2)x^2 + x - 6 = (x+3)(x-2).

So x3+2x25x6=(x+1)(x+3)(x2)x^3 + 2x^2 - 5x - 6 = (x+1)(x+3)(x-2).

Sum and Product of Roots

For axn+bxn1+=0ax^n + bx^{n-1} + \cdots = 0 with roots α,β,γ,\alpha, \beta, \gamma, \ldots:

Quadratic (ax2+bx+c=0ax^2 + bx + c = 0):

α+β=ba,αβ=ca\alpha + \beta = -\frac{b}{a}, \quad \alpha\beta = \frac{c}{a}

Cubic (ax3+bx2+cx+d=0ax^3 + bx^2 + cx + d = 0):

α+β+γ=ba,αβ+βγ+γα=ca,αβγ=da\alpha + \beta + \gamma = -\frac{b}{a}, \quad \alpha\beta + \beta\gamma + \gamma\alpha = \frac{c}{a}, \quad \alpha\beta\gamma = -\frac{d}{a}

Inequalities

Linear Inequalities

ax+b>0    x>ba(ifa>0)ax + b \gt 0 \implies x \gt -\frac{b}{a} \quad (\mathrm{if } a \gt 0)
Exam Tip

When multiplying or dividing an inequality by a negative number, reverse the inequality sign.

Quadratic Inequalities

Factorise the quadratic and use a sign diagram (or test points in each interval).

Example

Solve x25x+60x^2 - 5x + 6 \le 0.

(x2)(x3)0(x - 2)(x - 3) \le 0

The product is non-positive when 2x32 \le x \le 3.

Solution: [2,3][2, 3].

Absolute Value Inequalities

ax+bc    cax+bc|ax + b| \le c \iff -c \le ax + b \le c ax+bc    ax+bcorax+bc|ax + b| \ge c \iff ax + b \le -c \quad \mathrm{or} \quad ax + b \ge c
Example

Solve 2x3<5|2x - 3| \lt 5.

5<2x3<5-5 \lt 2x - 3 \lt 52<2x<8-2 \lt 2x \lt 81<x<4-1 \lt x \lt 4

Solution: (1,4)(-1, 4).

Polynomial Inequalities

  1. Move all terms to one side.
  2. Factorise completely.
  3. Find the zeros.
  4. Use a sign diagram to determine where the expression is positive/negative.

Simultaneous Equations

Linear Systems

Substitution method: Solve one equation for one variable and substitute into the other.

Elimination method: Multiply equations by constants so that adding them eliminates one variable.

Non-linear Systems

A line and a parabola can intersect at 0, 1, or 2 points.

Example

Solve simultaneously: y=x24x+3y = x^2 - 4x + 3 and y=2x3y = 2x - 3.

Substitute: 2x3=x24x+32x - 3 = x^2 - 4x + 3.

x26x+6=0x^2 - 6x + 6 = 0x=6±36242=6±232=3±3x = \frac{6 \pm \sqrt{36 - 24}}{2} = \frac{6 \pm 2\sqrt{3}}{2} = 3 \pm \sqrt{3}

When x=3+3x = 3 + \sqrt{3}: y=2(3+3)3=3+23y = 2(3 + \sqrt{3}) - 3 = 3 + 2\sqrt{3}.

When x=33x = 3 - \sqrt{3}: y=2(33)3=323y = 2(3 - \sqrt{3}) - 3 = 3 - 2\sqrt{3}.


Modulus Functions

Definition

|x| = \begin`\{cases}` x & x \ge 0 \\ -x & x \lt 0 \end`\{cases}`

Graph

The graph of y=xy = |x| is V-shaped, with the vertex at the origin.

Solving Modulus Equations

Square both sides or use the definition casewise.

Example

Solve x2=3x1|x - 2| = 3x - 1.

Since x20|x - 2| \ge 0, we need 3x10    x133x - 1 \ge 0 \implies x \ge \dfrac{1}{3}.

Case 1 (x2x \ge 2): x2=3x1    2x=1    x=12x - 2 = 3x - 1 \implies -2x = 1 \implies x = -\dfrac{1}{2}. Rejected (x2x \ge 2).

Case 2 (x<2x \lt 2): (x2)=3x1    x+2=3x1    4x=3    x=34-(x - 2) = 3x - 1 \implies -x + 2 = 3x - 1 \implies 4x = 3 \implies x = \dfrac{3}{4}.

Check: 3/42=5/4|3/4 - 2| = 5/4 and 3(3/4)1=5/43(3/4) - 1 = 5/4. Valid.

Solution: x=34x = \dfrac{3}{4}.


IB Exam-Style Questions

Question 1 (Paper 1 style)

Given f(x)=xx+2f(x) = \dfrac{x}{x + 2} and g(x)=2x1g(x) = 2x - 1:

(a) Find (fg)(x)(f \circ g)(x) and state its domain.

(fg)(x)=f(2x1)=2x12x1+2=2x12x+1(f \circ g)(x) = f(2x - 1) = \frac{2x - 1}{2x - 1 + 2} = \frac{2x - 1}{2x + 1}

Domain: 2x+10    x122x + 1 \neq 0 \implies x \neq -\dfrac{1}{2}.

(b) Find f1(x)f^{-1}(x).

y=xx+2    y(x+2)=x    xy+2y=x    x(1y)=2yy = \frac{x}{x+2} \implies y(x+2) = x \implies xy + 2y = x \implies x(1-y) = 2y f1(x)=2x1x,x1f^{-1}(x) = \frac{2x}{1 - x}, \quad x \neq 1

(c) Verify that f1ff^{-1} \circ f is the identity function.

(f1f)(x)=f1 ⁣(xx+2)=2xx+21xx+2=2xx+22x+2=x(f^{-1} \circ f)(x) = f^{-1}\!\left(\frac{x}{x+2}\right) = \frac{2 \cdot \frac{x}{x+2}}{1 - \frac{x}{x+2}} = \frac{\frac{2x}{x+2}}{\frac{2}{x+2}} = x

Question 2 (Paper 2 style)

The function ff is defined by f(x)=2x212x+13f(x) = 2x^2 - 12x + 13 for x3x \ge 3.

(a) Express f(x)f(x) in the form a(xh)2+ka(x - h)^2 + k.

f(x)=2(x26x)+13=2(x3)218+13=2(x3)25f(x) = 2(x^2 - 6x) + 13 = 2(x - 3)^2 - 18 + 13 = 2(x - 3)^2 - 5

(b) Find the range of ff.

Since x3x \ge 3 and (x3)20(x-3)^2 \ge 0: f(x)5f(x) \ge -5.

Range: [5,)[-5, \infty).

(c) Find f1(x)f^{-1}(x) and state its domain.

y=2(x3)25    y+5=2(x3)2    (x3)2=y+52y = 2(x-3)^2 - 5 \implies y + 5 = 2(x-3)^2 \implies (x-3)^2 = \frac{y+5}{2}

Since x3x \ge 3, x30x - 3 \ge 0:

x=3+y+52x = 3 + \sqrt{\frac{y+5}{2}} f1(x)=3+x+52f^{-1}(x) = 3 + \sqrt{\frac{x+5}{2}}

Domain of f1f^{-1} = range of ff: [5,)[-5, \infty).

Question 3 (Paper 1 style)

Solve the inequality x22x8>0x^2 - 2x - 8 \gt 0.

(x4)(x+2)>0(x - 4)(x + 2) \gt 0

The product is positive when both factors are positive or both are negative:

  • x>4x \gt 4 or x<2x \lt -2

Solution: x(,2)(4,)x \in (-\infty, -2) \cup (4, \infty).

Question 4 (Paper 2 style)

The function ff is defined as f(x)=x29x3f(x) = \dfrac{x^2 - 9}{x - 3} for x3x \neq 3.

(a) Simplify f(x)f(x).

f(x)=(x3)(x+3)x3=x+3forx3f(x) = \frac{(x-3)(x+3)}{x-3} = x + 3 \quad \mathrm{for } x \neq 3

(b) Find the equations of any asymptotes of ff.

There is a hole at x=3x = 3 (removable discontinuity), not a vertical asymptote.

No horizontal asymptote (it behaves like y=x+3y = x + 3 for large xx).

(c) Sketch the graph of ff.

The graph is the line y=x+3y = x + 3 with a hole at (3,6)(3, 6).

Question 5 (Paper 1 style)

The cubic P(x)=x3+ax2+bx12P(x) = x^3 + ax^2 + bx - 12 has a factor of (x+3)(x + 3) and leaves a remainder of 20-20 when divided by (x1)(x - 1). Find aa and bb.

Since (x+3)(x + 3) is a factor: P(3)=0P(-3) = 0.

27+9a3b12=0    9a3b=39    3ab=13(1)-27 + 9a - 3b - 12 = 0 \implies 9a - 3b = 39 \implies 3a - b = 13 \quad \mathrm{(1)}

Since P(1)=20P(1) = -20:

1+a+b12=20    a+b=9(2)1 + a + b - 12 = -20 \implies a + b = -9 \quad \mathrm{(2)}

Adding (1) and (2): 4a=4    a=14a = 4 \implies a = 1.

From (2): b=10b = -10.


Summary

ConceptKey Point
Composite function(fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)); order matters
Inverse functionReflect in y=xy = x; swap domain/range
Vertical shifty=f(x)+ky = f(x) + k moves up by kk
Horizontal shifty=f(xh)y = f(x - h) moves right by hh
Factor theorem(xa)(x-a) factor     P(a)=0\iff P(a) = 0
Remainder theoremRemainder of P(x)÷(xa)P(x) \div (x-a) is P(a)P(a)
Even functionf(x)=f(x)f(-x) = f(x), symmetric about yy-axis
Odd functionf(x)=f(x)f(-x) = -f(x), rotational symmetry about origin
Exam Strategy

For function questions, always check the domain. When finding inverses, state the domain of the inverse explicitly. For transformation questions, identify each transformation step by step from the inside out.


Reciprocal Functions

Definition

The reciprocal function of ff is 1f(x)\dfrac{1}{f(x)}.

Graphing Reciprocal Functions

Key features of the graph of y=1f(x)y = \dfrac{1}{f(x)}:

  • Where f(x)=1f(x) = 1, the reciprocal also equals 11.
  • Where f(x)=1f(x) = -1, the reciprocal also equals 1-1.
  • Where f(x)>0f(x) \gt 0, the reciprocal is positive.
  • Where f(x)<0f(x) \lt 0, the reciprocal is negative.
  • Where f(x)=0f(x) = 0, the reciprocal has a vertical asymptote.
  • Horizontal asymptotes of ff become horizontal asymptotes of 1f\dfrac{1}{f}.
  • Local maxima of ff become local minima of 1f\dfrac{1}{f} and vice versa.

Reciprocal of f(x)=ax+bf(x) = ax + b

y=1ax+by = \frac{1}{ax + b}

This is a rectangular hyperbola with vertical asymptote at x=bax = -\dfrac{b}{a} and horizontal asymptote at y=0y = 0.

Reciprocal of Quadratic Functions

Example

Sketch the graph of y=1x24y = \dfrac{1}{x^2 - 4}.

Vertical asymptotes at x=2x = 2 and x=2x = -2 (zeros of denominator).

Horizontal asymptote at y=0y = 0.

For x<2x \lt -2: denominator positive, so y>0y \gt 0.

For 2<x<2-2 \lt x \lt 2: denominator negative, so y<0y \lt 0.

For x>2x \gt 2: denominator positive, so y>0y \gt 0.

Local minimum at x=0x = 0: y=14y = -\dfrac{1}{4}.


Rational Functions

Definition

A rational function is a ratio of two polynomials:

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

Features to Identify

  1. Domain: values of xx where Q(x)0Q(x) \neq 0.
  2. Intercepts: yy-intercept (set x=0x = 0), xx-intercepts (set P(x)=0P(x) = 0).
  3. Asymptotes: vertical (zeros of QQ), horizontal (compare degrees), oblique.
  4. Behaviour near asymptotes: test values on each side.

Oblique Asymptotes

When degP=degQ+1\deg P = \deg Q + 1, divide PP by QQ using polynomial division. The quotient (without remainder) gives the oblique asymptote.

Example

Find the asymptotes of f(x)=x2+1x1\displaystyle f(x) = \frac{x^2 + 1}{x - 1}.

Vertical asymptote: x=1x = 1.

Since degP=2\deg P = 2 and degQ=1\deg Q = 1, there is an oblique asymptote.

x2+1x1=x+1+2x1\frac{x^2 + 1}{x - 1} = x + 1 + \frac{2}{x - 1}

Oblique asymptote: y=x+1y = x + 1.


Piecewise Functions

Definition

A piecewise function is defined by different expressions over different intervals of its domain.

Continuity of Piecewise Functions

Check that the function value equals the left-hand and right-hand limits at the boundary points.

Example

Is the following function continuous at x=2x = 2?

f(x) = \begin`\{cases}` x^2 & x \le 2 \\ 3x - 2 & x \gt 2 \end`\{cases}`

f(2)=4f(2) = 4.

limx2f(x)=4\lim_{x \to 2^-} f(x) = 4.

limx2+f(x)=3(2)2=4\lim_{x \to 2^+} f(x) = 3(2) - 2 = 4.

Since the left-hand limit, right-hand limit, and function value all equal 4, the function is continuous at x=2x = 2.


Additional Exam-Style Questions

Question 6 (Paper 2 style)

The function ff is defined as f(x)=2x+3x1f(x) = \dfrac{2x + 3}{x - 1} for x{R}x \in \mathbb{'\{'}R{'\}'}, x1x \neq 1.

(a) Find the inverse function f1f^{-1}.

y=2x+3x1    y(x1)=2x+3    yxy=2x+3y = \frac{2x + 3}{x - 1} \implies y(x-1) = 2x + 3 \implies yx - y = 2x + 3 x(y2)=y+3    x=y+3y2x(y - 2) = y + 3 \implies x = \frac{y + 3}{y - 2} f1(x)=x+3x2,x2f^{-1}(x) = \frac{x + 3}{x - 2}, \quad x \neq 2

(b) State the domain and range of f1f^{-1}.

Domain of f1f^{-1}: x2x \neq 2.

Range of f1f^{-1}: y1y \neq 1 (which equals the domain of ff).

(c) Find the value of xx such that f(x)=f1(x)f(x) = f^{-1}(x).

2x+3x1=x+3x2\frac{2x+3}{x-1} = \frac{x+3}{x-2} (2x+3)(x2)=(x+3)(x1)(2x+3)(x-2) = (x+3)(x-1) 2x2x6=x2+2x32x^2 - x - 6 = x^2 + 2x - 3 x23x3=0x^2 - 3x - 3 = 0 x=3±9+122=3±212x = \frac{3 \pm \sqrt{9+12}}{2} = \frac{3 \pm \sqrt{21}}{2}

Question 7 (Paper 2 style)

Given f(x)=x24x+3f(x) = x^2 - 4x + 3 and g(x)=2x1g(x) = 2x - 1:

(a) Find (gf)(x)(g \circ f)(x) and its range.

(gf)(x)=g(x24x+3)=2(x24x+3)1=2x28x+5(g \circ f)(x) = g(x^2 - 4x + 3) = 2(x^2 - 4x + 3) - 1 = 2x^2 - 8x + 5

Completing the square: 2(x2)232(x - 2)^2 - 3.

Range: [3,)[-3, \infty).

(b) Find the set of values of xx for which (fg)(x)<0(f \circ g)(x) \lt 0.

(fg)(x)=(2x1)24(2x1)+3=4x24x+18x+4+3=4x212x+8(f \circ g)(x) = (2x-1)^2 - 4(2x-1) + 3 = 4x^2 - 4x + 1 - 8x + 4 + 3 = 4x^2 - 12x + 8 4x212x+8<0    x23x+2<0    (x1)(x2)<04x^2 - 12x + 8 \lt 0 \implies x^2 - 3x + 2 \lt 0 \implies (x-1)(x-2) \lt 0

Solution: 1<x<21 \lt x \lt 2.

Question 8 (Paper 1 style)

The function hh is defined by h(x)=2x5+x+1h(x) = |2x - 5| + |x + 1| for all real xx.

Find the minimum value of h(x)h(x).

Critical points at x=2.5x = 2.5 and x=1x = -1.

Case 1 (x<1x \lt -1): h(x)=(2x5)+(x+1)=3x+4h(x) = -(2x-5) + -(x+1) = -3x + 4. Minimum at x=1x = -1: h(1)=7h(-1) = 7.

Case 2 (1x2.5-1 \le x \le 2.5): h(x)=(2x5)+(x+1)=x+6h(x) = -(2x-5) + (x+1) = -x + 6. Minimum at x=2.5x = 2.5: h(2.5)=3.5h(2.5) = 3.5.

Case 3 (x>2.5x \gt 2.5): h(x)=(2x5)+(x+1)=3x4h(x) = (2x-5) + (x+1) = 3x - 4. Minimum at x=2.5x = 2.5: h(2.5)=3.5h(2.5) = 3.5.

Minimum value is 3.53.5 at x=2.5x = 2.5.

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


tip

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

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

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