Hverdag · verktøy

Likningsløser

Skriv inn koeffisientene for en lineær likning eller andregradslikning. Løseren viser reelle røtter og kontrollerer dem.

Kjøres i nettleseren. Ingen opplasting.

Values are processed locally in this browser.

Result

—

Om verktøyet

Likningsløser sem complicação.

Den lokale løseren støtter likninger ax² + bx + c = 0, også lineære likninger og konstanttilfeller. Den viser bare reelle røtter; komplekse røtter markeres som utenfor verktøyets nåværende virkeområde. Kontrollen viser feilen sammenlignet med beregningens størrelse.

Veiledning

Slik bruker du Likningsløser

The Equation Solver finds the real solutions of a x² + b x + c = 0 from the three coefficients you type. It also covers the simpler cases where a is zero, so you can solve a straight-line equation or spot an equation that has no answer or every number as an answer. Each root comes with a substitution check. Complex roots are not given, and other kinds of equation are not supported.

Slik gjør du

  1. Write your equation as a x² + b x + c = 0, moving every term to the left so the right side is 0. For x² - 3x + 2 = 0, that gives a = 1, b = -3 and c = 2.
  2. Type a, b and c in the three boxes. Use a minus sign for negative numbers and a dot for decimals, and type 0 for a term that is missing. All three boxes need a value.
  3. Press Calculate. The result lists the real roots, or says there is no real root, no solution, or that every real number is a solution.
  4. Read the check line under the roots. It shows how far each root is from making the equation exactly zero, compared with the size of the terms. Copy result copies the text and Clear empties the boxes.

Eksempler

Two clean roots

Du skriver inn
A
1
B
-3
C
2
Du får
Resultat
Roots: x = 2, x = 1
Kontroll
Substitution check (relative error): x = 2: 0; x = 1: 0

The equation factors as (x - 1)(x - 2) = 0. The tool lists 2 before 1, so the roots are not sorted from small to large.

Kjørt med verktøyets egen kode.

A check that is almost zero

Du skriver inn
A
2
B
-7
C
3
Du får
Resultat
Roots: x = 3, x = 0.5
Kontroll
x = 3: -3.568574007723717e-17; x = 0.5: 0

The exact roots are 3 and one half. A computer works with binary decimals, so the check for x = 3 leaves a speck of about 0.00000000000000004, which is rounding noise and not a wrong answer.

Kjørt med verktøyets egen kode.

No real roots

Du skriver inn
A
1
B
0
C
1
Du får
Resultat
No real roots. Complex roots are outside this calculator’s scope.

x² + 1 = 0 would need a number whose square is -1. No real number does that, so the tool stops and does not show the complex answers.

Kjørt med verktøyets egen kode.

A straight-line equation

Du skriver inn
A
0
B
2
C
-6
Du får
Resultat
x = 3
Kontroll
Check (relative error): 0

With a set to 0 the equation is 2x - 6 = 0, so x = 3. If both a and b are 0, the tool says there is no solution when c is not 0, and that every real number is a solution when c is 0.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Check homework answers for quadratic equations from an algebra class.
  • Find where a parabola crosses the x axis by solving a x² + b x + c = 0.
  • Learn whether a quadratic has two, one or no real roots before you draw its graph.
  • Solve a quick straight-line equation by setting a to 0.

Begrensninger

  • Only equations of the form a x² + b x + c = 0 are covered. Cubic, fraction, root, logarithm and trigonometric equations, and pairs of equations, need another tool.
  • Only real roots are shown. When b² - 4ac is below zero, the tool says there are no real roots and does not give the complex pair.
  • Answers are decimals worked out by a computer. A root that should be 0.2 can print as 0.19999999999999998, and the check can show a tiny leftover like 1e-17 instead of a clean 0.
  • Extremely large or tiny coefficients can be refused with a message about range or precision. Divide all three by the same number and try again.

Tips

  • Move every term to one side first. If you start with x² = 4x - 3, rewrite it as x² - 4x + 3 = 0 before you type anything.
  • If your equation has a fraction such as x²/2, multiply every term by 2 to clear it, or type the decimal 0.5 for that coefficient.
  • Put each root back into your original equation by hand at least once. The check line helps, but doing it yourself builds trust in the answer.

Vanlige spørsmål

Sobre Likningsløser.

How do I solve a quadratic equation with this tool?

Rewrite it with 0 on the right, read off the numbers in front of x², x and the lone number, and type them as a, b and c. Press Calculate and the roots appear with their check.

What does the check number mean?

It is a relative error. The tool puts the root back into a x² + b x + c and compares what is left with the size of the three terms. Zero, or a very tiny number such as 1e-17, means the root fits to computer precision.

Why does the tool say there are no real roots?

The part under the square root, b² - 4ac, is negative. A negative number has no real square root, so the parabola never touches the x axis. The complex roots exist but are outside this tool.

Why are the two roots not in order?

They are shown in the order the tool computes them, not sorted. The same pair, such as 2 and 1, can appear with the larger one first. Read both values, and do not rely on their position.

What happens if a is 0?

The equation is no longer quadratic but a straight line, b x + c = 0, and you get one root. If b is 0 too, there is either no solution or every real number is one, depending on c.

Does it find complex or imaginary roots?

No. It says that none exist among the real numbers and stops there. If you need the complex pair, use the quadratic formula by hand or a tool built for complex numbers.

Is anything I type saved or sent?

No. The coefficients are used for the sum inside your browser and are not uploaded, so you can try any numbers freely.

Hvordan bruker du Likningsløser?

Skriv inn koeffisientene for en lineær likning eller andregradslikning. Løseren viser reelle røtter og kontrollerer dem.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.