Quadratic equation (Bhaskara)

Solve ax² + bx + c = 0 with delta and roots.

{{ quadraticEquation.message }}

Overview

The quadratic formula — x = (−b ± √Δ) / 2a, with Δ = b² − 4ac — is arguably the most universally memorized equation taught in schools. In Brazil, it carries the name of the Indian mathematician Bhāskarāchārya (Bhaskara II), who lived from 1114 to 1185 AD and described the method in his treatise Bijaganita. The idea itself, however, is far older: Babylonian mathematicians were solving equivalent quadratic problems through geometric constructions as early as 2000 BC, and Al-Khwarizmi — the 9th-century scholar whose name gave us the word algorithm and whose treatise gave us the word algebra — formally described the solution procedure in a form we would still recognize today.

The discriminant Δ (delta) is the key to understanding what the equation reveals geometrically. When Δ > 0, the parabola crosses the x-axis at two distinct points — two real roots. When Δ = 0, it just touches the axis — one repeated root. When Δ < 0, the parabola floats entirely above or below the axis and the roots are complex (imaginary). Beyond school exams, quadratic equations model the arc of a projectile under gravity, find the maximum revenue point of a profit function, solve resonance frequencies in AC electrical circuits, and power the ray-sphere intersection tests used in 3D game engines every single rendered frame.

This solver takes coefficients a, b, and c and instantly returns Δ, x1, and x2 — or flags when the roots are complex. It is equally useful for a student double-checking homework answers and for a developer or engineer who wants to validate a physics formula before translating it into code. The underlying algorithm has not changed since Bhaskara wrote it down nine centuries ago, which is itself a remarkable testament to the durability of good mathematics.

Technical deep dive

Common questions summarized

  • What is this tool for?: It runs fully in your browser: useful to validate, format, or convert data in everyday development.
  • Are my inputs sent to a server?: Processing happens locally with JavaScript. We do not store what you paste into the text areas.
  • Can I use this for real production data?: Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.

Sample payload to try

  • See also the larger "Code Snippets" sample; paste this excerpt to try locally: Example — x² - 5x + 6 = 0 Delta: 1 x1 = 3, x2 = 2

Code Snippets

Code example
x² - 5x + 6 = 0
Delta: 1
x1 = 3, x2 = 2

Example

x² - 5x + 6 = 0
Delta: 1
x1 = 3, x2 = 2

FAQ

What is this tool for?

It runs fully in your browser: useful to validate, format, or convert data in everyday development.

Are my inputs sent to a server?

Processing happens locally with JavaScript. We do not store what you paste into the text areas.

Can I use this for real production data?

Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.