Graphical Solution of a Quadratic Equation

Graphical Solution of a Quadratic Equation
Loading the math board and drawing, please wait…
2012-04-23 20:02
This example demonstrates the graphical solution of a quadratic equation. Key mathematical concepts include quadratic equations, function graphs, and the concept of roots. Using GeoGebra commands such as If, Sequence, Polygon, etc., the example dynamically shows the graph of a quadratic equation, the process of finding roots, and the meaning of the discriminant. Suitable for middle school and above students and teachers.

GeoGebra Commands & Parameters

  1. If(step ≟ 1, 1, If[step ≟ 2, 3, If[step ≟ 3, 4, If[step ≟ 4, 5, If[step ≟ 5, 6, If[step ≟ 6, 9, If[step ≟ 7, 9, If[step ≟ 8, 10]]]]]]]) → displayStep
  2. If(b > 0, "-" + (abs(b)), "" + (abs(b))) → bmindis
  3. Sequence(x_{start} + (x_{end} - x_{start}) * dsc / ncalc, dsc, 0, ncalc) → listx
  4. If(c > 0, "-" + (abs(c)), "+" + (abs(c))) → cmindis
  5. Sequence((x_{start} + (x_{end} - x_{start}) * dsc / ncalc, line(x_{start} + (x_{end} - x_{start}) * dsc / ncalc)), dsc, 0, ncalc) → listline
  6. Sequence((x_{start} + (x_{end} - x_{start}) * dsc / ncalc, f_a(x_{start} + (x_{end} - x_{start}) * dsc / ncalc)), dsc, 0, ncalc) → listfa
  7. Sequence((x_{start} + (x_{end} - x_{start}) * dsc / ncalc, f(x_{start} + (x_{end} - x_{start}) * dsc / ncalc)), dsc, 0, ncalc) → listf
  8. Polygon(Corner[1], (Corner[1] + 0.85 * Corner[2]) / 1.85, (Corner[4] + 0.85 * Corner[3]) / 1.85, Corner[4]) → yellowPoly, d, e, g, h
  9. Textfield(x_{start}) → inputxs
  10. Textfield(x_{end}) → inputxe
  11. Intersect(line, f_a) → A, B
  12. Textfield(n) → inputn
  13. Textfield(inputRoot) → inputRootToFind
  14. Segment(A, r_2) → a_1
  15. If(findSquareRoot, {Append[x, listx], Append["\fgcolor{CC0000}{y=" + f_a + "}", Zip["\fgcolor{CC0000}{" + (y(a)) + "}", a, listfa]]}, If[normalFormula, {Append["x", listx], Append["\fgcolor{CC0000}{y=" + f + "}", Zip["\fgcolor{CC0000}{" + (y(a)) + "}", a, listf]]}, {Append["x", listx], Append["\fgcolor{CC0000}{y=" + f_a + "}", Zip["\fgcolor{CC0000}{" + (y(a)) + "}", a, listfa]], Append["\fgcolor{CC0000}{y=" + bmindis + "x" + cmindis + "}", Zip["\fgcolor{CC0000}{" + (y(a)) + "}", a, listline]]}]) → listdisplay
  16. TableText(listdisplay, "vc|_") → tablePoint
  17. Sequence(x = a, a, -30, 30) → listxgrid
  18. Sequence(y = a, a, -30, 30) → listygrid
  19. Sequence(Sequence[(j + zerox, i + zeroy), i, -5, 10, 0.5], j, -5, 12, 0.5) → pointGrid
  20. Element(pointGrid, l_i, l_j) → grid_{point}
  21. Sequence(Element[listPanelText, panelType], i, 0, panelType) → listPanelTextDisplay
  22. Point(pointGrid) → C
  23. Point(pointGrid) → D
  24. FixedPolygon(C, D) → poly1, E, F
  25. Point(pointGrid) → G
  26. Point(pointGrid) → K
  27. Point(pointGrid) → L
  28. FixedPolygon(K, L) → poly3, M, N
  29. Point(pointGrid) → H
  30. FixedPolygon(G, H) → poly2, I, J
  31. Point(pointGrid) → O
  32. FixedPolygon(N, O) → poly4, P, Q
  33. Centroid(poly1) → cpoly1
  34. Centroid(poly2) → cpoly2
  35. Centroid(poly3) → cpoly3
  36. Centroid(poly4) → cpoly4
  37. Point(pointGrid) → R
  38. Element(pointGrid, 8, 15) → S
  39. FixedPolygon(R, S) → poly5, T, U
  40. Element(pointGrid, 10, 15) → V
  41. FixedPolygon(U, V) → poly6, W, Z
  42. Element(pointGrid, 12, 15) → A_1
  43. FixedPolygon(Z, A_1) → poly7, B_1, C_1
  44. Element(pointGrid, 18, 22) → D_1
  45. Point(pointGrid) → E_1
  46. FixedPolygon(D_1, E_1) → poly8, F_1, G_1
  47. Point(pointGrid) → H_1
  48. FixedPolygon(G_1, H_1) → poly9, I_1, J_1
  49. Element(pointGrid, 25, 13) → K_1
  50. FixedPolygon(F_1, K_1) → poly10, L_1, M_1
  51. Element(pointGrid, 1, 11) → N_1
  52. Element(pointGrid, 8, 4) → O_1
  53. FixedPolygon(N_1, O_1) → poly11, P_1, Q_1
  54. Point(pointGrid) → R_1
  55. FixedPolygon(Q_1, R_1) → poly12, S_1, T_1
  56. Element(pointGrid, 8, 2) → U_1
  57. FixedPolygon(P_1, U_1) → poly13, V_1, W_1
  58. Point(pointGrid) → Z_1
  59. FixedPolygon(O_1, Z_1) → poly14, A_2, B_2
  60. Point(pointGrid) → C_2
  61. Point(pointGrid) → D_2
  62. FixedPolygon(C_2, D_2) → poly15, E_2, F_2
  63. Point(pointGrid) → G_2
  64. Point(pointGrid) → K_2
  65. Element(pointGrid, 32, 6) → L_2
  66. FixedPolygon(K_2, L_2) → poly17, M_2, N_2
  67. Element(pointGrid, 27, 2) → H_2
  68. FixedPolygon(G_2, H_2) → poly16, I_2, J_2
  69. Centroid(poly5) → cpoly5
  70. Centroid(poly6) → cpoly6
  71. Centroid(poly7) → cpoly7
  72. Centroid(poly8) → cpoly8
  73. Centroid(poly9) → cpoly9
  74. Centroid(poly10) → cpoly10
  75. Centroid(poly11) → cpoly11
  76. Centroid(poly12) → cpoly12
  77. Centroid(poly13) → cpoly13
  78. Centroid(poly14) → cpoly14
  79. Centroid(poly15) → cpoly15
  80. Centroid(poly16) → cpoly16
  81. Centroid(poly17) → cpoly17
  82. Take(listCompletion, 1, displayStep) → listCompletionDisplay
  83. TableText({listCompletionDisplay}, "vl") → completionTable
  84. If(c > 0, "+" + (abs(c)), "-" + (abs(c))) → cdis
  85. If(b > 0, "+" + (abs(b)), "-" + (abs(b))) → bdis
  86. Segment(B, r_1) → b_1
  87. If(discriminant ≟ 0, Text[Element[listNature, 1]], If[discriminant > 0, Text[Element[listNature, 2]], If[discriminant < 0, Text[Element[listNature, 3]]]]) → latexNatureToggleText
  88. If(c > 0, "+" + (abs(c)), "-" + (abs(c))) → cdis_1
  89. If(b > 0, "+" + (abs(b)), "-" + (abs(b))) → bdis_1
  90. If(discriminant > 0, abs(discriminant) + " > 0", If[discriminant < 0, -abs(discriminant) + " < 0", "0"]) → discriminantdis