P1.2.7 - Graphs of functions and the modulus graph

P1.2.7 - Graphs of functions and the modulus graph

A graph is a picture of how a function behaves. In this lesson you will learn how to read the important features of polynomial, modulus, reciprocal, and proportional graphs, then use those features to solve equations and inequalities. The aim is not to draw perfect artwork: it is to produce sketches accurate enough to show roots, intercepts, asymptotes, intersections, and the meaning of a solution.

Sketching simple polynomial graphs

For a graph y=f(x), the x-intercepts are the values of x where f(x)=0. These are also called roots of the equation f(x)=0. A sketch of a simple polynomial should show the roots, the y-intercept, and the rough end behaviour.

If a polynomial is in factorised form, the factors tell you the x-intercepts directly:

f(x)=a(xr1)(xr2)(xr3)x=r1, r2, r3.f(x)=a(x-r_1)(x-r_2)(x-r_3)\quad \Rightarrow \quad x=r_1,\ r_2,\ r_3.

The power of a factor tells you how the graph behaves at that root.

Factor near a rootGraph behaviour at that root
odd power, such as (x-r) or (x-r)^3crosses the x-axis
even power, such as (x-r)^2 or (x-r)^4touches the x-axis and turns back

The leading term controls the far-left and far-right ends. A positive cubic goes down on the left and up on the right. A positive quartic goes up at both ends. A negative leading coefficient reflects those end behaviours in the x-axis.

[DIAGRAM: asset_name: Lesson p1.2.7: Graphs of functions, polynomial curves, and the modulus graph - diagram 01; asset_slug: p1_2_7_understand_and_use_graphs_of_functions_including_functions_defined_by_simple_polynomials_and_the_modulus_graph__diagram_01; recommended_method: drawn_math; description: Draw two clean coordinate panels. Left panel: sketch the cubic y=(x+2)(x-1)(x-3), crossing the x-axis at x=-2, x=1, and x=3, with left end down and right end up. Right panel: sketch the quartic y=x^2(2x-1)^2, touching the x-axis at x=0 and x=1/2, with both ends up. Label roots, crossing/touching behaviour, and axes.]
Diagram

Worked example: sketch the important features of

y=x2(2x1)2.y=x^2(2x-1)^2.

First find the roots:

x2(2x1)2=0.x^2(2x-1)^2=0.

So

x=0or2x1=0,x=0 \quad \text{or} \quad 2x-1=0,

giving roots

x=0andx=12.x=0 \quad \text{and} \quad x=\frac12.

Both roots come from squared factors, so the graph touches the x-axis at both roots rather than crossing it. The leading term is

x2(2x)2=4x4,x^2(2x)^2=4x^4,

so the graph is a positive quartic and both ends go upwards. Also, because the expression is a product of two squares, y is never negative.

So the sketch should show:

  • x-intercepts at (0,0) and (1/2,0)
  • the graph touching the x-axis at both intercepts
  • both ends rising
  • the whole graph on or above the x-axis

This is enough for an Edexcel-style sketch. You do not need exact turning points unless the question asks for them or they are obvious from the expression.

The modulus of a linear function

The modulus of a number is its non-negative value. For example, |5|=5 and |-5|=5. In graph work, the key idea is that y=|ax+b|, with a != 0, is made from the straight line y=ax+b by reflecting any part below the x-axis up into the x-axis.

Linear modulus graph

For a linear expression ax+b,

ax+b={ax+b,ax+b0,(ax+b),ax+b<0.|ax+b|= \begin{cases} ax+b, & ax+b \geq 0,\\ -(ax+b), & ax+b < 0. \end{cases}

For a != 0, the graph y=|ax+b| is a V-shaped graph with vertex where ax+b=0.

Worked example: sketch and use

y=2x1.y=|2x-1|.

Start with the line y=2x-1. It crosses the x-axis when

2x1=0x=12.2x-1=0 \quad \Rightarrow \quad x=\frac12.

So the modulus graph has vertex (1/2,0). For x >= 1/2, the expression 2x-1 is already non-negative, so the right branch is

y=2x1.y=2x-1.

For x < 1/2, the expression 2x-1 is negative, so the left branch is

y=(2x1)=12x.y=-(2x-1)=1-2x.

[DIAGRAM: asset_name: Lesson p1.2.7: Graphs of functions, polynomial curves, and the modulus graph - diagram 02; asset_slug: p1_2_7_understand_and_use_graphs_of_functions_including_functions_defined_by_simple_polynomials_and_the_modulus_graph__diagram_02; recommended_method: drawn_math; description: Draw the V-shaped graph y=|2x-1| with vertex (1/2,0) and y-intercept (0,1). On the same axes draw the line y=x. Mark and label the intersection x-values x=1/3 and x=1. Use a subtle thicker style on the parts of the modulus graph above the line y=x, labelled |2x-1| > x, corresponding to x<1/3 and x>1. Axes labelled x and y.]
Diagram

Now use the graph to solve

2x1=x.|2x-1|=x.

The solutions are the x-coordinates where the V-shaped graph meets the line y=x. Algebraically, use the two branches.

For x < 1/2:

12x=x1=3xx=13.1-2x=x \quad \Rightarrow \quad 1=3x \quad \Rightarrow \quad x=\frac13.

This is valid because 1/3 < 1/2.

For x >= 1/2:

2x1=xx=1.2x-1=x \quad \Rightarrow \quad x=1.

This is valid because 1 >= 1/2.

So

2x1=xx=13 or x=1.|2x-1|=x \quad \Rightarrow \quad x=\frac13 \text{ or } x=1.

The graph also solves the inequality

2x1>x.|2x-1|>x.

This means the modulus graph is above the line y=x. From the graph, that happens for

x<13orx>1.x<\frac13 \quad \text{or} \quad x>1.

Notice the strict inequality: the intersection points themselves are not included.

Reciprocal graphs and asymptotes

The graphs

y=axandy=ax2y=\frac{a}{x} \quad \text{and} \quad y=\frac{a}{x^2}

have two important lines called asymptotes. An asymptote is a line that the graph approaches. For these basic reciprocal graphs, the vertical asymptote is x=0 and the horizontal asymptote is y=0.

These are also proportion graphs. The form y=a/xy=a/x represents inverse proportion, because xy=axy=a is constant. The form y=a/x2y=a/x^2 represents inverse-square proportion, because x2y=ax^2y=a is constant. That is why this section will connect naturally with proportional relationships later.

For y=a/x, the sign of a decides which diagonal pair of regions the branches occupy. If a>0, the branches are in quadrants I and III. If a<0, the branches are in quadrants II and IV.

For y=a/x^2, the denominator is always positive except at x=0, where the expression is undefined. So if a>0, both branches lie above the x-axis; if a<0, both lie below it.

[DIAGRAM: asset_name: Lesson p1.2.7: Graphs of functions, polynomial curves, and the modulus graph - diagram 03; asset_slug: p1_2_7_understand_and_use_graphs_of_functions_including_functions_defined_by_simple_polynomials_and_the_modulus_graph__diagram_03; recommended_method: drawn_math; description: Draw three small coordinate panels. Panel 1: y=2/x with asymptotes x=0 and y=0, branches in quadrants I and III. Panel 2: y=2/x^2 with asymptotes x=0 and y=0, both branches above the x-axis. Panel 3: y=2/(x+1)+1 with dashed asymptotes x=-1 and y=1, showing the shifted reciprocal shape. Label each equation and each asymptote.]
Diagram

The shifted form in this spec point is

y=ax+p+q.y=\frac{a}{x+p}+q.

The denominator is zero when

x+p=0x=p,x+p=0 \quad \Rightarrow \quad x=-p,

so the vertical asymptote is

x=p.x=-p.

As x becomes very large positive or very large negative, the fraction a/(x+p) gets close to zero, so the horizontal asymptote is

y=q.y=q.

Worked example: state the asymptotes and key shape of

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

The denominator is zero when x+2=0, so the vertical asymptote is

x=2.x=-2.

The graph is a shifted version of y=3/x, moved left 2 and down 1, so the horizontal asymptote is

y=1.y=-1.

Because the numerator is positive, the branches sit in the top-right and bottom-left regions relative to the centre point where the asymptotes cross, (-2,-1).

Intersections as solutions

Graphs turn equations into meeting points. If you solve

f(x)=g(x),f(x)=g(x),

you are finding the x-coordinates where the graphs

y=f(x)andy=g(x)y=f(x) \quad \text{and} \quad y=g(x)

intersect.

This is why a sketch is useful even when the final solution is algebraic. The algebra gives exact values; the graph tells you how many values to expect, where they are roughly, and how to interpret inequalities.

Worked example: interpret and solve

x34x=x.x^3-4x=x.

Graphically, this asks where

y=x34xy=x^3-4x

meets

y=x.y=x.

Algebraically, bring all terms to one side:

x34x=xx35x=0.x^3-4x=x \quad \Rightarrow \quad x^3-5x=0.

Factorise:

x(x25)=0.x(x^2-5)=0.

So

x=0,x=5,x=5.x=0,\quad x=\sqrt5,\quad x=-\sqrt5.

These are the three x-coordinates of the intersection points. If the question asked for the full coordinates, you would substitute each x-value into either graph to find the matching y-value.

For inequalities, use vertical position:

f(x)>g(x)f(x)>g(x)

means the graph y=f(x) is above the graph y=g(x).

f(x)<g(x)f(x)<g(x)

means the graph y=f(x) is below the graph y=g(x).

Proportional relationships and their graphs

The proportion symbol \propto says that one variable is a constant multiple of another expression. The expression might be xx, but it might also be x2x^2, 1/x1/x, or 1/x21/x^2. To turn proportion notation into an equation, replace \propto with =k=k times the expression, where kk is the constant of proportionality.

For direct proportion,

yxy \propto x

means

y=kx,y=kx,

where kk is the constant of proportionality.

Proportional relationship

yy is proportional to an expression in xx if y=ky=k times that expression for some constant kk. For example, yxy \propto x, yx2y \propto x^2, y1/xy \propto 1/x, and y1/x2y \propto 1/x^2 become y=kxy=kx, y=kx2y=kx^2, y=k/xy=k/x, and y=k/x2y=k/x^2.

[DIAGRAM: asset_name: Lesson p1.2.7: Graphs of functions, polynomial curves, and the modulus graph - diagram 04; asset_slug: p1_2_7_understand_and_use_graphs_of_functions_including_functions_defined_by_simple_polynomials_and_the_modulus_graph__diagram_04; recommended_method: drawn_math; description: Draw two coordinate panels. Left panel: a direct proportion graph y=kx as a straight line through the origin, with a marked point (x,y) and a label gradient k. Right panel: a straight line y=kx+c with c not equal to 0, labelled linear but not directly proportional because it does not pass through the origin. Use this as a misconception contrast. Axes labelled x and y.]
Diagram

The graph shape comes from the expression after the proportion symbol:

Proportion statementEquation with constantGraph type
yxy \propto xy=kxy=kxstraight line through the origin
yx2y \propto x^2y=kx2y=kx^2quadratic graph; for k>0k>0, a parabola opening upwards
y1/xy \propto 1/xy=k/xy=k/xreciprocal graph with axes as asymptotes
y1/x2y \propto 1/x^2y=k/x2y=k/x^2reciprocal-square graph with axes as asymptotes

So the reciprocal graphs you met earlier are not a separate idea from proportion: y=a/xy=a/x is an inverse proportional relationship, and y=a/x2y=a/x^2 is an inverse-square proportional relationship. A direct power such as yx2y \propto x^2 links back to polynomial graph shapes instead.

Worked example: CC is directly proportional to dd. When d=8d=8, C=20C=20. Find the relationship between CC and dd, and describe the graph of CC against dd.

Since CC is directly proportional to dd,

C=kd.C=kd.

Use the given pair:

20=8kk=208=52.20=8k \quad \Rightarrow \quad k=\frac{20}{8}=\frac52.

So

C=52d.C=\frac52 d.

The graph of CC against dd is a straight line through the origin with gradient 52\frac52.

This "through the origin" condition matters. A graph such as y=3x+2y=3x+2 is a straight line, but it is not a direct proportion graph because y/xy/x is not constant and the line does not pass through (0,0)(0,0).

Worked example: yy is inversely proportional to x2x^2. When x=2x=2, y=12y=12. Find the equation for yy in terms of xx, and identify the graph type.

Since y1/x2y \propto 1/x^2,

y=kx2.y=\frac{k}{x^2}.

Use the given pair:

12=k22=k4k=48.12=\frac{k}{2^2}=\frac{k}{4} \quad \Rightarrow \quad k=48.

So

y=48x2.y=\frac{48}{x^2}.

This is a reciprocal-square graph: it has vertical asymptote x=0x=0 and horizontal asymptote y=0y=0. Because k>0k>0, both branches lie above the x-axis.

Choosing the right graph clues

A good graph sketch is built from the features that matter for the function type.

Function or relationshipFirst features to check
simple polynomialroots, repeated roots, y-intercept, end behaviour
linear modulus `y=ax+b
reciprocal a/x, a/x^2, or a/(x+p)+qvertical and horizontal asymptotes, branch positions
equation f(x)=g(x)intersection points of y=f(x) and y=g(x)
proportional relationshipconvert \propto into an equation with kk, then match the graph shape: line for kxkx, parabola for kx2kx^2, reciprocal for k/xk/x, reciprocal-square for k/x2k/x^2

The common thread is that the graph should answer a mathematical question. A root says where a function equals zero. An intersection says where two functions are equal. A region above another graph says where one expression is greater than another. An asymptote says where a reciprocal or inverse proportion graph is undefined or what value it approaches.