Equations · Systems · Differential equations

AI Equation Solver: linear, quadratic, systems and more

Whatever sits on either side of the equals sign, the goal is the same: find every value that makes it true, and nothing else. This AI equation solver finds the roots step by step, then substitutes each one back into your original equation — a root that fails is never shown as an answer.

  • ✓ Roots substituted back
  • Pick your method
  • Exact roots like 2 + √5
  • Systems & simple ODEs

What math problem do you want to solve?

Ctrl+V pastes a screenshot · Shift+Enter: new line (one equation per line)

Try

Typed problems our engine solves stay in your browser. Photos, screenshots, PDFs and AI-helped problems are processed by our AI service — privacy.

Equations · Systems · Differential equations · worked example✓ Verified
2x−y=7;x+3y=72x - y = 7;\quad x + 3y = 7
Label the equations
(1)2x−y=7(2)x+3y=7(1) 2x - y = 7 (2) x + 3y = 7
Multiply equation (2) by 2
2x+6y=142x + 6y = 14
Subtract to eliminate x
2x−y=7−(2x+6y=14)2x - y = 7 - (2x + 6y = 14)
x=4,y=1\displaystyle x = 4,\allowbreak y = 1Re-checked by a second engine
Equations · Systems · Differential equations · worked example✓ Verified
dydx+y=ex\frac{dy}{dx} + y = e^{x}
Rearrange the equation
dydx+y=ex\frac{dy}{dx} + y = e^{x}
Find the integrating factor
μ=e∫1 dx=ex\mu = e^{\int 1 \, dx} = e^{x}
Multiply through by μ
ddx(μ y)=e2x\frac{d}{dx}(\mu\,y) = e^{2x}
y=ex2+Cexy = \frac{e^{x}}{2}+\frac{C}{e^{x}}Re-checked by a second engine
Equations · Systems · Differential equations · worked example✓ Verified
dydx=y,y(0)=0\displaystyle \frac{dy}{dx} = y,\allowbreak y(0) = 0
Write in standard form
dydx−y=0\frac{dy}{dx} - y = 0
Find the integrating factor
μ=e∫−1 dx=1ex\mu = e^{\int -1 \, dx} = \frac{1}{e^{x}}
Multiply through by μ
ddx(μ y)=0\frac{d}{dx}(\mu\,y) = 0
y=0y = 0Re-checked by a second engine

1 / 3

Worked equations

Five equations, five methods

Each solution below was produced and verified by the solver. Compare how the method changes with the type.

Example 1 · Variable on both sides

7x−3=2x+127x - 3 = 2x + 12

Gather the x-terms on one side first; it does not matter which, as long as you do the same to both sides.

x=3x = 3
✓ Verified

Independent check

x=3:7⋅3−3=2⋅3+12x = 3:\quad 7\cdot 3-3 = 2\cdot 3+12
  1. Subtract 2x from both sides
    5x−3=125x - 3 = 12
    Whatever you do to one side, do to the other to keep the equation balanced.
  2. Add 3 to both sides
    5x=155x = 15
    Isolate the variable term by moving the constant across.
  3. Divide both sides by 5
    x=3x = 3
    Dividing by the coefficient of x leaves it alone on the left.

Example 2 · Quadratic that factors

x2+2x−15=0x^{2} + 2x - 15 = 0

Look for two numbers that multiply to −15 and add to 2.

x=3,x=−5\displaystyle x = 3,\allowbreak x = -5
✓ Verified

Independent check

x=3:32+2⋅3−15=0x = 3:\quad 3^{2}+2\cdot 3-15 = 0
x=−5:(−5)2+2⋅(−5)−15=0x = -5:\quad \left(-5\right)^{2}+2\cdot \left(-5\right)-15 = 0
  1. Identify a, b and c
    a=1,b=2,c=−15\displaystyle a = 1,\allowbreak b = 2,\allowbreak c = -15
    The coefficients decide which method works best.
  2. Factor the quadratic
    (x−3)(x+5)=0(x - 3)(x + 5) = 0
    The discriminant is a perfect square, so the quadratic splits into two linear factors.
  3. Set each factor to zero
    x=3,x=−5\displaystyle x = 3,\allowbreak x = -5
    A product is zero exactly when one of its factors is zero.

Example 3 · Quadratic with irrational roots

x2−4x−1=0x^{2} - 4x - 1 = 0

No integer pair works here, so the roots involve a square root. The solver keeps them exact.

x=2+5,x=2−5\displaystyle x = 2 + \sqrt{5},\allowbreak x = 2 - \sqrt{5}
✓ Verified

Independent check

x=2+5:(2+5)2−4⋅(2+5)−1=0x = 2+\sqrt{5}:\quad \left(2+\sqrt{5}\right)^{2}-4\cdot \left(2+\sqrt{5}\right)-1 = 0
x=2−5:(2−5)2−4⋅(2−5)−1=0x = 2-\sqrt{5}:\quad \left(2-\sqrt{5}\right)^{2}-4\cdot \left(2-\sqrt{5}\right)-1 = 0

Exact roots like 2+52 + \sqrt{5} are what most teachers expect; as decimals they would be about 4.236 and −0.236.

  1. Identify a, b and c
    a=1,b=−4,c=−1\displaystyle a = 1,\allowbreak b = -4,\allowbreak c = -1
    The coefficients decide which method works best.
  2. Apply the quadratic formula
    x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}
    The formula gives the exact values for any quadratic.
  3. Calculate the discriminant
    D=−42−4(1)(−1)=20D = -4^{2} - 4(1)(-1) = 20
    The discriminant sits under the square root.
  4. Substitute and simplify
    x=4±202=2±5x = \frac{4 \pm \sqrt{20}}{2} = 2 \pm \sqrt{5}
    Simplify the square root (pull out square factors). As decimals: x ≈ 4.236067977, -0.2360679775.

Example 4 · A 2×2 system

2x−y=7;x+3y=72x - y = 7;\quad x + 3y = 7

Two lines, one crossing point. The solution is checked in both equations, not just one.

x=4,y=1\displaystyle x = 4,\allowbreak y = 1
✓ Verified

Independent check

2⋅4−1=72\cdot 4-1 = 7
4+3⋅1=74+3\cdot 1 = 7
  1. Label the equations
    (1)2x−y=7(2)x+3y=7(1) 2x - y = 7 (2) x + 3y = 7
    Work with the two equations as a labeled pair.
  2. Multiply equation (2) by 2
    2x+6y=142x + 6y = 14
    Now both equations have the same x coefficient.
  3. Subtract to eliminate x
    2x−y=7−(2x+6y=14)2x - y = 7 - (2x + 6y = 14)
    The x terms cancel, leaving one equation in y alone.
  4. Solve for y
    −7y=−7→y=1-7y = -7 → y = 1
    Divide by the coefficient, just like a one-variable equation.
  5. Substitute y = 1 into equation (1)
    2x−(1)=72x - (1) = 7
    With one variable known, the other follows from either original equation.
  6. Solve for x
    x=4x = 4
    Simplify to get the final value.

Example 5 · A first-order linear differential equation

dydx+y=ex\frac{dy}{dx} + y = e^{x}

Multiply by the integrating factor e^x, integrate, and keep the arbitrary constant. This example is valid for every real x. Review the supporting integration with the integral calculator.

y=ex2+Cexy = \frac{e^{x}}{2}+\frac{C}{e^{x}}
✓ Verified

Independent check

ddx(ex2+Cex)=ex2−Cex\frac{d}{dx}\left(\frac{e^{x}}{2}+\frac{C}{e^{x}}\right) = \frac{e^{x}}{2}-\frac{C}{e^{x}}
Substituting into the equation: ex2−Cex=ex2−Cex — both sides agree.\text{Substituting into the equation: } \frac{e^{x}}{2}-\frac{C}{e^{x}} = \frac{e^{x}}{2}-\frac{C}{e^{x}}\text{ — both sides agree.}

The complete real family is y = eˣ/2 + C e⁻ˣ, with x and C real. No singular denominator or additional equilibrium branch is omitted in this linear example.

  1. Rearrange the equation
    dydx+y=ex\frac{dy}{dx} + y = e^{x}
    Move everything except the derivative to the right side.
  2. Find the integrating factor
    μ=e∫1 dx=ex\mu = e^{\int 1 \, dx} = e^{x}
    Multiplying by μ turns the left side into the derivative of a product.
  3. Multiply through by μ
    ddx(μ y)=e2x\frac{d}{dx}(\mu\,y) = e^{2x}
    The left side is exactly the derivative of μ·y.
  4. Integrate both sides
    μ y=e2x2+C\mu\,y = \frac{e^{2x}}{2} + C
    Integrate, keeping the constant on the right.
  5. Solve for y
    y=ex2+Cexy = \frac{e^{x}}{2}+\frac{C}{e^{x}}
    Divide by μ = e^x.

Why checking matters

Extraneous roots: when correct algebra gives a wrong answer

Some legitimate moves can add solutions that were never there. Squaring both sides of a radical equation, multiplying through by an expression containing x, or combining logarithms can all create extraneous roots — values that satisfy a later line but not the original equation.

Take log⁡(x)+log⁡(x−3)=1\log(x) + \log(x - 3) = 1. Combining gives x(x−3)=10x(x - 3) = 10, so x=5x = 5 or x=−2x = -2. The algebra is flawless, yet x=−2x = -2 would put a negative number inside a logarithm. Only x=5x = 5 is a solution.

This is the main reason the solver substitutes every candidate back into the equation you typed, not the last line of working. A candidate that fails is dropped, and the steps say why.

Check against the original

If you are checking by hand, always substitute into the original equation. Checking against your own later line only confirms the arithmetic after the mistake, not before it.

Choosing a method

Quadratic methods compared

All three give the same roots. Which one is fastest depends on the numbers; which one you must show depends on your teacher. Pick it from the Method menu.

MethodFastest whenWatch out for
FactoringThe roots are whole numbers or simple fractionsIt silently fails if the quadratic does not factor over the integers
Completing the squareThe x-coefficient is even, or you need vertex formHalving and squaring the coefficient — and adding it to both sides
Quadratic formulaAlways works, including irrational and complex rootsSign of b, and dividing the whole numerator by 2a

Systems have a similar choice: elimination suits equations already lined up with matching coefficients; substitution suits one where a variable is already alone. The systems calculator has a full guide to both.

Typing equations

How to enter equations in the AI equation solver

  • Use ^ for powers: x^2 + 2x - 15 = 0.
  • Separate the equations of a system with a semicolon or a new line (Shift+Enter): 2x - y = 7; x + 3y = 7.
  • Bracket whole numerators and denominators: (x+1)/(x-2) = 3, not x+1/x-2 = 3.
  • For a differential equation, write the derivative as dy/dx.
  • Add a condition after a comma when only some roots make sense: x^2 = 49, x > 0.

If the solver is unsure what you meant — 1/2x is the usual culprit — it shows both readings and waits for you to choose. The guide on how to use AI to solve math problems covers input in more detail, and you can always photograph the equation instead. Still working from the wording of a problem rather than an equation? The AI math solver proposes the equation for you to confirm before it solves anything.

An initial condition selects one solution

An initial condition selects a member of a solution family. The equilibrium below has a genuine derivative check and an explicit initial-value check.

Example 6 · The zero initial condition selects the equilibrium

dydx=y,y(0)=0\displaystyle \frac{dy}{dx} = y,\allowbreak y(0) = 0

A first-order equation has a family of solutions until an initial condition selects one. Here y(0) = 0 selects the equilibrium.

y=0y = 0
✓ Verified

Independent check

ddx(0)=0\frac{d}{dx}\left(0\right) = 0
Substituting into the equation: 0=0 — both sides agree.\text{Substituting into the equation: } 0 = 0\text{ — both sides agree.}

For all real x, the unique solution of this initial-value problem is y = 0. This does not establish coverage of arbitrary ODE families.

  1. Write in standard form
    dydx−y=0\frac{dy}{dx} - y = 0
    The equation has the form dy/dx + P(x)·y = Q(x), with P = -1 and Q = 0.
  2. Find the integrating factor
    μ=e∫−1 dx=1ex\mu = e^{\int -1 \, dx} = \frac{1}{e^{x}}
    Multiplying by μ turns the left side into the derivative of a product.
  3. Multiply through by μ
    ddx(μ y)=0\frac{d}{dx}(\mu\,y) = 0
    The left side is exactly the derivative of μ·y.
  4. Integrate both sides
    μ y=0+C\mu\,y = 0 + C
    Integrate, keeping the constant on the right.
  5. Solve for y
    y=ex⋅Cy = e^{x} \cdot C
    Divide by μ = e^(-x).
  6. Use the initial condition
    C=0C = 0
    Put y(0) = 0 into the general solution and solve for C.
  7. State the answer
    y=0y = 0
    The initial condition fixes the constant, giving one particular solution.

First-order ODE checks, domains and current limits

Checking a first-order linear differential equation

ddx(ex2+Cex)=ex2−Cex\frac{d}{dx}\left(\frac{e^{x}}{2}+\frac{C}{e^{x}}\right) = \frac{e^{x}}{2}-\frac{C}{e^{x}}
Substituting into the equation: ex2−Cex=ex2−Cex — both sides agree.\text{Substituting into the equation: } \frac{e^{x}}{2}-\frac{C}{e^{x}} = \frac{e^{x}}{2}-\frac{C}{e^{x}}\text{ — both sides agree.}

Checking how a zero initial condition selects the equilibrium

ddx(0)=0\frac{d}{dx}\left(0\right) = 0
Substituting into the equation: 0=0 — both sides agree.\text{Substituting into the equation: } 0 = 0\text{ — both sides agree.}
Initial condition: y(0)=0=0\text{Initial condition: } y(0) = 0 = 0

For the linear example, y = eˣ/2 + C e⁻ˣ is valid for every real x and real constant C. Differentiating it and adding y recovers eˣ. The derivative calculator explains the supporting operation.

The initial-value example selects C = 0 from y = C eˣ, giving y = 0 for all real x. The math engine checks a displayed candidate, but checking a family is not a guarantee that every possible branch has been found.

DECLINED · Second-order input

d^2y/dx^2 = x is declined. The worked examples on this page demonstrate selected first-order cases; they do not establish second-order support.

Known limits remain: one Bernoulli path omits a zero equilibrium, logarithmic solutions on negative-x intervals are incomplete, and an older directly integrated polynomial path does not expose verification lines. These issues are not fixed by the examples here; the original polynomial quick example remains outside this new evidence claim.

Higher-order equations, differential systems, general boundary-value problems and non-elementary solution forms are not promised. No unsupported case or handwritten reference family earns a badge in this section.

FAQ

Frequently asked questions

What kinds of equations can the AI equation solver handle?

Linear, quadratic, rational, logarithmic, exponential, radical and trigonometric equations in one variable, 2×2 systems, and simple first-order differential equations such as separable ones. Each solution comes with steps and a check.

Can it solve differential equations?

Selected first-order forms work; the two worked cases here include real derivative-and-substitution checks. Higher-order inputs are declined, and known Bernoulli branch, negative-x domain and legacy check-display gaps remain. The examples do not establish higher-order or AI-fallback support.

How does it verify the answer?

Each root is substituted back into the original equation and both sides are compared exactly. For a system, the values must satisfy every equation. Only answers that pass get ✓ Verified.

Can I see the quadratic formula method instead of factoring?

Yes. When a quadratic is solved, a Method menu appears next to the input: choose factoring, completing the square or the quadratic formula and the steps are rewritten in that method.

What happens if an equation has no solution?

You are told so, with the reason — for example a linear equation that reduces to 0 = 5, or a quadratic whose discriminant is negative (no real roots). If every value works, it says that too.

Can I solve equations from a photo?

Yes. Use the camera or paste a screenshot; the solver shows what it read so you can fix a misread exponent before solving. See the photo math solver.

Got an equation that will not balance?

Type it into the box at the top. You will see every root, every step, and proof that each root works.