Derivatives: the basics

Number of real solutions of an equation

The number of real solutions of f(x)=kf(x)=k equals the number of points where the graph y=f(x)y=f(x) meets the line y=ky=k.

(number of real solutions of f(x)=k)=(number of intersections of y=f(x) and y=k)\begin{gathered} (\text{number of real solutions of } f(x)=k) \\[4pt] =(\text{number of intersections of } y=f(x) \text{ and } y=k) \end{gathered}

When a cubic has a local maximum and a local minimum, move the horizontal line y=ky=k up and down and count how many times it meets the graph.

(local min)<k<(local max)⟹ 3 real solutions\begin{gathered} (\text{local min})<k<(\text{local max}) \\[4pt] \Longrightarrow\ \text{3 real solutions} \end{gathered}

If kk equals the local maximum or minimum, the line is tangent to the graph and there are 2; if kk is above the local maximum or below the local minimum, there is 1. For example, for a cubic with a local maximum 55 at x=2x=2 and a local minimum 11 at x=4x=4, the right side 00 of f(x)=0f(x)=0 is below the local minimum 11, so there is 1 real solution.

Examples

  1. 01A cubic with a local maximum 1 at x=0 and a local minimum -2 at x=2. What goes in □ so that there are 3 solutions?□<k<1\displaystyle \square < k < 1AnswerHide
    Answer−2\displaystyle -2

    Steps

    1. Three solutions means k lies between them
    2. −2\displaystyle -2<k<1\displaystyle < k < 1
    3. The bound is the minimum value, not its x = 2
  2. 02A cubic with a local maximum 7 at x=1 and a local minimum 3 at x=4. For which k are there 3 solutions?f(x)=k\displaystyle f(x)=kAnswerHide
    Answer3<k<7\displaystyle 3<k<7

    Steps

    1. Check what happens at each end
    2. k=7\displaystyle k = 7⇒2\displaystyle \Rightarrow 2k=3\displaystyle k = 3⇒2\displaystyle \Rightarrow 2
    3. At the ends it touches and gives 2, so the inequality is strict
  3. 03A cubic with a local maximum 5 at x=2 and a local minimum 1 at x=4. How many real solutions?f(x)=0\displaystyle f(x)=0AnswerHide
    Answer1\displaystyle 1
  4. 04A cubic with a local maximum 3 at x=-1 and a local minimum 1 at x=1. What goes in □ so that there are 3 solutions?□<k<3\displaystyle \square < k < 3AnswerHide
    Answer1\displaystyle 1

    Steps

    1. Three solutions means k lies between them
    2. 1\displaystyle 1<k<3\displaystyle < k < 3
    3. The bound is the minimum value, not its x = 1
  5. 05A cubic with a local maximum 9 at x=-1 and a local minimum 1 at x=1. What goes in □ so that there are 3 solutions?□<k<9\displaystyle \square < k < 9AnswerHide
    Answer1\displaystyle 1

    Steps

    1. Three solutions means k lies between them
    2. 1\displaystyle 1<k<9\displaystyle < k < 9
    3. The bound is the minimum value, not its x = -1
  6. 06A cubic with a local maximum -1 at x=0 and a local minimum -4 at x=3. What goes in □ so that there are 3 solutions?□<k<−1\displaystyle \square < k < -1AnswerHide
    Answer−4\displaystyle -4

    Steps

    1. Three solutions means k lies between them
    2. −4\displaystyle -4<k<−1\displaystyle < k < -1
    3. The bound is the minimum value, not its x = 3

FAQ

Q1Why rewrite the equation as f(x)=kf(x)=k?AnswerHide
A
With kk alone on the right, the graph on the left is fixed no matter what kk is, and kk is just the height of a line. Draw the graph once, then slide the line up and down to read the number of solutions for each kk.
Q2How many solutions are there when kk equals the local maximum?AnswerHide
A
Two distinct real solutions. The line y=ky=k touches the graph at the local maximum (a double root) and crosses it at one other point.

Published 2026-10-14 · Updated 2026-10-14