Functions · AI SL & HL
Quadratic functions
Connect the three useful forms of a quadratic to its roots, turning point and graph, then choose the form that answers the question.
Course focus: AI SL & HL: use technology to support calculation, show the mathematical setup and interpret the result in its context. Additional HL methods are labelled below.
Before you start: Expanding brackets, factorisation and solving linear equations.
Optional background: Square-root functions revisits inverse relationships.
Build it from the beginning
A quadratic has a squared variable and a curved, parabolic graph. Different forms reveal different features: a product reveals roots, while a squared bracket plus a constant reveals the turning point. A root is an input where the output is zero.
A first walkthrough
Read the key features of \(f(x)=(x-2)^2+3\).
- A square is never negative, so the smallest output occurs at \(x=2\).
- Then \(f(2)=3\), giving vertex \((2,3)\).
- The parabola opens upwards and has no real roots because its output is always at least 3.
The foundations behind the method
Understand what the symbols mean
A quadratic graph is a parabola. The coefficient of the squared term sets its orientation and vertical scale. Standard, factored and vertex forms describe the same function but expose different information: intercept, roots and turning point. The axis of symmetry passes through the vertex.
How the ideas connect
Completing the square isolates a nonnegative squared expression. In \(a(x-h)^2+k\), this makes the extreme value visible without differentiation. The discriminant measures whether the graph meets the horizontal axis twice, once tangentially, or not at all; its interpretation assumes real coefficients and nonzero a.
Start with the idea
Build your understanding
A quadratic is one curve described in several useful ways. Expanded form exposes coefficients, factorised form exposes roots, and vertex form exposes the turning point. Changing forms is a way of revealing information, not changing the function.
Roots and crossings
A root is an input where the output is zero. A repeated root touches the axis without necessarily crossing it.
Vertex and domain
The vertex controls the unrestricted extremum. A restricted domain may omit it, making an endpoint the relevant maximum or minimum.
Compare the approaches
Choose by the information in the question, rather than the formula you recognise first.
Factorised form
When it helpsUse known roots to construct or solve a quadratic.
Check before using itOne additional point is needed to determine its scale.
Vertex form
When it helpsUse a known turning point or find the range.
Check before using itThe leading coefficient controls opening direction and steepness.
Your method plan
- Choose the form that exposes the given information.
- Find the scale from another point or condition.
- Check roots, opening direction and domain before interpreting the result.
Learn the methods
Learn step by step
1. Three forms, three jobs
The expanded form \(ax^2+bx+c\) reveals the vertical intercept c and whether the parabola opens up or down. The factorised form \(a(x-r_1)(x-r_2)\) reveals real roots. The completed-square form \(a(x-h)^2+k\) reveals vertex (h,k). These are the same function expressed for different purposes.
One parabola, three useful landmarks
- y = (x − 2)² − 1
Vertex
Why this formula works
Completing the square produces \(a(x+b/(2a))^2+c-b^2/(4a)\). The squared part is zero at \(x=-\frac{b}{2a}\), revealing the vertex and the minimum or maximum according to a’s sign. The squared term is nonnegative, so the sign of a determines whether the vertex is lowest or highest.
\(h=-b/(2a)\) \(k=f(h)\); write \(f(x)=a(x-h)^2+k\).
Quick example
\(x^2-4x+7=(x-2)^2+3\), so the vertex is \((2,3)\) and the minimum is 3.
Worked example: Read the graph
Find the roots, vertex and range of \(f(x)=x^{2}-6x+5\) on all real x.
- Factorise: \(f(x)=(x-1)(x-5)\), so roots are 1 and 5.
- Complete the square: \(f(x)=(x-3)^2-4\), so the vertex is \((3,-4)\).
- The parabola opens up; its range is \(y\ge -4\). The vertical intercept is \((0,5)\).
2. Solve for roots
Set \(y=0\), then factorise if possible. Otherwise complete the square or use the quadratic formula. A root is an x-value, whereas an intercept is a coordinate pair. Keep exact radical forms on a non-calculator paper. Substituting candidate roots is a quick check.
Roots
Why this formula works
Divide \(ax^{2}+bx+c=0\) by a and complete the square: \((x+b/(2a))^2=(b^2-4ac)/(4a^2)\). Taking both square-root signs gives the quadratic formula. The expression under the root also controls the number of real roots.
\(x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\) \(a\ne 0\).
Quick example
For \(x^{2}-3x+2=0\), the formula gives \((3\pm\sqrt1)/2\), so the roots are 1 and 2.
3. Discriminant and intersections
HL extensionFor real coefficients, \(b^2-4ac\) distinguishes two distinct real roots, one repeated real root and no real roots. To find intersections with a line or another curve, equate their expressions and apply the discriminant to the resulting equation, not automatically to the original quadratic.
Discriminant
HL extensionWhy this formula works
The discriminant is the radicand produced by completing the square. A positive radicand gives two real square-root choices; zero merges them; a negative radicand has no real square root.
\(\Delta=b^2-4ac\): \(\Delta >0\) two distinct real roots; \(\Delta =0\) repeated root; \(\Delta <0\) no real roots.
Quick example
For \(x^{2}+2x+k=0\), \(\Delta=4-4k\). There are two real roots when \(k<1\), one repeated root when \(k=1\) and none when \(k>1\).
Worked example: A tangent line
For which c does \(y=2x+c\) touch \(y=x^{2}\) at exactly one point?
- Equate: \(x^2-2x-c=0\).
- A repeated root needs \(\Delta=4+4c=0\), giving \(c=-1\).
- The contact x-value is 1, so the point is \((1,1)\).
4. Maximum, minimum and range
For a quadratic on all real inputs, completed-square form gives the full range directly. If \(a>0\), the lowest output is k; if \(a<0\), the highest output is k. This unrestricted range must be recalculated when the domain is restricted. The later section shows how to compare the vertex and endpoints in that case.
5. Choose a form to construct a quadratic from data
Two roots suggest factorised form; a vertex suggests completed-square form. Use another point to determine the vertical scale a. Three general points can determine a,b,c through simultaneous equations. Check the sign of a against the direction the parabola opens. A repeated root means the graph touches the axis there. Always state enough information: roots alone determine a family of scaled parabolas, not a unique equation.
Choose a form to construct a quadratic from data
Why this formula works
Each root contributes a linear factor. A vertex fixes the horizontal centre and vertical shift, leaving only scale. Substitution of a point away from a zero scale factor supplies the remaining coefficient.
Roots r,s: \(f(x)=a(x-r)(x-s)\). Vertex (h,k): \(f(x)=a(x-h)^2+k\) \(a\ne 0\).
Quick example
A vertex \((2,-3)\) and point \((0,5)\) give \(5=4a-3\), so \(a=2\) and \(f=2(x-2)^{2}-3\).
Worked example: Use roots and a third point
A quadratic has roots −2 and 4 and passes through \((0,-16)\). Find its equation and vertex.
- Write \(f(x)=a(x+2)(x-4)\). At \(x=0\), −\(16=-8a\), so \(a=2\).
- The equation is \(2(x+2)(x-4)=2x^{2}-4x-16\).
- The axis is halfway between the roots: \(x=1\). Evaluate \(f(1)=-18\), so the vertex is \((1,-18)\).
6. Intersections, tangency and inequality regions
Equate the two graph expressions to find intersection inputs, then substitute into either original graph for outputs. The discriminant applies to this difference equation, not necessarily to either original function. A repeated root gives tangency only when a genuine quadratic intersection equation remains. If a parameter makes its leading coefficient zero, analyse the resulting linear or identity case separately. For an inequality, find all boundary intersections and determine which curve is higher on each interval.
Intersections, tangency and inequality regions
Why this formula works
Two curves meet where their vertical difference is zero. The sign of that difference says which is above the other; discriminant reasoning decides how many real boundary roots a quadratic difference has.
Intersection condition: \(f(x)-g(x)=0\). Where \(f(x)-g(x)>0\), the graph of f lies above g.
Quick example
For \(x^{2}\) and \(x+6\), intersections satisfy \(x^{2}-x-6=(x-3)(x+2)=0\). The parabola lies below the line for −\(2<x<3\).
Worked example: A tangent parameter
Find k so that \(y=x^{2}\) and \(y=4x+k\) meet in exactly one point, then find the point.
- The intersection equation is \(x^{2}-4x-k=0\). Its leading coefficient is always 1, so it remains quadratic.
- Set \(\Delta=16+4k=0\), obtaining \(k=-4\).
- The repeated root is \(x=2\) and \(y=4\). The line is \(y=4x-4\) and touches at \((2,4)\).
7. Maximum and minimum on a restricted domain
A vertex gives the unrestricted quadratic extremum, but a question may restrict x to a time interval or positive lengths. Check whether the vertex is in that interval. For a closed interval, compare its value with both endpoints. Completing the square establishes a bound without calculus: a nonnegative squared term cannot reduce an upward parabola below its vertex. If the vertex lies outside the domain, the extremum over the domain can be an endpoint.
Maximum and minimum on a restricted domain
Why this formula works
In \(a(x-h)^{2}+k\), the square measures horizontal separation from h and is never negative. Its smallest allowed value depends on whether h belongs to the domain; multiplying by a determines which end of the output range is bounded.
For \(a>0\) \(a(x-h)^2+k\ge k\), with equality only when \(x=h\) is allowed. For \(a<0\) the inequality reverses.
Quick example
\(f(x)=(x-3)^{2}+2\) on [\(0,1\)] never reaches its vertex. Values decrease from 11 to 6, so the minimum is 6 at \(x=1\).
Worked example: Constrained quadratic profit
Profit is \(P(x)=-2(x-6)^{2}+80\), with \(0\le x\le 4\). Find its maximum on this domain.
- The unrestricted vertex \(x=6\) is outside the allowed interval.
- The nearest allowed input to 6 is \(x=4\), giving \(P(4)=72\). At \(x=0\), \(P(0)=8\).
- Because the negative squared term grows less negative as x approaches 6, the maximum on [\(0,4\)] is 72 at \(x=4\).
Quick formula reference
For revision once you understand the methods above. Check the conditions before using a formula.
Discriminant
HL extension\(\Delta=b^2-4ac\): \(\Delta >0\) two distinct real roots; \(\Delta =0\) repeated root; \(\Delta <0\) no real roots.
Return to the explanation →Choose a form to construct a quadratic from data
Roots r,s: \(f(x)=a(x-r)(x-s)\). Vertex (h,k): \(f(x)=a(x-h)^2+k\), \(a\ne 0\).
Return to the explanation →Intersections, tangency and inequality regions
Intersection condition: \(f(x)-g(x)=0\). Where \(f(x)-g(x)>0\), the graph of f lies above g.
Return to the explanation →Maximum and minimum on a restricted domain
For \(a>0\), \(a(x-h)^2+k\ge k\), with equality only when \(x=h\) is allowed. For \(a<0\) the inequality reverses.
Return to the explanation →Learn to diagnose an error
Spot the mistake
The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.
In \(y=(x-3)^2+2\), the vertex is (-3,2).
Explain and repair the mistake
The square is zero at x=3, so the vertex is (3,2). The sign inside the bracket is opposite to the horizontal coordinate. Substituting the proposed vertex is a quick check.
Connect and apply
Put the ideas together
A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.
Construct from a vertex and compare a line
A quadratic has vertex \((2,-3)\) and passes through \((0,5)\). Find its intersections with \(y=5\).
- Write \(y=a(x-2)^2-3\). Substituting the point gives \(5=4a-3\), so \(a=2\).
- At the intersections, \(2(x-2)^2-3=5\), hence \((x-2)^2=4\).
- The inputs are \(x=0,4\), giving \((0,5)\) and \((4,5)\). They are equally far from the symmetry line \(x=2\).
- The line is above the minimum and therefore crosses twice. At \(y=-3\) it would touch once; below −3 it would not intersect.
Would a restricted domain from 0 to 3 keep both intersections?
Check your reasoning
No. Only \((0,5)\) lies within that domain. Solve the equation first, then filter by the stated input restriction.
Common mistakes and how to avoid them
- Factorisation is not available over the reals when \(\Delta <0\).
- The vertex is a pair of coordinates, not just its x-value.
- On a restricted domain, compare endpoints as well as the vertex.
Practise independently
Build confidence, then apply it
Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.
- 1
Build confidence
Find the vertex of \(g(x)=(x+1)^2-4\).
Need a starting point?
Make the squared bracket zero.
Show the worked solution
- At \(x=-1\) the square is zero.
- The vertex is \((-1,-4)\), a minimum.
- 2
Apply and explain
Find the roots of \((x-3)(x+2)=0\).
Need a starting point?
A product is zero when at least one factor is zero.
Show the worked solution
- \(x-3=0\) gives 3; \(x+2=0\) gives -2.
- Both roots satisfy the original equation.
- 3
Check your understanding
Find the minimum of \(x^2-4x+7\).
Show the worked solution
Write \((x-2)^2+3\). Since the square is nonnegative, the minimum is 3 at x=2.
- 4
Use the method
Find the roots of \(x^2-4x+3=0\), checking them numerically or algebraically.
Show the worked solution
The roots are 1 and 3. Substitution gives zero in both cases; a graph shows the two x-axis intersections. A numerical root finder should be used with a window or guesses that reveal both roots.
- 5
Combine the skills
Choose a form to construct a quadratic from data
A parabola touches the x-axis at \(x=3\) and passes through \((1,8)\). Find its equation.
Show the worked solution
The repeated root gives \(f=a(x-3)^{2}\). The point gives \(8=4a\), so \(f=2(x-3)^{2}\).
- 6
Combine the skills
Intersections, tangency and inequality regions
Solve \(x^{2}<x+6\).
Show the worked solution
Move to one side and factor \((x-3)(x+2)<0\). The product is negative between its roots, giving −\(2<x<3\).
- 7
Combine the skills
Maximum and minimum on a restricted domain
Find the minimum of \((x-2)^{2}-5\) on \(3\le x\le 6\).
Show the worked solution
The nearest allowed input to 2 is 3. The minimum is \((3-2)^{2}-5=-4\), not the unrestricted vertex value −5.
Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.
Using these methods in exam questions
AI Paper 1
GDC requiredShort-response questions still need mathematical setup and interpretation. Choose the correct tool, enter the model or data carefully, and check units and rounding.
AI Paper 2
GDC requiredExtended-response questions connect several steps. Keep intermediate values at full precision and explain how each result answers the context.
For this topic: Label axes, intercepts and relevant asymptotes. For a numerical root, state the equation and search interval; a graph window that misses an intersection is not evidence that no solution exists.
Paper 3: build a connected argument
Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.
- Identify what the first part establishes and record the conditions under which it holds.
- When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
- Check the conclusion against an earlier numerical case and explain its meaning or limitation.
For the first-assessment-2021 courses. IB assessment reference ↗
Find a specific method or formula
Now practise the method
If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.
Practise this subtopic →Want a broader practice session? Explore IB Maths AI SL practice questions →Explore IB Maths AI HL practice questions →Try free IB Maths exam-style questions and worked solutions →
Original Arc Practice teaching notes for Maths AI. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.