Learn Math

10 min read

How to Solve Quadratic Equations: Formula & Worked Examples

Published: 21.05.2026·Updated: 18.11.2026
Nadia Rahmawati

Nadia Rahmawati

Math Curriculum Team, Algonova

How to Solve Quadratic Equations: Formula & Worked Examples

A quadratic equation has the form ax² + bx + c = 0 (a ≠ 0). There are three ways to solve it: factoring, the quadratic formula x = (−b ± √(b²−4ac)) / 2a, or completing the square. The discriminant D = b² − 4ac determines the nature of the roots: D>0 two distinct roots, D=0 one repeated root, D<0 no real roots.

What Is a Quadratic Equation?

A quadratic equation is an equation with a variable raised to the second power, in the standard form:

where a, b, c are constants and a ≠ 0. The concept dates back to ancient Babylonia around 2000 BC — Babylonian mathematicians were already able to solve problems equivalent to quadratic equations, although they did not use modern notation. The mathematician al-Khwarizmi later formalised the method in the 9th century AD in his work Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala.

The roots of a quadratic equation are the values of x that satisfy the equation. A quadratic equation can have two distinct roots, one repeated root, or no real roots — depending on the value of its discriminant.

Graph of y = x² − 5x + 6 (roots: x=2 and x=3) x y x=2 x=3 vertex 1 2 3 4
Graph of y = x² − 5x + 6: the roots of the quadratic equation are the points where the curve crosses the x-axis (x=2 and x=3)

Three Methods for Solving Quadratic Equations

Method 1: Factoring

Find two numbers p and q such that p + q = b and p × q = a×c:

Method 2: The Quadratic Formula

Formula: x = (−b ± √(b²−4ac)) / (2a)

Discriminant :

  • D > 0: two distinct roots
  • D = 0: one repeated root
  • D < 0: no real roots

Method 3: Completing the Square

Rewrite the equation in the form , then take the square root.

💡 Tip for choosing a method: Try factoring first — if you cannot factor within 30 seconds, switch to the quadratic formula. The quadratic formula always works for every quadratic equation and frequently appears in standardised exams.


How to Solve Quadratic Equations: Worked Examples

Example 1: Factoring

Solve:

Step 1: a=1, b=−5, c=6. Find p and q: p+q = −5, p×q = 6 → p = −2, q = −3 (since −2+(−3)=−5 and −2×(−3)=6)

Step 2: Factor

Step 3: x − 2 = 0 → x = 2, or x − 3 = 0 → x = 3

Answer: x = 2 or x = 3


Example 2: Quadratic Formula

Solve:

Step 1: a=2, b=−3, c=−2

Step 2: Compute the discriminant

Step 3: Substitute into the quadratic formula

Answer: x = 2 or x = −1/2


Example 3: Completing the Square

Solve:

Step 1: Move the constant to the right-hand side

Step 2: Add to both sides

Step 3: x + 2 = ±3 → x = 1 or x = −5

Answer: x = 1 or x = −5


Common Mistakes When Solving Quadratic Equations

Mistake 1: Misreading the sign of a coefficient In , the coefficient b = −5 (negative), not +5. A common error is substituting b = +5 into the quadratic formula, which gives the wrong result. Always check the sign in front of each term before identifying a, b, c.

Mistake 2: Forgetting the ± (plus-minus) in the quadratic formula The quadratic formula produces two roots: x₁ with the + sign and x₂ with the − sign. Dropping one of the signs gives only one root and an incomplete answer. Write both possibilities explicitly: x = (−b + √D) / 2a and x = (−b − √D) / 2a.


Table of Quadratic Equation Types

EquationabcDiscriminant DNature of Roots
x²−5x+6=01−561Two distinct roots
x²−4x+4=01−440One repeated root (x=2)
x²+x+1=0111−3No real roots
2x²−3x−2=02−3−225Two distinct roots
4x²−4x+1=04−410One repeated root (x=½)

Practice Problems

Problem 1: ⭐ Solve by factoring:

Problem 2: ⭐⭐ Solve using the quadratic formula:

Problem 3: ⭐⭐ Solve by completing the square:

Problem 4: ⭐⭐⭐ A rectangular city park has an area of 60 m². Its length is 4 m greater than its width. Find the dimensions of the park using a quadratic equation!

Problem 5: ⭐⭐⭐ (Exam-style) The quadratic equation has two equal real roots. Find the value of k!

Answer Key:

  1. (x−3)(x−4)=0 → x = 3 or x = 4
  2. a=1, b=2, c=−8. D=4+32=36. x=(−2±6)/2 → x = 2 or x = −4
  3. x²−6x=−5 → (x−3)²=4 → x−3=±2 → x = 5 or x = 1
  4. w(w+4)=60 → w²+4w−60=0 → (w+10)(w−6)=0 → w=6, l=10 → length 10 m, width 6 m
  5. D = 0 → (k+2)² − 4(2k) = 0 → k² + 4k + 4 − 8k = 0 → k² − 4k + 4 = 0 → (k−2)² = 0 → k = 2

Summary

  1. A quadratic equation has the form ax² + bx + c = 0 (a ≠ 0) and has at most two real roots.
  2. Three solution methods: factoring (quick when possible), the quadratic formula (always works), and completing the square (important for conceptual understanding).
  3. The discriminant D = b² − 4ac determines the nature of the roots: D>0 two distinct roots, D=0 one repeated root, D<0 no real roots.
  4. The quadratic formula is essential for Grade 9 exams and preparation for standardised tests.
  5. Quadratic equations are applied in physics (projectile motion), economics (profit optimisation), and engineering (arch design).

Want to master quadratic equations and other maths topics with an experienced mentor? Algonova has helped more than 1,000,000 students in 97 countries learn maths through a personalised approach — Private (1 student), Mini (2-4 students), and Group (up to 10 students) formats, with a curriculum tailored to each child's level. Try a free maths diagnostic session at Algonova and find the maths learning style that fits your child best.

Read also: How to Calculate the Perimeter of a Rectangle and How to Find the Surface Area of a Cylinder.

Frequently Asked Questions

Does Algonova teach mathematics for primary, junior high, and senior high kids?

Yes, Algonova Indonesia offers a complete math program for kids aged 6 to 17, covering all school levels from primary, junior high, to senior high. Each level has a dedicated curriculum aligned with the child's cognitive stage and the Indonesian school curriculum (Kurikulum Merdeka). For primary school (6-12): basic operations, fractions, simple geometry, and introduction to algebra. For junior and senior high (13-17): algebra, quadratic equations, basic trigonometry, advanced geometry, basic calculus, statistics, UTBK SNBT preparation, and advanced topics. All classes are online live with certified teachers in small groups of up to 10 students per class. Our method is built on visual conceptual understanding, not formula memorisation. Try a free trial class for a child's level diagnostic and recommended learning path.

Is there a free trial class for kids math tutoring?

Yes. For mathematics Algonova Indonesia offers a free diagnostic session of about 60 minutes with no commitment. The format is called Metode Diagnostik Algonova. No credit card is needed and there is no auto subscription afterwards. Note that these roughly 60 minutes are a diagnostic session, not a regular class. A regular math class runs 90 minutes, while the coding and design tracks have their own introductory format, a free 60 minute master class. During the diagnostic a certified teacher maps the child's level: which topics are already solid and where the gaps sit. The child also tries the online learning platform and works through first problems matched to their school level. After the session parents receive a personal learning plan based on the diagnostic result, plus a transparent explanation of program, schedule, and pricing from Rp 102,000 per lesson. To book, fill in the form on the website.

How many students are in one Algonova math class?

Algonova Indonesia math classes come in three formats: 1-on-1 private, a mini-group of 2–4 kids, and a group of up to 10 students with similar ability and school grade levels. This small group format is deliberately chosen because it provides the optimal balance between social interaction with peers and personal teacher attention. In a mini-group, every child averages about 10 minutes of direct teacher interaction in a single session. Compare with traditional offline bimbel typically of 20-40 students per class — direct interaction there is only 1-2 minutes per child, or none at all. For families wanting full attention, one-on-one private class format is also available with one student per teacher. This format is more intensive and suits competition preparation, catching up from severe gaps, or specific topic depth.

How much does kids math tutoring at Algonova Indonesia cost?

Kids math tutoring at Algonova Indonesia starts from Rp 102,000 per lesson. The price includes a live session with a certified teacher, digital learning materials, online platform access, and an official certificate upon completing each program level. The transparent 'starting from' rate is the same across all school levels — the final quote depends only on class format (private, mini-group, or group) and how many sessions per week you choose. Groups are the most affordable option; private classes are more intensive and suit competition prep or closing larger gaps. Full pricing details are shared transparently after the free trial class. No surprise fees — every cost component is explained before formal enrolment. To receive the latest pricing details, fill in the booking form on the website.

Is math tutoring fully available online?

Yes, all Algonova Indonesia math programs are fully available online with live sessions taught by certified teachers — not recorded videos. Kids learn in real time in small groups of up to 10 students, with two-way interaction, live Q&A, and problems worked on alongside the teacher throughout the class. To join online class, a child only needs a computer or laptop with a camera, a stable internet connection, and a headset. The Algonova platform runs directly in the browser so no special software installation is required. Kids can write problems in a regular notebook or on a tablet with stylus. Because every class is fully online, families can join from anywhere in Indonesia and easily fit lessons around school and other activities.

What makes Algonova math tutoring effective for Indonesian kids?

Three main factors make Algonova math tutoring effective for Indonesian kids. First, the curriculum aligns with Kurikulum Merdeka used in national schools, so what is learned at Algonova directly helps with school lessons and exams. Second, the methodology is built on visual conceptual understanding (not formula memorisation). Kids learn to break big problems into small systematic steps — a thinking pattern transferable to other subjects like science and IT. Third, small groups of up to 10 students per class let teachers adjust pace to each child's ability. Slower kids get personal help, while faster kids don't get bored waiting. The result: most Algonova students see math grade improvements at school within the first 2-3 months.

What if my child is behind from earlier math grades?

Algonova Indonesia is specifically designed to help kids behind catch up in a way that doesn't make them feel defeated or ashamed. Every new student starts with a free diagnostic during the trial class to identify exactly where the gap occurred. Based on the diagnostic, the teacher builds a personal learning path that closes the gap from the most basic foundation. For example, a junior high student weak in algebra might actually be behind in primary school fraction operations. We go back to the foundation, then progress gradually without comparison with other peers. Many Algonova students who initially started 1-2 grade levels behind successfully caught up and even surpassed classmates within 3-6 months with weekly classes and consistent homework. It's never too late to start. Try a free trial class for diagnosis without commitment.

What is a quadratic equation?

A quadratic equation is a second-degree polynomial equation of the general form ax² + bx + c = 0, where a ≠ 0. Its solutions are called the roots of the quadratic equation. A quadratic equation can have two distinct real roots, one repeated real root, or no real roots.

What are the methods for solving a quadratic equation?

There are three main methods: (1) Factoring — breaking the equation into two linear factors; (2) The quadratic formula — x = (−b ± √(b²−4ac)) / 2a; (3) Completing the square — rewriting the equation as (x + p)² = q. Choose the most efficient method based on the coefficients of the equation.

What is the discriminant of a quadratic equation?

The discriminant is the value D = b² − 4ac that determines the nature of the roots of a quadratic equation. If D > 0, the equation has two distinct real roots. If D = 0, the equation has one repeated real root. If D < 0, the equation has no real roots.

When should you use the quadratic formula instead of factoring?

Use factoring when the coefficients are small and the equation factors easily. Use the quadratic formula when factoring does not work, the coefficients are large, or the roots are fractions or irrational numbers. The quadratic formula always works for every quadratic equation.

In which grade are quadratic equations taught?

Quadratic equations are typically studied in Grade 9 mathematics. They are one of the most important topics at lower-secondary level and serve as the foundation for advanced algebra in upper-secondary school, including quadratic functions and parabolas.

Where are quadratic equations used in real life?

Quadratic equations are used in physics to model projectile motion such as a thrown ball, in economics to find the point of maximum profit, in engineering to design bridge arches and parabolic antennas, and in computer graphics to draw curves.

What Year Group Are Quadratic Equations Taught In?

Quadratic equations are studied in Year 9 of SMP (junior secondary school) and are one of the most important algebra topics before moving on to quadratic functions and parabolas at SMA (senior secondary school). This material also comes up often in UTBK/SNBT, so mastering it matters over the long run. The key is understanding when to use factorising, the quadratic formula, or completing the square.

Students most often go wrong on the sign of a coefficient, and forget to write both roots that come from the plus-minus sign. Try a free Algonova math diagnostic to gauge your child's readiness for algebra, or explore the Algonova math programme. Study also Trigonometry Formulas and The Pythagorean Theorem.

Other Math Topics

Explore other popular math formulas and how-to guides for SD and SMP students in Indonesia:

Want your child to learn math with an experienced mentor? Try a free math diagnostic session at Algonova — a session of about 60 minutes for a level assessment, at no cost.