← Back to course

Math — Mechina

Quadratic function

Summary

A quadratic function is a function of the form f(x)=ax2+bx+cf(x)=ax^2+bx+c, where a≠0a\neq 0. Its graph is a parabola.

  • If a>0a>0 the parabola opens upward and the vertex has a minimum value.
  • If a<0a<0 the parabola opens downward and the vertex has a maximum value.
  • The coefficient cc is the intersection point with the yy axis: the point (0,c)(0,c).
-4-3-2-11234-5-4-3-2-112345xya>0a<0minmax
y=x2−3y=x^2-3 opens upward, y=−x2+2y=-x^2+2 opens downward.

The xx-coordinate of the vertex, which is also the axis of symmetry of the parabola:

xv=−b2a,yv=f(xv)x_v=-\frac{b}{2a},\qquad y_v=f(x_v)

The roots of the function are the solutions of f(x)=0f(x)=0. Their number is set by the discriminant:

Δ=b2−4ac,x1,2=−b±Δ2a\Delta=b^2-4ac,\qquad x_{1,2}=\frac{-b\pm\sqrt{\Delta}}{2a}
  • Δ>0\Delta>0 — two intersection points with the xx axis.
  • Δ=0\Delta=0 — one point: the vertex lies on the xx axis.
  • Δ<0\Delta<0 — no intersection points with the xx axis.

The same function has three forms. Each immediately gives different information:

  • General form f(x)=ax2+bx+cf(x)=ax^2+bx+c — the yy-intercept (0,c)(0,c) is visible directly.
  • Vertex form f(x)=a(x−h)2+kf(x)=a(x-h)^2+k — the vertex (h,k)(h,k) is visible directly.
  • Factored form f(x)=a(x−x1)(x−x2)f(x)=a(x-x_1)(x-x_2) — the roots x1x_1 and x2x_2 are visible directly.
-8-6-4-22468-8-6-4-22468xy

f(x) = 1x² − 2x − 3

Vertex
(1, -4)
Δ
16
Roots
-1, 3
The parabola opens
upward

Question types

1

Intersection points with the axes

Appears in almost every quadratic-function question, usually as the first part. These points are then needed for the graph, inequalities and area calculations.

Worked example

Find the intersection points of f(x)=x2−5x+6f(x)=x^2-5x+6 with the axes.

Solution

IdeaOn the yy-axis x=0x=0 always, and on the xx-axis y=0y=0 always. So the yy-intercept is a substitution, and the xx-intercepts come from solving f(x)=0f(x)=0.
  1. Intersection with the yy-axis: f(0)=0−0+6=6f(0)=0-0+6=6, so the point is (0,6)(0,6).

    Why: Every point on the yy-axis has the form (0,y)(0,y).

  2. Intersection with the xx-axis: solve x2−5x+6=0x^2-5x+6=0.

    Why: Every point on the xx-axis has the form (x,0)(x,0), that is, f(x)=0f(x)=0.

  3. a=1, b=−5, c=6a=1,\ b=-5,\ c=6, so Δ=(−5)2−4⋅1⋅6=25−24=1\Delta=(-5)^2-4\cdot 1\cdot 6=25-24=1.

    Why: Δ>0\Delta>0, so there are two distinct roots.

  4. x1,2=5±12=5±12x_{1,2}=\frac{5\pm\sqrt{1}}{2}=\frac{5\pm 1}{2}, that is, x1=3x_1=3 and x2=2x_2=2.
  5. Answer: (0,6)(0,6), (2,0)(2,0), (3,0)(3,0).
CheckSubstitute the roots: f(2)=4−10+6=0f(2)=4-10+6=0 and f(3)=9−15+6=0f(3)=9-15+6=0. You can also check by factoring: x2−5x+6=(x−2)(x−3)x^2-5x+6=(x-2)(x-3).
Common mistakeWriting only "x=2, x=3x=2,\ x=3" instead of points, or swapping the order and writing (0,2)(0,2) instead of (2,0)(2,0). A point is always a pair (x,y)(x,y).
What if…If c=0c=0, the parabola passes through the origin and one of the roots is x=0x=0 (see variant 1.1).
-1123456-2-112345678xy(0, 6)(2, 0)(3, 0)

Variants of this type · 6

1.1No constant term (c=0c=0)

When there is no constant term, factor out xx — it is faster than the formula.

Worked example

Find the intersection points of f(x)=2x2−6xf(x)=2x^2-6x with the axes.

Solution

IdeaEvery term contains xx, so factor: a product is zero when one of its factors is zero.
  1. yy-axis: f(0)=0f(0)=0, so the point is (0,0)(0,0).

    Why: Without a constant term the parabola always passes through the origin.

  2. xx-axis: 2x2−6x=02x^2-6x=0, so 2x(x−3)=02x(x-3)=0.
  3. 2x=02x=0 or x−3=0x-3=0, that is, x=0x=0 or x=3x=3.

    Why: A product is zero only if at least one factor is zero.

  4. Answer: (0,0)(0,0) and (3,0)(3,0).
Checkf(3)=2⋅9−18=0f(3)=2\cdot 9-18=0.
Common mistakeDividing the equation by xx and getting only x=3x=3. Dividing by xx "loses" the solution x=0x=0.
1.2No xx term (b=0b=0)

An equation of the form ax2+c=0ax^2+c=0 is solved by isolating x2x^2, without the formula.

Worked example

Find the intersection points of f(x)=x2−9f(x)=x^2-9 with the axes. What changes for g(x)=x2+4g(x)=x^2+4?

Solution

IdeaIsolate x2x^2 and take the root — with both signs.
  1. yy-axis: f(0)=−9f(0)=-9, the point (0,−9)(0,-9).
  2. xx-axis: x2−9=0x^2-9=0, that is, x2=9x^2=9.
  3. x=3x=3 or x=−3x=-3. Points: (3,0)(3,0) and (−3,0)(-3,0).

    Why: Both 323^2 and (−3)2(-3)^2 equal 99.

  4. For gg: x2+4=0x^2+4=0 gives x2=−4x^2=-4 — no solutions. gg has no xx-intercepts, and its yy-intercept is (0,4)(0,4).

    Why: The square of a real number cannot be negative.

Checkf(−3)=9−9=0f(-3)=9-9=0.
Common mistakeWriting only x=3x=3 and forgetting x=−3x=-3.
1.3Double root (Δ=0\Delta=0)

The parabola only touches the xx-axis at its vertex.

Worked example

Find the intersection points of f(x)=x2−6x+9f(x)=x^2-6x+9 with the axes.

Solution

IdeaΔ=0\Delta=0 means exactly one root: the vertex lies exactly on the xx-axis.
  1. yy-axis: f(0)=9f(0)=9, the point (0,9)(0,9).
  2. Δ=36−36=0\Delta=36-36=0.
  3. x=6±02=3x=\frac{6\pm 0}{2}=3, a single point: (3,0)(3,0).

    Why: When Δ=0\Delta=0 the two roots coincide.

  4. You can also see it as a perfect square: x2−6x+9=(x−3)2x^2-6x+9=(x-3)^2.
Checkf(3)=9−18+9=0f(3)=9-18+9=0, and also xv=−−62=3x_v=-\frac{-6}{2}=3 — the root coincides with the vertex.
Common mistakeWriting "two roots 33 and 33" and counting two intersection points. There is only one point.
1.4No intersection with the xx-axis (Δ<0\Delta<0)

Worked example

Find the intersection points of f(x)=x2+2x+5f(x)=x^2+2x+5 with the axes.

Solution

IdeaIf Δ<0\Delta<0, the equation f(x)=0f(x)=0 has no solutions, so there are no xx-intercepts. A yy-intercept always exists.
  1. yy-axis: f(0)=5f(0)=5, the point (0,5)(0,5).
  2. Δ=4−20=−16<0\Delta=4-20=-16<0.
  3. There are no xx-intercepts.

    Why: The parabola opens upward and its vertex is above the xx-axis.

CheckVertex: xv=−1x_v=-1, f(−1)=1−2+5=4>0f(-1)=1-2+5=4>0. The lowest point is above the axis, so the graph never reaches it.
Common mistakeContinuing with the formula and getting "−16\sqrt{-16}". Once Δ<0\Delta<0, stop: there are no real roots.
1.5Negative or fractional coefficient

To solve f(x)=0f(x)=0 you may multiply the equation by a nonzero number — it simplifies the arithmetic.

Worked example

Find the intersection points of f(x)=−12x2+x+4f(x)=-\frac{1}{2}x^2+x+4 with the axes.

Solution

IdeaMultiply the equation f(x)=0f(x)=0 by −2-2 to get an equation with integer coefficients.
  1. yy-axis: f(0)=4f(0)=4, the point (0,4)(0,4).
  2. −12x2+x+4=0 /⋅(−2)-\frac{1}{2}x^2+x+4=0\ /\cdot(-2), so x2−2x−8=0x^2-2x-8=0.

    Why: Multiplying both sides by the same nonzero number does not change the solutions.

  3. (x−4)(x+2)=0(x-4)(x+2)=0, that is, x=4x=4 or x=−2x=-2.
  4. Answer: (0,4)(0,4), (4,0)(4,0), (−2,0)(-2,0).
Checkf(4)=−8+4+4=0f(4)=-8+4+4=0 and f(−2)=−2−2+4=0f(-2)=-2-2+4=0.
Common mistake"Multiplying the function" by −2-2 and then using it for the yy-intercept: getting −8-8 instead of 44. Only the equation f(x)=0f(x)=0 may be multiplied, not the function itself.
1.6Function given in factored or vertex form

Don't expand brackets needlessly: read from each form what it shows directly.

Worked example

Find the intersection points with the axes for f(x)=−2(x+1)(x−3)f(x)=-2(x+1)(x-3) and for g(x)=(x−2)2−9g(x)=(x-2)^2-9.

Solution

IdeaIn factored form the roots are written in the brackets. In vertex form, isolate the square and take the root.
  1. ff: roots x=−1x=-1 and x=3x=3, that is, (−1,0)(-1,0) and (3,0)(3,0).

    Why: x+1=0x+1=0 when x=−1x=-1 — the sign is opposite to the one in the bracket.

  2. f(0)=−2⋅(1)⋅(−3)=6f(0)=-2\cdot(1)\cdot(-3)=6, the point (0,6)(0,6).
  3. gg: (x−2)2=9(x-2)^2=9, so x−2=3x-2=3 or x−2=−3x-2=-3, that is, x=5x=5 or x=−1x=-1.
  4. g(0)=4−9=−5g(0)=4-9=-5, the point (0,−5)(0,-5).
Checkg(5)=9−9=0g(5)=9-9=0 and g(−1)=9−9=0g(-1)=9-9=0.
Common mistakeReading the root with the same sign as in the bracket: writing x=1x=1 from (x+1)(x+1).
2

Vertex, axis of symmetry, intervals of increase and decrease

The question asks about the vertex, the minimum or maximum value, the axis of symmetry, or the interval of increase and interval of decrease.

Worked example

For f(x)=2x2−8x+3f(x)=2x^2-8x+3, find the vertex, the axis of symmetry and the intervals of increase and decrease.

Solution

IdeaThe vertex is the turning point of the parabola. Both the axis of symmetry and the intervals depend on it: on one side of the vertex the function decreases, on the other it increases.
  1. a=2, b=−8a=2,\ b=-8, so xv=−−82⋅2=2x_v=-\frac{-8}{2\cdot 2}=2.

    Why: This is the formula for the xx-coordinate of the vertex: xv=−b2ax_v=-\frac{b}{2a}.

  2. yv=f(2)=2⋅4−16+3=−5y_v=f(2)=2\cdot 4-16+3=-5, the vertex is (2,−5)(2,-5).

    Why: We get the yy-coordinate by substituting xvx_v into the function.

  3. Axis of symmetry: the line x=2x=2.
  4. a>0a>0, so the parabola opens upward and the vertex is a minimum point: the minimum value is −5-5.

    Why: For a "smiling" parabola the vertex is the lowest point.

  5. Decreasing: x<2x<2. Increasing: x>2x>2.

    Why: To the left of the vertex the function goes down to it; to the right it goes up from it.

CheckPoints symmetric about the vertex have equal values: f(1)=2−8+3=−3f(1)=2-8+3=-3 and f(3)=18−24+3=−3f(3)=18-24+3=-3. ✓
Common mistakeComputing xv=−84=−2x_v=\frac{-8}{4}=-2: forgetting that the formula has a minus in front of bb, while bb itself is negative.
What if…If aa were negative, the vertex would be a maximum and the intervals would swap: increasing to the left of the vertex and decreasing to the right (variant 2.1).
-112345-6-4-2246xy(2, -5)x=2

Variants of this type · 4

2.1Negative coefficient aa — the vertex is a maximum

Worked example

For f(x)=−x2+4x+1f(x)=-x^2+4x+1, find the vertex and the intervals of increase and decrease.

Solution

IdeaSame vertex formula, but now a<0a<0: the vertex is the highest point.
  1. xv=−42⋅(−1)=2x_v=-\frac{4}{2\cdot(-1)}=2.
  2. yv=−4+8+1=5y_v=-4+8+1=5, vertex (2,5)(2,5) — a maximum point.
  3. Increasing: x<2x<2. Decreasing: x>2x>2.

    Why: For a "sad" parabola the function rises up to the vertex and falls after it.

Checkf(0)=1f(0)=1 and f(4)=−16+16+1=1f(4)=-16+16+1=1 — equal and symmetric about x=2x=2. ✓
Common mistakeCopying the intervals from the a>0a>0 case without thinking about the direction of opening.
-112345-4-3-2-1123456xy(2, 5)
2.2Function given in vertex form

Worked example

Find the vertex and the intervals of increase and decrease for f(x)=3(x+1)2−7f(x)=3(x+1)^2-7.

Solution

IdeaIn the form a(x−h)2+ka(x-h)^2+k the vertex is (h,k)(h,k), with no computation.
  1. (x+1)2=(x−(−1))2(x+1)^2=(x-(-1))^2, so h=−1h=-1, k=−7k=-7. Vertex: (−1,−7)(-1,-7).

    Why: Write the bracket as x−hx-h to avoid a sign error.

  2. a=3>0a=3>0 — a minimum. Minimum value: −7-7.

    Why: (x+1)2≥0(x+1)^2\geq 0 and equals 00 only at x=−1x=-1; therefore f(x)≥−7f(x)\geq -7.

  3. Decreasing: x<−1x<-1. Increasing: x>−1x>-1.
Checkf(−1)=3⋅0−7=−7f(-1)=3\cdot 0-7=-7.
Common mistakeReading the vertex as (1,−7)(1,-7).
2.3Function given in factored form

Worked example

Find the vertex of f(x)=(x−1)(x−7)f(x)=(x-1)(x-7).

Solution

IdeaThe parabola is symmetric, so the vertex lies exactly midway between the roots.
  1. Roots: x=1x=1 and x=7x=7.
  2. xv=1+72=4x_v=\frac{1+7}{2}=4.

    Why: The axis of symmetry passes midway between two points with equal values — here both are at height 00.

  3. yv=f(4)=(4−1)(4−7)=3⋅(−3)=−9y_v=f(4)=(4-1)(4-7)=3\cdot(-3)=-9. Vertex: (4,−9)(4,-9).
CheckExpanding: x2−8x+7x^2-8x+7, and xv=−−82=4x_v=-\frac{-8}{2}=4. ✓
Common mistakeExpanding and using the formula — not wrong, but slower and with more chances of an arithmetic slip.
2.4Two points with equal values — finding a coefficient

If f(x1)=f(x2)f(x_1)=f(x_2), the axis of symmetry is x=x1+x22x=\frac{x_1+x_2}{2}.

Worked example

The parabola f(x)=x2+bx+cf(x)=x^2+bx+c satisfies f(−1)=f(5)f(-1)=f(5). Find bb.

Solution

IdeaTwo points at the same height are equally far from the axis of symmetry.
  1. Axis of symmetry: x=−1+52=2x=\frac{-1+5}{2}=2.
  2. xv=−b2=2x_v=-\frac{b}{2}=2, so b=−4b=-4.

    Why: The axis of symmetry is the xx-coordinate of the vertex.

Checkf(−1)=1+4+c=5+cf(-1)=1+4+c=5+c and f(5)=25−20+c=5+cf(5)=25-20+c=5+c — equal for any cc. ✓
Common mistakeTrying to find cc as well — but the data don't determine it, and that's fine.
What if…If we are also given f(0)=3f(0)=3, then c=3c=3, and the function x2−4x+3x^2-4x+3 is fully known.
3

Range and maximum/minimum on an interval

The question asks for the range, the maximum or minimum value — on the whole line or only on an interval — or gives a word problem about a "maximum".

Worked example

Find the range of f(x)=x2−4x+1f(x)=x^2-4x+1.

Solution

IdeaAn upward-opening parabola has a lowest point — the vertex. All values from yvy_v upward are attained.
  1. xv=2x_v=2, yv=4−8+1=−3y_v=4-8+1=-3.
  2. a=1>0a=1>0, so −3-3 is the minimum value.

    Why: The parabola grows without bound on both sides of the vertex.

  3. Range: y≥−3y\geq -3.
Checkf(2)=−3f(2)=-3 is attained, while for example f(x)=−4f(x)=-4 gives x2−4x+5=0x^2-4x+5=0 with Δ=−4<0\Delta=-4<0 — not attained. ✓
Common mistakeWriting the range in terms of xx ("x≥2x\geq 2"). The range consists of yy values.

Variants of this type · 4

3.1Downward-opening parabola

Worked example

Find the range of f(x)=−2x2+12x−10f(x)=-2x^2+12x-10.

Solution

IdeaWhen a<0a<0 the vertex is the highest point, and the range is "from yvy_v downward".
  1. xv=−12−4=3x_v=-\frac{12}{-4}=3.
  2. yv=−18+36−10=8y_v=-18+36-10=8.
  3. Range: y≤8y\leq 8.
Checkf(1)=−2+12−10=0≤8f(1)=-2+12-10=0\leq 8. ✓
Common mistakeWriting y≥8y\geq 8 out of habit.
3.2Maximum and minimum on an interval containing the vertex

Worked example

Find the maximum and minimum values of f(x)=x2−4x+1f(x)=x^2-4x+1 on the interval 0≤x≤50\leq x\leq 5.

Solution

IdeaOn an interval, check three candidates: the vertex (if it is inside the interval) and both endpoints.
  1. xv=2x_v=2 lies in the interval, f(2)=−3f(2)=-3.

    Why: So the vertex is the minimum on the interval.

  2. Endpoints: f(0)=1f(0)=1, f(5)=25−20+1=6f(5)=25-20+1=6.
  3. Maximum: 66 (at x=5x=5). Minimum: −3-3 (at x=2x=2).

    Why: The maximum is at the endpoint farther from the vertex.

Check55 is 33 units from 22, while 00 is only 22 units away, so the endpoint x=5x=5 is higher. ✓
Common mistakeAnswering "there is no maximum", as on the whole line. On an interval a maximum always exists.
-1123456-4-3-2-11234567xy(2, -3)(0, 1)(5, 6)
3.3Interval not containing the vertex

Worked example

Find the maximum and minimum values of f(x)=x2−4x+1f(x)=x^2-4x+1 on the interval 3≤x≤63\leq x\leq 6.

Solution

IdeaIf the vertex is outside the interval, the function keeps increasing (or decreasing) on it — and the extremes are at the endpoints.
  1. xv=2x_v=2 is outside the interval, and on it x>2x>2, so the function is increasing.

    Why: To the right of the vertex of a parabola with a>0a>0 — increasing.

  2. Minimum: f(3)=9−12+1=−2f(3)=9-12+1=-2.
  3. Maximum: f(6)=36−24+1=13f(6)=36-24+1=13.
Checkf(4)=1f(4)=1 lies between −2-2 and 1313. ✓
Common mistakeAnswering −3-3 as the minimum — but x=2x=2 is not in the interval.
3.4Word problem: maximum of a product or an area

Worked example

The perimeter of a rectangle is 2020 cm. What is the largest possible area?

Solution

IdeaBuild a quadratic function of one variable and find its vertex.
  1. Let one side be xx. Then the other side is 10−x10-x.

    Why: Half the perimeter is 1010.

  2. Area: S(x)=x(10−x)=−x2+10xS(x)=x(10-x)=-x^2+10x.
  3. a=−1<0a=-1<0, so the maximum is at the vertex: xv=−10−2=5x_v=-\frac{10}{-2}=5.

    Why: Opens downward — the vertex is the highest point.

  4. S(5)=5⋅5=25S(5)=5\cdot 5=25 cm². The rectangle is a 5×55\times 5 square.
CheckFor example, x=4x=4: 4⋅6=24<254\cdot 6=24<25. ✓
Common mistakeAnswering "x=5x=5" — but the question asked for the area, not the side length.
What if…If one side of the rectangle is along a wall (fence on three sides only, length 2020): S=x(20−2x)S=x(20-2x), xv=5x_v=5, S=50S=50.
4

Finding the function from given data

Given the vertex, roots or points on the graph, find the formula of the function.

Worked example

The vertex of a parabola is (2,−1)(2,-1), and the parabola passes through (0,3)(0,3). Find the function.

Solution

IdeaChoose the form into which the data plug in directly. Given the vertex — vertex form, and only aa remains.
  1. f(x)=a(x−2)2−1f(x)=a(x-2)^2-1.

    Why: In vertex form with (h,k)=(2,−1)(h,k)=(2,-1) — only one unknown remains.

  2. Substitute (0,3)(0,3): 3=a⋅(0−2)2−1=4a−13=a\cdot(0-2)^2-1=4a-1.

    Why: The point lies on the graph, so it satisfies the formula.

  3. 4a=44a=4, so a=1a=1.
  4. f(x)=(x−2)2−1=x2−4x+3f(x)=(x-2)^2-1=x^2-4x+3.
Checkf(0)=3f(0)=3 ✓, and xv=−−42=2x_v=-\frac{-4}{2}=2, f(2)=−1f(2)=-1 ✓.
Common mistakeStarting from ax2+bx+cax^2+bx+c with three unknowns — possible, but much longer.

Variants of this type · 5

4.1Given two roots and one more point

Worked example

The roots of a parabola are −1-1 and 33, and it passes through (1,8)(1,8). Find the function.

Solution

IdeaRoots are given — factored form a(x−x1)(x−x2)a(x-x_1)(x-x_2).
  1. f(x)=a(x+1)(x−3)f(x)=a(x+1)(x-3).
  2. Substitute (1,8)(1,8): 8=a⋅2⋅(−2)=−4a8=a\cdot 2\cdot(-2)=-4a, so a=−2a=-2.
  3. f(x)=−2(x+1)(x−3)=−2x2+4x+6f(x)=-2(x+1)(x-3)=-2x^2+4x+6.
Checkf(1)=−2+4+6=8f(1)=-2+4+6=8 ✓, f(3)=−18+12+6=0f(3)=-18+12+6=0 ✓.
Common mistakeWriting (x−1)(x+3)(x-1)(x+3) — signs opposite to the roots.
4.2Given three points

Worked example

A parabola passes through (0,1)(0,1), (1,0)(1,0) and (2,3)(2,3). Find the function.

Solution

IdeaThree unknowns a,b,ca,b,c — three equations. The point with x=0x=0 immediately gives cc.
  1. (0,1)(0,1): c=1c=1.

    Why: Always f(0)=cf(0)=c.

  2. (1,0)(1,0): a+b+1=0a+b+1=0, that is, a+b=−1a+b=-1.
  3. (2,3)(2,3): 4a+2b+1=34a+2b+1=3, that is, 2a+b=12a+b=1.
  4. Subtract: (2a+b)−(a+b)=1−(−1)(2a+b)-(a+b)=1-(-1), so a=2a=2, and then b=−3b=-3.

    Why: Subtracting the equations eliminates bb.

  5. f(x)=2x2−3x+1f(x)=2x^2-3x+1.
Checkf(1)=2−3+1=0f(1)=2-3+1=0 ✓, f(2)=8−6+1=3f(2)=8-6+1=3 ✓.
Common mistakeSubstituting a point the wrong way round: x=3, y=2x=3,\ y=2 instead of x=2, y=3x=2,\ y=3.
4.3Given the axis of symmetry and a point

Worked example

f(x)=x2+bx+cf(x)=x^2+bx+c. The axis of symmetry is x=−3x=-3, and f(0)=5f(0)=5. Find bb and cc.

Solution

IdeaThe axis of symmetry is xvx_v, and f(0)f(0) is cc.
  1. −b2=−3-\frac{b}{2}=-3, so b=6b=6.
  2. c=f(0)=5c=f(0)=5.
  3. f(x)=x2+6x+5f(x)=x^2+6x+5.
Checkxv=−62=−3x_v=-\frac{6}{2}=-3 ✓.
Common mistakeGetting b=−6b=-6 because of a sign error in −b2a-\frac{b}{2a}.
4.4Tangent to the xx-axis and passing through a point

Worked example

A parabola touches the xx-axis at (4,0)(4,0) and passes through (2,−8)(2,-8). Find the function.

Solution

Idea"Touches the xx-axis" — the vertex is on the xx-axis. It is also a double root.
  1. f(x)=a(x−4)2f(x)=a(x-4)^2.

    Why: Vertex (4,0)(4,0): vertex form with k=0k=0.

  2. −8=a⋅(2−4)2=4a-8=a\cdot(2-4)^2=4a, so a=−2a=-2.
  3. f(x)=−2(x−4)2f(x)=-2(x-4)^2.
Checkf(2)=−2⋅4=−8f(2)=-2\cdot 4=-8 ✓, f(4)=0f(4)=0 ✓.
Common mistakeLooking for a "second root" — there isn't one: it's a double root.
4.5Finding the function from a graph

Worked example

In the graph the parabola crosses the xx-axis at x=1x=1 and x=5x=5, and the yy-axis at (0,−5)(0,-5). Find the function.

Solution

IdeaFrom the graph read the roots and one more point — then proceed as in variant 4.1.
  1. f(x)=a(x−1)(x−5)f(x)=a(x-1)(x-5).
  2. f(0)=a⋅(−1)(−5)=5a=−5f(0)=a\cdot(-1)(-5)=5a=-5, so a=−1a=-1.
  3. f(x)=−(x−1)(x−5)=−x2+6x−5f(x)=-(x-1)(x-5)=-x^2+6x-5.
Checka<0a<0, and the graph indeed opens downward; the vertex is at x=3x=3: f(3)=−9+18−5=4f(3)=-9+18-5=4.
Common mistakeForgetting aa and writing (x−1)(x−5)(x-1)(x-5) — the graph would open upward and pass through (0,5)(0,5).
-1123456-6-5-4-3-2-112345xy(1, 0)(5, 0)(0, -5)
5

Question with a parameter

Find the parameter for which the function has two roots, one or none; is always positive; or has its vertex at a given place.

Worked example

For which kk does f(x)=x2−6x+kf(x)=x^2-6x+k have two distinct roots? One root? No roots?

Solution

IdeaThe number of roots is determined by the sign of Δ\Delta. Compute Δ\Delta as an expression in kk and solve the inequality.
  1. Δ=(−6)2−4⋅1⋅k=36−4k\Delta=(-6)^2-4\cdot 1\cdot k=36-4k.
  2. Two roots: 36−4k>036-4k>0, that is, k<9k<9.

    Why: Dividing by −4-4 flips the inequality sign.

  3. One root: 36−4k=036-4k=0, that is, k=9k=9.
  4. No roots: k>9k>9.
Checkk=9k=9: x2−6x+9=(x−3)2x^2-6x+9=(x-3)^2 — a double root ✓. k=0k=0: x2−6x=x(x−6)x^2-6x=x(x-6) — two roots ✓.
Common mistakeDividing by −4-4 without flipping the sign: getting k>9k>9 for two roots.

Variants of this type · 5

5.1Parameter in the coefficient of x2x^2

If the parameter is in aa, consider the case a=0a=0 separately — there the function is no longer quadratic.

Worked example

How many roots does f(x)=(m−1)x2+4x+1f(x)=(m-1)x^2+4x+1 have, depending on mm?

Solution

IdeaTwo cases: a=0a=0 (a linear function) and a≠0a\neq 0 (check Δ\Delta).
  1. m=1m=1: f(x)=4x+1f(x)=4x+1 — one root, x=−14x=-\frac{1}{4}.

    Why: There is no x2x^2 here, and the Δ\Delta formula does not apply.

  2. m≠1m\neq 1: Δ=16−4(m−1)=20−4m\Delta=16-4(m-1)=20-4m.
  3. m<5m<5 (and m≠1m\neq 1): two roots. m=5m=5: one root. m>5m>5: no roots.
Checkm=5m=5: 4x2+4x+1=(2x+1)24x^2+4x+1=(2x+1)^2 — a double root ✓.
Common mistakeForgetting m=1m=1 and answering "m<5m<5: two roots" — but at m=1m=1 there is only one root.
5.2Positive for all xx

Worked example

For which kk is f(x)=x2+2kx+9f(x)=x^2+2kx+9 positive for all xx?

Solution

IdeaA parabola is always positive when it opens upward (a>0a>0) and does not touch the xx-axis (Δ<0\Delta<0).
  1. a=1>0a=1>0 ✓.
  2. Δ=4k2−36<0\Delta=4k^2-36<0, that is, k2<9k^2<9.
  3. −3<k<3-3<k<3.

    Why: k2<9k^2<9 means ∣k∣<3|k|<3.

Checkk=3k=3: (x+3)2(x+3)^2 equals 00 at x=−3x=-3 — not strictly positive, so 33 is excluded ✓.
Common mistakeWriting only k<3k<3 and missing that k=−5k=-5 also gives Δ>0\Delta>0.
5.3Negative for all xx, with the parameter in aa

Worked example

For which mm is f(x)=mx2+4x+mf(x)=mx^2+4x+m negative for all xx?

Solution

IdeaAlways negative — opens downward (a<0a<0) and has no roots (Δ<0\Delta<0). Both conditions together.
  1. a=m<0a=m<0.
  2. Δ=16−4m2<0\Delta=16-4m^2<0, that is, m2>4m^2>4: m<−2m<-2 or m>2m>2.
  3. Intersect with m<0m<0: m<−2m<-2.

    Why: Both conditions must hold at the same time.

Checkm=−3m=-3: −3x2+4x−3-3x^2+4x-3, Δ=16−36<0\Delta=16-36<0 and a<0a<0 ✓.
Common mistakeAnswering "m<−2m<-2 or m>2m>2" — but for m>2m>2 the parabola opens upward.
5.4Vertex at a given place

Worked example

f(x)=x2−2(k+1)x+5f(x)=x^2-2(k+1)x+5. Find kk if (a) the axis of symmetry is x=3x=3; (b) the vertex lies on the xx-axis.

Solution

Idea"Axis of symmetry" is a condition on xvx_v. "Vertex on the xx-axis" is a condition on yvy_v, that is, Δ=0\Delta=0.
  1. (a) xv=2(k+1)2=k+1=3x_v=\frac{2(k+1)}{2}=k+1=3, so k=2k=2.
  2. (b) Δ=4(k+1)2−20=0\Delta=4(k+1)^2-20=0, that is, (k+1)2=5(k+1)^2=5.

    Why: Vertex on the xx-axis ⇔ a double root.

  3. k+1=±5k+1=\pm\sqrt{5}, so k=−1±5k=-1\pm\sqrt{5}.
Check(a) k=2k=2: x2−6x+5x^2-6x+5, xv=3x_v=3 ✓.
Common mistakeIn (b), taking only +5+\sqrt{5}.
5.5The graph passes through a given point

Worked example

The graph of f(x)=x2+kx−3f(x)=x^2+kx-3 passes through (2,5)(2,5). Find kk and the points where the graph meets the xx-axis.

Solution

IdeaA point on the graph — substitute it and get an equation in kk.
  1. 5=4+2k−35=4+2k-3, so k=2k=2.
  2. f(x)=x2+2x−3=(x+3)(x−1)f(x)=x^2+2x-3=(x+3)(x-1).
  3. xx-intercepts: (−3,0)(-3,0) and (1,0)(1,0).
Checkf(2)=4+4−3=5f(2)=4+4-3=5 ✓.
Common mistakeSubstituting x=5, y=2x=5,\ y=2.
6

Intersection of a parabola with a line or with another parabola

You need the intersection points of two graphs, a line tangent to a parabola, or the number of intersection points depending on a parameter.

Worked example

Find the intersection points of f(x)=x2−2x−3f(x)=x^2-2x-3 with the line y=x+1y=x+1.

Solution

IdeaAt an intersection point both graphs have the same xx and yy. Set the expressions equal and solve.
  1. x2−2x−3=x+1x^2-2x-3=x+1.
  2. x2−3x−4=0x^2-3x-4=0.

    Why: Move everything to one side to get an ordinary quadratic equation.

  3. (x−4)(x+1)=0(x-4)(x+1)=0, so x=4x=4 or x=−1x=-1.
  4. yy from the line: x=4⇒y=5x=4\Rightarrow y=5; x=−1⇒y=0x=-1\Rightarrow y=0.

    Why: Substitute into the simpler expression — the line.

  5. Points: (4,5)(4,5) and (−1,0)(-1,0).
CheckIn the parabola: f(4)=16−8−3=5f(4)=16-8-3=5 ✓, f(−1)=1+2−3=0f(-1)=1+2-3=0 ✓.
Common mistakeStopping after finding xx and not computing yy.
-3-2-1123456-4-22468xy(4, 5)(-1, 0)

Variants of this type · 4

6.1Tangent line — finding the parameter

A line is tangent to a parabola when the intersection equation has exactly one solution: Δ=0\Delta=0.

Worked example

For which mm is the line y=2x+my=2x+m tangent to the parabola y=x2y=x^2? What is the point of tangency?

Solution

IdeaThe intersection equation is quadratic; tangency = a single intersection point = Δ=0\Delta=0 of the intersection equation.
  1. x2=2x+mx^2=2x+m, that is, x2−2x−m=0x^2-2x-m=0.
  2. Δ=4+4m=0\Delta=4+4m=0, so m=−1m=-1.
  3. x=22=1x=\frac{2}{2}=1, y=1y=1. Point of tangency: (1,1)(1,1).

    Why: When Δ=0\Delta=0: x=−b2ax=-\frac{b}{2a}.

Checkx2−2x+1=(x−1)2x^2-2x+1=(x-1)^2 — a double root ✓.
Common mistakeComputing Δ\Delta of the parabola x2x^2 itself instead of the intersection equation.
6.2Number of intersection points depending on a parameter

Worked example

How many intersection points do the parabola y=x2+1y=x^2+1 and the line y=kxy=kx have, depending on kk?

Solution

IdeaNumber of solutions of the intersection equation = number of intersection points.
  1. x2−kx+1=0x^2-kx+1=0, Δ=k2−4\Delta=k^2-4.
  2. k<−2k<-2 or k>2k>2: two points.
  3. k=±2k=\pm 2: one point (the line is tangent).
  4. −2<k<2-2<k<2: no intersection.
Checkk=0k=0: y=0y=0 never meets x2+1≥1x^2+1\geq 1 ✓.
Common mistakeForgetting k=−2k=-2 (tangency on the negative side too).
6.3Intersection of two parabolas

Worked example

Find the intersection points of f(x)=x2−4f(x)=x^2-4 and g(x)=−x2+2xg(x)=-x^2+2x.

Solution

IdeaExactly as with a line: set equal, move to one side, solve.
  1. x2−4=−x2+2xx^2-4=-x^2+2x, so 2x2−2x−4=02x^2-2x-4=0.
  2. x2−x−2=0x^2-x-2=0, that is, (x−2)(x+1)=0(x-2)(x+1)=0.

    Why: Divided by 22 to simplify.

  3. x=2x=2: f(2)=0f(2)=0. x=−1x=-1: f(−1)=−3f(-1)=-3.
  4. Points: (2,0)(2,0) and (−1,−3)(-1,-3).
Checkg(2)=−4+4=0g(2)=-4+4=0 ✓, g(−1)=−1−2=−3g(-1)=-1-2=-3 ✓.
Common mistakeForgetting to move −x2-x^2 and getting a first-degree equation.
6.4Horizontal line y=ky=k — number of solutions from the vertex

Worked example

How many solutions does x2−4x=kx^2-4x=k have, depending on kk?

Solution

Ideay=ky=k is a horizontal line. Move it up and down and compare with the height of the vertex.
  1. Vertex of x2−4xx^2-4x: xv=2x_v=2, yv=−4y_v=-4.
  2. k>−4k>-4: two solutions. k=−4k=-4: one solution. k<−4k<-4: none.

    Why: Opens upward: there are no values below the vertex.

CheckAlgebraically: x2−4x−k=0x^2-4x-k=0, Δ=16+4k\Delta=16+4k, which is 00 at k=−4k=-4 ✓.
Common mistakeAnswering from Δ\Delta of x2−4xx^2-4x (which doesn't depend on kk) instead of x2−4x−kx^2-4x-k.

Exam-style problems

One problem with several parts on the same data, as on the exam. Each part adds something to the drawing.

Practice · 20

Test yourself with problems and full solutions.

Go to practice