Solving Quadratic Equations and Systems with Desmos
In this lesson
- Solve a quadratic equation in Desmos in two ways and read the solutions.
- Match decimal answers with answer choices that contain fractions or roots.
- Solve a system of a line and a parabola and count its solutions.
- Use a slider for a parameter, and know when the slider is not exact.
- Use Desmos to test the answer choices when the answer contains a letter.
1. Solving an equation
Two ways
Take the equation \( 2x^2 - x = 6 \). There are two ways to solve it in Desmos.
Way 1. Move everything to one side and graph it: type y=2x^2-x-6. The solutions are the \( x \)-intercepts of the graph.
Way 2. Graph each side as its own function: type y=2x^2-x and y=6. The solutions are the \( x \)-coordinates of the intersection points (Figure 1). You do not need to rearrange the equation.
Reading the answer
Click a point to see its coordinates. Desmos shows decimals: \( -1.5 \) is \( -\frac{3}{2} \). On a grid-in question, an exact decimal such as \( 2.5 \) is accepted.
If the answer choices contain roots, compare decimals. Type a choice into Desmos to see its value, for example (5+sqrt(73))/6.
Example: a choice with a root
The solutions of \( x^2 - 2x - 1 = 0 \) are one of the choices \( 1 \pm \sqrt{2} \) or \( 2 \pm \sqrt{2} \). Desmos shows the \( x \)-intercepts \( (-0.414, 0) \) and \( (2.414, 0) \).
\( 1 + \sqrt{2} \approx 2.414 \) and \( 1 - \sqrt{2} \approx -0.414 \): a match. \( 2 \pm \sqrt{2} \) gives \( 3.414 \) and \( 0.586 \): no match. The solutions are \( 1 \pm \sqrt{2} \).
Practice
What is the positive solution to the equation \( 2x^2 + 3x - 20 = 0 \)?
In Desmos. Type
y=2x^2+3x-20. The graph crosses the \( x \)-axis at \( (-4, 0) \) and \( (2.5, 0) \). The positive solution is \( 2.5 \), that is, \( \frac{5}{2} \). On the SAT, both \( 5/2 \) and \( 2.5 \) are accepted.By hand. \( 2x^2 + 3x - 20 = (2x - 5)(x + 4) \), so \( x = \frac{5}{2} \) or \( x = -4 \).
Which of the following gives the solutions to the equation \( 3x^2 = 5x + 4 \)?
A) \( \frac{-5 \pm \sqrt{73}}{6} \)
B) \( \frac{5 \pm \sqrt{73}}{3} \)
C) \( \frac{5 \pm \sqrt{73}}{6} \)
D) \( \frac{5 \pm \sqrt{23}}{6} \)
In Desmos. Type
y=3x^2 and y=5x+4. The graphs intersect at \( x \approx -0.591 \) and \( x \approx 2.257 \).Now find the approximate values of the choices, for example by typing them into Desmos: A gives \( 0.591 \) and \( -2.257 \), B gives \( 4.515 \) and \( -1.181 \), C gives \( 2.257 \) and \( -0.591 \), D gives \( 1.633 \) and \( 0.034 \). Choice C.
By hand. \( 3x^2 - 5x - 4 = 0 \), and \( D = 25 + 48 = 73 \).\[ x = \frac{5 \pm \sqrt{73}}{6} \]
2. Systems: a line and a parabola
Systems in Desmos
Type both equations. Each intersection point is a solution \( (x, y) \) of the system, and the number of intersection points is the number of solutions.
Desmos also accepts an equation that is not solved for \( y \), such as x+y=3.
Example
Solve the system \( y = x^2 - 2x - 3 \) and \( x + y = 3 \).
Type y=x^2-2x-3 and x+y=3. The graphs meet at \( (-2, 5) \) and \( (3, 0) \) (Figure 2).
Check \( (3, 0) \): \( 9 - 6 - 3 = 0 \) and \( 3 + 0 = 3 \).
Practice
The system of equations \( x + y = 7 \) and \( y = x^2 - 5x + 2 \) has a solution \( (a, b) \), where \( a < 0 \). What is the value of \( b \)?
In Desmos. Type
x+y=7 and y=x^2-5x+2. Desmos accepts the first equation as it is. The graphs intersect at \( (-1, 8) \) and \( (5, 2) \). For \( a < 0 \), \( b = 8 \).By hand. \( y = 7 - x \), so \( 7 - x = x^2 - 5x + 2 \), that is, \( x^2 - 4x - 5 = 0 \). Then \( x = -1 \) or \( x = 5 \); for \( x = -1 \), \( y = 8 \).
3. Parameters and the slider
Moving a graph with a slider
If an equation contains a letter, for example y=x^2+6x+c, Desmos offers to add a slider for \( c \). Move the slider and watch the graph.
For \( c < 9 \) the parabola crosses the \( x \)-axis twice, and for \( c > 9 \) it does not reach the axis. So \( x^2 + 6x + c = 0 \) has exactly one solution when \( c = 9 \).
How exact is the slider?
A slider moves in small steps. It easily finds a value like \( 9 \), but it cannot show that the answer is exactly \( 2.25 \).
Then use the vertex. For \( x^2 - 3x + c = 0 \), type y=x^2-3x and click its vertex, \( (1.5, -2.25) \). Adding \( c = 2.25 \) lifts the vertex exactly onto the \( x \)-axis.
Or compute: exactly one solution means \( D = 0 \).
Practice
In the \( xy \)-plane, the line \( y = 2x + k \), where \( k \) is a constant, intersects the parabola \( y = -x^2 + 4x + 1 \) at exactly one point. What is the value of \( k \)?
In Desmos. Type
y=-x^2+4x+1 and y=2x+k, and add a slider for \( k \). Move the slider until the line touches the parabola: this happens at \( k = 2 \), at the point \( (1, 4) \).By hand. \( -x^2 + 4x + 1 = 2x + k \), so \( x^2 - 2x + (k - 1) = 0 \). Exactly one solution means \( D = 0 \): \( 4 - 4(k - 1) = 0 \), so \( k = 2 \).
In the equation \( x^2 - 5x + c = 0 \), \( c \) is a constant. If the equation has exactly one solution, what is the value of \( c \)?
In Desmos. A slider for \( c \) shows that the parabola
y=x^2-5x+c touches the \( x \)-axis somewhere between \( c = 6.2 \) and \( c = 6.3 \), but not the exact value. A better way: type y=x^2-5x and click its vertex, \( (2.5, -6.25) \). Adding \( c = 6.25 \) lifts the vertex exactly to the \( x \)-axis.By hand. Exactly one solution means \( D = 0 \): \( 25 - 4c = 0 \), so \( c = \frac{25}{4} \).
4. When Desmos is not enough
Pick a number
Desmos cannot give an answer that contains a letter ("in terms of \( a \)"), and it cannot show an exact value it does not display. In such questions, pick a number for the letter and use Desmos to test the answer choices. If two choices match, try a second number.
Example
Which choice gives the solutions of \( x^2 - 4ax + 3a^2 = 0 \) in terms of \( a \): "\( a \) and \( 3a \)" or "\( a \) and \( a + 4 \)"?
Pick \( a = 2 \): type y=x^2-8x+12. The solutions are \( 2 \) and \( 6 \). Both choices give \( 2 \) and \( 6 \)!
Pick \( a = 3 \): type y=x^2-12x+27. The solutions are \( 3 \) and \( 9 \). "\( a \) and \( 3a \)" gives \( 3 \) and \( 9 \), but "\( a \) and \( a + 4 \)" gives \( 3 \) and \( 7 \). The answer is \( a \) and \( 3a \).
Practice
In the equation \( x^2 - 2ax + a^2 - 4 = 0 \), \( a \) is a constant. Which of the following gives the solutions in terms of \( a \)?
A) \( -a \pm 2 \)
B) \( a \pm 2 \)
C) \( a \pm 4 \)
D) \( 2 \pm a \)
In Desmos. Desmos cannot give an answer with a letter, but it can check the choices. Pick a number, for example \( a = 1 \): type
y=x^2-2x-3. The solutions are \( -1 \) and \( 3 \).With \( a = 1 \): A gives \( 1 \) and \( -3 \), B gives \( 3 \) and \( -1 \), C gives \( 5 \) and \( -3 \), D gives \( 3 \) and \( 1 \). Only B matches. Choice B.
By hand. \( x^2 - 2ax + a^2 = (x - a)^2 \), so the equation is \( (x - a)^2 = 4 \). Then \( x - a = \pm 2 \), and \( x = a \pm 2 \).
On Your Own
The system of equations \( y = x^2 - 4 \) and \( y = 2x - 1 \) has a solution \( (x, y) \) with \( x > 0 \). What is the value of \( y \)?
What is the sum of the solutions to the equation \( (x - 3)^2 = 2x - 1 \)?
What is the positive solution to the equation \( 0.5x^2 - 1.2x - 3.2 = 0 \)?
The system of equations \( y = x^2 \) and \( y = 6 - x \) has two solutions, \( (x_1, y_1) \) and \( (x_2, y_2) \). What is the value of \( y_1 + y_2 \)?
In the \( xy \)-plane, the graphs of \( y = x^2 + k \), where \( k \) is a constant, and \( y = 4x \) have no points in common. Which of the following could be the value of \( k \)?
A) \( 2 \)
B) \( 3 \)
C) \( 4 \)
D) \( 5 \)