Algebra · Pre-algebra · College algebra

AI Algebra Solver for Equations and Expressions

An AI algebra solver handles supported equations and expressions while showing available working. Enter the full expression or equation so its structure remains clear.

  • Independent answer checks
  • Fractions to college algebra
  • Exact answers, not decimals
  • Free, no sign-up

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.

Combining like terms changes coefficients, while isolating a variable uses inverse operations. Restrictions on denominators must remain in view throughout the calculation.

Algebra · Pre-algebra · College algebra · worked example✓ Verified
3x−4≤113x - 4 \le 11
Find the boundary: add 4 to both sides
3x=153x = 15
Divide both sides by 3
x=5x = 5
Test x = 6: does not satisfy the inequality
14 ≤ 11 is false
x≤5x \le 5Re-checked by a second engine
Algebra · Pre-algebra · College algebra · worked example✓ Verified
Maximize Z=5x+4y subject to 6x+4y≤24,x+2y≤6,x≥0,y≥0\text{Maximize } Z = 5x + 4y \text{ }\allowbreak \text{subject }\allowbreak \text{to } 6x + 4y \le 24, x + 2y \le 6, x \ge 0, y \ge 0
List the constraints
6x+4y≤24,x+2y≤6,x≥0,y≥0\displaystyle 6x + 4y \le 24,\allowbreak \quad x + 2y \le 6,\allowbreak \quad x \ge 0,\allowbreak \quad y \ge 0
Find the corner points
(3,32),(4,0),(0,3),(0,0)\displaystyle (3, \frac{3}{2}),\allowbreak \quad (4, 0),\allowbreak \quad (0, 3),\allowbreak \quad (0, 0)
Evaluate Z at each corner
Z(3,32)=21,Z(4,0)=20,Z(0,3)=12,Z(0,0)=0\displaystyle Z(3, \frac{3}{2}) = 21,\allowbreak \quad Z(4, 0) = 20,\allowbreak \quad Z(0, 3) = 12,\allowbreak \quad Z(0, 0) = 0
Zmax=21Z_{max} = 21
at (3,32)\allowbreak \text{at }(3, \frac{3}{2})
Re-checked by a second engine
Algebra · Pre-algebra · College algebra · worked example✓ Verified
maximize 2x+2y subject to x+y≤4,x≤3,x,y≥0\text{maximize } 2x + 2y \text{ }\allowbreak \text{subject }\allowbreak \text{to } x + y \le 4, x \le 3, x, y \ge 0
List the constraints
x+y≤4,x≤3,x≥0,y≥0\displaystyle x + y \le 4,\allowbreak \quad x \le 3,\allowbreak \quad x \ge 0,\allowbreak \quad y \ge 0
Find the corner points
(3,1),(0,4),(3,0),(0,0)\displaystyle (3, 1),\allowbreak \quad (0, 4),\allowbreak \quad (3, 0),\allowbreak \quad (0, 0)
Evaluate P at each corner
P(3,1)=8,P(0,4)=8,P(3,0)=6,P(0,0)=0\displaystyle P(3, 1) = 8,\allowbreak \quad P(0, 4) = 8,\allowbreak \quad P(3, 0) = 6,\allowbreak \quad P(0, 0) = 0
Pmax=8P_{max} = 8
at (3,1) and (0,4)\allowbreak \text{at }(3, 1)\allowbreak \text{ and }(0, 4)
and every point between\allowbreak \text{and every point between}
Re-checked by a second engine

1 / 3

Worked algebra

Six algebra problems, solved and verified

One example from each corner of the subject. Every line is the solver’s own output; “Solve it live” loads the problem into the box above.

Example 1 · Adding unlike fractions

16+14\frac{1}{6} + \frac{1}{4}

The least common denominator of 6 and 4 is 12, not 24 — a smaller denominator means less reducing at the end.

512\frac{5}{12}
✓ Verified

Independent check

16+14=512\frac{1}{6}+\frac{1}{4} = \frac{5}{12}
  1. Find a common denominator
    16+14=212+312\frac{1}{6} + \frac{1}{4} = \frac{2}{12} + \frac{3}{12}
    The least common denominator of 6 and 4 is 12.
  2. Add the numerators
    212+312=512\frac{2}{12} + \frac{3}{12} = \frac{5}{12}
    With the same denominator, only the numerators combine.
  3. State the answer
    16+14=512\frac{1}{6}+\frac{1}{4} = \frac{5}{12}
    The original calculation equals the simplified result.

Example 2 · Distribute and combine

3(x+2)−2(x−1)3(x+2) - 2(x-1)

The minus sign in front of the second bracket multiplies both terms inside it. That is where this problem is usually lost.

x+8x+8
✓ Verified

Independent check

x=1.7:original 9.7, answer 9.7x = 1.7:\quad \text{original } 9.7,\ \text{answer } 9.7
x=−2.3:original 5.7, answer 5.7x = -2.3:\quad \text{original } 5.7,\ \text{answer } 5.7
  1. Start with the expression
    3(x+2)−(2(x−1))3(x+2)-(2(x-1))
    This is the expression to simplify.
  2. Combine like terms
    x+8x+8
    Add and subtract matching terms and cancel where possible.

Example 3 · Factoring with a leading coefficient

factor 6x2+11x−10\text{factor } 6x^{2} + 11x - 10

When the x² term has a coefficient other than 1, guess-and-check gets slow; the solver shows a systematic route.

(2x+5)⋅(3x−2)(2x+5) \cdot (3x-2)
✓ Verified

Independent check

x=1.7:original 26.04, answer 26.04x = 1.7:\quad \text{original } 26.04,\ \text{answer } 26.04
x=−2.3:original −3.56, answer −3.56x = -2.3:\quad \text{original } -3.56,\ \text{answer } -3.56
  1. Start with the expression
    6(x2)+11x−106(x^{2})+11x-10
    This is the expression to factor.
  2. Factor out common factors
    (2x+5)⋅(3x−2)(2x+5) \cdot (3x-2)
    Pull out what every term shares so the x terms split into factors.

Example 4 · A linear inequality

3x−4≤113x - 4 \le 11

Solved like an equation, except the answer is a range of values.

x≤5x \le 5
✓ Verified

Independent check

x=4:3⋅4−4≤11holdsx = 4:\quad 3\cdot 4-4 \le 11\quad \text{holds}
x=5:3⋅5−4≤11holdsx = 5:\quad 3\cdot 5-4 \le 11\quad \text{holds}
  1. Find the boundary: add 4 to both sides
    3x=153x = 15
    The boundary is where the two sides are equal — solve it like an equation first.
  2. Divide both sides by 3
    x=5x = 5
    Dividing by the coefficient of x leaves it alone on the left.
  3. Test x = 6: does not satisfy the inequality
    14 ≤ 11 is false
    x = 6 makes the inequality false, so the solution is the OTHER side of the boundary.
  4. Write the solution set
    x≤5x \le 5
    Everything on the true side of the boundary satisfies the inequality.

Example 5 · Cancelling a common factor

simplify x2−1x+1\text{simplify } \frac{x^{2}-1}{x+1}

Factor first, then cancel — and keep a note of the value that made the original denominator zero.

x−1x-1
✓ Verified

Restrictions: x ≠ -1

Independent check

x=1.7:original 0.7, answer 0.7x = 1.7:\quad \text{original } 0.7,\ \text{answer } 0.7
x=−2.3:original −3.3, answer −3.3x = -2.3:\quad \text{original } -3.3,\ \text{answer } -3.3

The simplified form equals the original everywhere except x = −1, which is why the restriction is part of the answer.

  1. Start with the expression
    x2−1x+1\frac{x^{2}-1}{x+1}
    This is the expression to simplify.
  2. Combine like terms
    x−1x-1
    Add and subtract matching terms and cancel where possible.

Example 6 · Function composition

f(x)=2x+1,g(x)=x2, find f(g(3))f(x) = 2x + 1, g(x) = x^{2}, \text{ }\allowbreak \text{find } f(g(3))

Work from the inside out: find g(3) first, then feed that number into f.

1919
✓ Verified

Independent check

Direct evaluation of the definitions: f(g(3))=19\text{Direct evaluation of the definitions: } f(g(3)) = 19
  1. Work out g(3)
    g(3)=(3)2=9g(3) = (3)^{2} = 9
    Replace every x in g(x) = x^2 by 3.
  2. Work out f(9)
    f(9)=2(9)+1=19f(9) = 2(9) + 1 = 19
    Replace every x in f(x) = 2x + 1 by 9.

Read the question

Simplify, solve, factor, expand — what each instruction wants

Half of algebra is knowing what the question is asking for. The same expression can need four different answers.

InstructionYou are givenYour answer isExample
SimplifyAn expression (no = sign)An equivalent, shorter expression3(x+2) - 2(x-1) → x + 8
SolveAn equation or inequalityThe value(s) of the variable3x - 4 <= 11 → x <= 5
FactorA polynomialA product of simpler factorsx^2 - 9 → (x - 3)(x + 3)
ExpandA product or powerA sum of terms(x+3)^2 → x^2 + 6x + 9
EvaluateAn expression and a valueA number2x + 1 at x = 3 → 7

If you type an expression without an instruction, the solver simplifies it; with an = sign it solves. To factor or expand, start the line with the word — factor or expand.

Method

How the AI algebra solver gets into any algebra problem

Algebra problems look endlessly different, but most of them give way to the same short routine. It is the routine the solver itself follows, which is why its steps come out in this order.

  1. Clear grouping symbols. Distribute any number or sign standing in front of a bracket. Most sign errors happen here.
  2. Clear fractions if there is an equation. Multiply every term by the least common denominator. (In an expression you cannot do this — you combine over a common denominator instead.)
  3. Collect like terms. Gather the x-terms together and the constants together. Only terms with identical variable parts combine: 3x3x and 3x23x^2 do not.
  4. Isolate the variable with inverse operations. Undo addition with subtraction, multiplication with division — always to both sides.
  5. Check against the original. Substitute the answer into the problem you were given, not into a line you wrote along the way.

Fractions stay fractions

Exact answers are kept exact. A result like 72\frac{7}{2} or 3\sqrt{3} is not turned into 3.5 or 1.732 unless the question asks for a decimal — most algebra teachers want the exact form.

College algebra

Beyond high school: functions, complex numbers, partial fractions

The solver is not limited to the first year of algebra. College algebra and precalculus topics are solved with their own strategies and checked independently:

  • Function composition and inverses — for example inverse of f(x) = 3x - 4, or f(x) = x^2, g(x) = x + 1, f(g(x)).
  • Complex numbers — products and quotients such as (2 + 3i)(1 - i), with i2=−1i^2 = -1 applied step by step.
  • Partial fractions — partial fractions (3x + 5)/((x + 1)(x + 2)) returns the decomposition and checks it by recombining.
  • Exponential and logarithmic equations, radical equations and rational equations, with extraneous roots rejected.

For quadratics, systems and polynomial equations, the equation solver is the better starting point; for trig identities, use the trigonometry solver. When the algebra is one part of a larger question — a perimeter problem that turns into a quadratic, for example — give the whole question to the general AI math solver.

Complex arithmetic and roots, checked independently

These complex-number tasks extend the college-algebra overview above. The steps and answers come from the working solver.

Example 7 · Multiply two complex numbers

(3+4i)(1−2i)(3 + 4i)(1 - 2i)

Expand the product and collect the real and imaginary parts. A separate calculation checks the result.

11−2i11 - 2i
✓ Verified

Independent check

Sizes multiply: ∣11−2i∣2=125 and ∣3+4i∣2⋅∣1−2i∣2=25×5=125\text{Sizes multiply: }|11 - 2i|^2 = 125 \text{ and } |3 + 4i|^2 \cdot |1 - 2i|^2 = 25 \times 5 = 125
Recomputing the original problem in decimals gives 11−2i, which matches.\text{Recomputing the original problem in decimals gives }11 - 2i\text{, which matches.}

These are fixed complex constants with i² = −1. This is arithmetic, not an equation in an unknown complex variable.

  1. Multiply out the brackets
    (3+4i)(1−2i)=3−6i+4i−8i2\left(3 + 4i\right)\left(1 - 2i\right) = 3 - 6i + 4i - 8i^2
    Multiply every term of the first bracket by every term of the second.
  2. Replace i² with −1 and collect
    =3−6i+4i+8=11−2i= 3 - 6i + 4i + 8 = 11 - 2i
    Since i² = −1, the i² term becomes a real number; then collect the real parts and the imaginary parts.

Example 8 · Find all cube roots of 8i

cube roots of 8i\text{cube }\allowbreak \text{roots }\allowbreak \text{of } 8i

A complex number can have several cube roots. Find all three, then raise each one back to the third power.

z=3+iz = \sqrt{3} + i
z=−3+iz = -\sqrt{3} + i
z=−2iz = -2i
✓ Verified

Independent check

z=3+i:(3+i)3=8iz = \sqrt{3} + i:\quad \left(\sqrt{3} + i\right)^{3} = 8i
z=−3+i:(−3+i)3=8iz = -\sqrt{3} + i:\quad \left(-\sqrt{3} + i\right)^{3} = 8i

All three distinct complex roots are included. A principal root alone would not answer this question.

  1. Write the right-hand side in polar form
    8i=8(cos⁡π2+isin⁡π2)8i = 8\left(\cos \frac{\pi}{2} + i\sin \frac{\pi}{2}\right)
    Its modulus is 8 and its argument is π/2.
  2. Take the cube root of the modulus and share out the angle
    z=2(cos⁡θk+isin⁡θk),θk=π2+2kπ3,k=0,1,2\displaystyle z = 2\left(\cos\theta_k + i\sin\theta_k\right),\allowbreak \quad \theta_k = \frac{\frac{\pi}{2} + 2k\pi}{3},\allowbreak \quad k = 0,\allowbreak 1,\allowbreak 2
    Raising to the power 3 multiplies the angle by 3, so each angle that works is (θ + 2kπ)/3: 3 different roots spaced evenly around a circle.
  3. List the roots
    θ0=π6  ⇒,z=3+i,θ1=5π6  ⇒,z=−3+i,θ2=−π2  ⇒,z=−2i\displaystyle \theta_{0} = \frac{\pi}{6} \;\Rightarrow,\allowbreak \quad z = \sqrt{3} + i,\allowbreak \quad \theta_{1} = \frac{5\pi}{6} \;\Rightarrow,\allowbreak \quad z = -\sqrt{3} + i,\allowbreak \quad \theta_{2} = -\frac{\pi}{2} \;\Rightarrow,\allowbreak \quad z = -2i
    Each angle is a standard angle, so each root has an exact a + bi form.

Complex-number checks and supported limits

Checking the product of two complex numbers

Sizes multiply: ∣11−2i∣2=125 and ∣3+4i∣2⋅∣1−2i∣2=25×5=125\text{Sizes multiply: }|11 - 2i|^2 = 125 \text{ and } |3 + 4i|^2 \cdot |1 - 2i|^2 = 25 \times 5 = 125
Recomputing the original problem in decimals gives 11−2i, which matches.\text{Recomputing the original problem in decimals gives }11 - 2i\text{, which matches.}

Checking all three cube roots of 8i

z=3+i:(3+i)3=8iz = \sqrt{3} + i:\quad \left(\sqrt{3} + i\right)^{3} = 8i
z=−3+i:(−3+i)3=8iz = -\sqrt{3} + i:\quad \left(-\sqrt{3} + i\right)^{3} = 8i
z=−2i:(−2i)3=8iz = -2i:\quad \left(-2i\right)^{3} = 8i

These checks concern complex arithmetic and all roots of one supported power equation. Ordinary negative-discriminant quadratics keep their own methods in the quadratic equation calculator.

DECLINED · Complex logarithms

log(1+i) is declined by the exact solver. Base and branch choices matter; no value or Verified badge is offered here.

Equations involving an unknown complex modulus or conjugate are not established here. In particular, the current real-variable reading of a modulus equation is not a complete complex-plane solution. Fractional powers and arbitrary exact angle conversions also have limits.

Sequence rules and supported infinite sums

State the requested task and the indexing convention. A fitted rule, a finite sum and a convergence conclusion are different kinds of answer.

Example 9 · Fit a quadratic sequence model

nth term of 2,5,10,17n\text{th} \text{ }\allowbreak \text{term }\allowbreak \text{of } 2, 5, 10, 17

Assume a quadratic rule and index the first term by n = 1. Check the formula against every given term.

n2+1n^{2} + 1
✓ Verified

Independent check

The formula gives the terms given: a1=2, a2=5, a3=10, a4=17\text{The formula gives the terms given: }a_{1} = 2,\ a_{2} = 5,\ a_{3} = 10,\ a_{4} = 17

The model is quadratic, with n = 1, 2, …. A finite list does not determine a unique unrestricted infinite sequence.

  1. Find the first and second differences
    first: 3,5,7;second: 2,2\displaystyle \allowbreak \text{first: }3,\allowbreak 5,\allowbreak 7;\quad \allowbreak \text{second: }2,\allowbreak 2
    The differences are not constant, but the differences of the differences are, so the nth term has the form An² + Bn + C.
  2. Find A, B and C
    2A=2⇒A=1,3A+B=3⇒B=0,A+B+C=2⇒C=1\displaystyle 2A = 2 \Rightarrow A = 1,\allowbreak \quad 3A + B = 3 \Rightarrow B = 0,\allowbreak \quad A + B + C = 2 \Rightarrow C = 1
    Twice A is the second difference; the first difference and the first term then give B and C.
  3. Write the nth term
    an=n2+1a_n = n^{2} + 1
    Put A, B and C into An² + Bn + C.

Example 10 · Sum a polynomial times a geometric sequence

∑k=1∞k22k\sum_{k=1}^{\infty} \frac{k^{2}}{2^{k}}

The terms k²/2ᵏ combine polynomial growth with geometric decay. The exact remainder below explains why their infinite sum is finite.

66
✓ Verified

Independent check

S200≈6, S400≈6 — settled at 6.S_{200} \approx 6,\ S_{400} \approx 6\text{ — settled}\text{ at }6\text{.}

The index starts at k = 1 and continues through the positive integers. The partial-sum check is evidence; the remainder formula supplies the convergence argument.

  1. Ratio test
    ∣ak+1ak∣=(k+1k)2⋅12→12\displaystyle \left|\frac{a_{k+1}}{a_k}\right| = \left(\frac{k + 1}{k}\right)^{2} \cdot\frac{1}{2} \to \frac{1}{2}
    The limit is below 1, so the series converges.
  2. Use the known sum
    ∑k=1∞k2rk=r(1+r)(1−r)3=6\sum_{k=1}^{\infty} k^2 r^k = \frac{r(1 + r)}{(1 - r)^3} = 6
    Differentiating the geometric series gives these closed forms for |r| < 1.

Example 11 · A verified divergence conclusion

∑n=1∞1n\sum_{n=1}^{\infty} \frac{1}{n}

The harmonic series grows without a finite limit. Here the checked conclusion is divergence, not a finite numerical answer.

The series diverges (no finite sum)\displaystyle \allowbreak \text{The series diverges (no finite sum)}
✓ Verified

Independent check

Integral test: each term 1k≥∫kk+1dxx, so SN≥ln⁡(N+1), which grows without bound.\text{Integral test: each term }\frac{1}{k} \ge \int_k^{k+1} \frac{dx}{x}\text{, so }S_N \ge \ln(N+1)\text{, which grows without bound.}
S100≈5.187378≥4.615121 (the bound at N=100)S_{100} \approx 5.187378 \ge 4.615121\text{ (the bound at }N = 100\text{)}

The index starts at n = 1. The Verified badge applies to the conclusion that no finite sum exists.

  1. Compare with the p-series Σ 1/kᵖ
    p=1≤1p = 1 \le 1
    This is (a multiple of) the harmonic series: its terms shrink to 0, but too slowly — the total grows without limit.
  2. State the conclusion
    ∑n=1∞1n diverges\displaystyle \sum_{n=1}^{\infty} \frac{1}{n}\ \allowbreak \text{diverges}
    The partial sums grow without limit, so there is no finite total.

How these sequence and series conclusions are checked

Checking the quadratic sequence rule

The formula gives the terms given: a1=2, a2=5, a3=10, a4=17\text{The formula gives the terms given: }a_{1} = 2,\ a_{2} = 5,\ a_{3} = 10,\ a_{4} = 17

Checking the polynomial-times-geometric sum

S200≈6, S400≈6 — settled at 6.S_{200} \approx 6,\ S_{400} \approx 6\text{ — settled}\text{ at }6\text{.}

Checking that the harmonic series diverges

Integral test: each term 1k≥∫kk+1dxx, so SN≥ln⁡(N+1), which grows without bound.\text{Integral test: each term }\frac{1}{k} \ge \int_k^{k+1} \frac{dx}{x}\text{, so }S_N \ge \ln(N+1)\text{, which grows without bound.}
S100≈5.187378≥4.615121 (the bound at N=100)S_{100} \approx 5.187378 \ge 4.615121\text{ (the bound at }N = 100\text{)}
S10000≈9.787606≥9.21044 (the bound at N=10000)S_{10000} \approx 9.787606 \ge 9.21044\text{ (the bound at }N = 10000\text{)}

Why the infinite sum has a finite value

An additional exact mathematical explanation, separate from the engine’s sampled check, is the finite-sum identity below. Its remainder tends to zero as N grows.

SN=∑k=1Nk22k=6−N2+4N+62NS_N = \sum_{k=1}^{N}\frac{k^2}{2^k}=6-\frac{N^2+4N+6}{2^N}

For the harmonic series, each block from 2⁽ʲ⁻¹⁾ + 1 through 2ʲ contributes at least 1/2. Infinitely many such blocks cannot have a bounded total; checking a few partial sums alone would not prove that.

These are discrete sequences and sums. Continuous limits are a different task, explained in the limit calculator. A finite list still needs a stated model rather than a claim that only one infinite sequence is possible.

DECLINED · Outside the standard series forms

sum_{k=1}^{infinity} 1/(k^2+1) converges, but its sum is outside the solver’s implemented standard forms. The solver declines it; no value or Verified badge is shown.

Convergence here follows mathematically from comparison with 1/k²; no closed-form sum is attributed to the solver. General alternating-series tests, arbitrary sums, Taylor expansions and two-prior-term recurrences are not promised.

Linear programming: one optimum or a whole edge

For a linear objective with two real variables, feasibility is only the first check. An optimality certificate explains why no feasible move can improve the value.

Example 12 · Certify a fractional-coordinate optimum

Maximize Z=5x+4y subject to 6x+4y≤24,x+2y≤6,x≥0,y≥0\text{Maximize } Z = 5x + 4y \text{ }\allowbreak \text{subject }\allowbreak \text{to } 6x + 4y \le 24, x + 2y \le 6, x \ge 0, y \ge 0

First find a feasible corner. Then use a nonnegative combination of the active constraints to certify the objective bound.

Zmax=21Z_{max} = 21
at (3,32)\allowbreak \text{at }(3, \frac{3}{2})
✓ Verified

Independent check

At (3,32) every constraint holds: 24≤24, 6≤6, 3≥0, 32≥0\text{At }(3, \frac{3}{2})\text{ }\allowbreak \text{every }\allowbreak \text{constraint }\allowbreak \text{holds: }24 \le 24,\allowbreak\ 6 \le 6,\allowbreak\ 3 \ge 0,\allowbreak\ \frac{3}{2} \ge 0
Optimality: the objective coefficients (5,4)=34 (6,4)+12 (1,2), a non-negative mix of the constraints active there, so no feasible move raises Z\text{Optimality: }\allowbreak \text{the }\allowbreak \text{objective }\allowbreak \text{coefficients }(5, 4) = \frac{3}{4}\,(6, 4) + \frac{1}{2}\,(1, 2)\text{, }\allowbreak \text{a }\allowbreak \text{non-negative }\allowbreak \text{mix }\allowbreak \text{of }\allowbreak \text{the }\allowbreak \text{constraints }\allowbreak \text{active }\allowbreak \text{there, }\allowbreak \text{so }\allowbreak \text{no }\allowbreak \text{feasible }\allowbreak \text{move }\allowbreak \text{raises }Z

Both variables are real, not integer-constrained. All four constraints in the input must hold; the unique maximum is at (3, 3/2).

  1. List the constraints
    6x+4y≤24,x+2y≤6,x≥0,y≥0\displaystyle 6x + 4y \le 24,\allowbreak \quad x + 2y \le 6,\allowbreak \quad x \ge 0,\allowbreak \quad y \ge 0
    Each inequality is a half-plane; together they cut out the feasible region.
  2. Find the corner points
    (3,32),(4,0),(0,3),(0,0)\displaystyle (3, \frac{3}{2}),\allowbreak \quad (4, 0),\allowbreak \quad (0, 3),\allowbreak \quad (0, 0)
    Where two boundary lines cross and every constraint still holds.
  3. Evaluate Z at each corner
    Z(3,32)=21,Z(4,0)=20,Z(0,3)=12,Z(0,0)=0\displaystyle Z(3, \frac{3}{2}) = 21,\allowbreak \quad Z(4, 0) = 20,\allowbreak \quad Z(0, 3) = 12,\allowbreak \quad Z(0, 0) = 0
    If a best value exists, it is at one of these corners.
  4. Pick the maximum
    Zmax=21,at (3,32)\displaystyle Z_{max} = 21,\allowbreak \quad \allowbreak \text{at }(3, \frac{3}{2})
    The largest value among the corners.

Example 13 · An entire edge can be optimal

maximize 2x+2y subject to x+y≤4,x≤3,x,y≥0\text{maximize } 2x + 2y \text{ }\allowbreak \text{subject }\allowbreak \text{to } x + y \le 4, x \le 3, x, y \ge 0

Different feasible points can have the same best objective value. The answer must include the whole segment between its endpoints.

Pmax=8P_{max} = 8
at (3,1) and (0,4)\allowbreak \text{at }(3, 1)\allowbreak \text{ and }(0, 4)
and every point between\allowbreak \text{and every point between}
✓ Verified

Independent check

At (3,1) every constraint holds: 4≤4, 3≤3, 3≥0, 1≥0\text{At }(3, 1)\text{ }\allowbreak \text{every }\allowbreak \text{constraint }\allowbreak \text{holds: }4 \le 4,\allowbreak\ 3 \le 3,\allowbreak\ 3 \ge 0,\allowbreak\ 1 \ge 0
Optimality: the objective coefficients (2,2)=2 (1,1)+0 (1,0), a non-negative mix of the constraints active there, so no feasible move raises P\text{Optimality: }\allowbreak \text{the }\allowbreak \text{objective }\allowbreak \text{coefficients }(2, 2) = 2\,(1, 1) + 0\,(1, 0)\text{, }\allowbreak \text{a }\allowbreak \text{non-negative }\allowbreak \text{mix }\allowbreak \text{of }\allowbreak \text{the }\allowbreak \text{constraints }\allowbreak \text{active }\allowbreak \text{there, }\allowbreak \text{so }\allowbreak \text{no }\allowbreak \text{feasible }\allowbreak \text{move }\allowbreak \text{raises }P

For real x and y, the complete optimum set is (x, 4 − x) with 0 ≤ x ≤ 3. Every point on this segment gives the maximum 8.

  1. List the constraints
    x+y≤4,x≤3,x≥0,y≥0\displaystyle x + y \le 4,\allowbreak \quad x \le 3,\allowbreak \quad x \ge 0,\allowbreak \quad y \ge 0
    Each inequality is a half-plane; together they cut out the feasible region.
  2. Find the corner points
    (3,1),(0,4),(3,0),(0,0)\displaystyle (3, 1),\allowbreak \quad (0, 4),\allowbreak \quad (3, 0),\allowbreak \quad (0, 0)
    Where two boundary lines cross and every constraint still holds.
  3. Evaluate P at each corner
    P(3,1)=8,P(0,4)=8,P(3,0)=6,P(0,0)=0\displaystyle P(3, 1) = 8,\allowbreak \quad P(0, 4) = 8,\allowbreak \quad P(3, 0) = 6,\allowbreak \quad P(0, 0) = 0
    If a best value exists, it is at one of these corners.
  4. Pick the maximum
    Pmax=8,at (3,1) and (0,4)\displaystyle P_{max} = 8,\allowbreak \quad \allowbreak \text{at }(3, 1)\allowbreak \text{ and }(0, 4)
    Two corners tie, so every point on the edge between them gives the same best value.

Feasible constraints, optimality checks and LP limits

Certifying the optimum at a fractional corner

At (3,32) every constraint holds: 24≤24, 6≤6, 3≥0, 32≥0\text{At }(3, \frac{3}{2})\text{ }\allowbreak \text{every }\allowbreak \text{constraint }\allowbreak \text{holds: }24 \le 24,\allowbreak\ 6 \le 6,\allowbreak\ 3 \ge 0,\allowbreak\ \frac{3}{2} \ge 0
Optimality: the objective coefficients (5,4)=34 (6,4)+12 (1,2), a non-negative mix of the constraints active there, so no feasible move raises Z\text{Optimality: }\allowbreak \text{the }\allowbreak \text{objective }\allowbreak \text{coefficients }(5, 4) = \frac{3}{4}\,(6, 4) + \frac{1}{2}\,(1, 2)\text{, }\allowbreak \text{a }\allowbreak \text{non-negative }\allowbreak \text{mix }\allowbreak \text{of }\allowbreak \text{the }\allowbreak \text{constraints }\allowbreak \text{active }\allowbreak \text{there, }\allowbreak \text{so }\allowbreak \text{no }\allowbreak \text{feasible }\allowbreak \text{move }\allowbreak \text{raises }Z

Certifying a whole edge of optimal points

At (3,1) every constraint holds: 4≤4, 3≤3, 3≥0, 1≥0\text{At }(3, 1)\text{ }\allowbreak \text{every }\allowbreak \text{constraint }\allowbreak \text{holds: }4 \le 4,\allowbreak\ 3 \le 3,\allowbreak\ 3 \ge 0,\allowbreak\ 1 \ge 0
Optimality: the objective coefficients (2,2)=2 (1,1)+0 (1,0), a non-negative mix of the constraints active there, so no feasible move raises P\text{Optimality: }\allowbreak \text{the }\allowbreak \text{objective }\allowbreak \text{coefficients }(2, 2) = 2\,(1, 1) + 0\,(1, 0)\text{, }\allowbreak \text{a }\allowbreak \text{non-negative }\allowbreak \text{mix }\allowbreak \text{of }\allowbreak \text{the }\allowbreak \text{constraints }\allowbreak \text{active }\allowbreak \text{there, }\allowbreak \text{so }\allowbreak \text{no }\allowbreak \text{feasible }\allowbreak \text{move }\allowbreak \text{raises }P

The math engine checks the selected point in every constraint and writes the objective coefficients as a nonnegative combination of active constraint normals. This is a bound on the whole feasible set, not just a comparison of a few sampled points.

The tied-edge example has infinitely many optimal points: x + y = 4 with 0 ≤ x ≤ 3. Listing only the two endpoints would omit valid answers.

DECLINED · Contradictory constraints

maximize 3x + 4y subject to x + y <= 2, x + y >= 5, x, y >= 0 has contradictory constraints, so this particular feasible set is empty. The current solver declines it instead of reporting an optimum; a cornerless region in general need not be empty.

Coverage is limited to supported numeric linear expressions in x and y. Integer programming, three or more variables, general word-to-model formulation and feasible-region graphs are not established. Some objectives are unbounded; these two worked cases do not imply that every LP has a finite optimum.

FAQ

Frequently asked questions

Is this algebra calculator free to use?

Yes. Typed algebra problems are solved on your device without limits, sign-up or ads in front of the steps. Photos and word problems use an AI reader with a fair daily limit, but the algebra itself is always free.

Does it work for college algebra?

Yes — function composition and inverses, complex numbers, partial fractions, exponential and logarithmic equations, and polynomial factoring are all covered, with steps and verification.

Can the AI algebra solver handle fractions?

Yes. It works with fractions exactly — finding the least common denominator, reducing at the end and keeping answers as fractions rather than decimals. The fraction calculator has a full guide.

Can it factor polynomials?

Start the problem with "factor", for example factor 6x^2 + 11x - 10. It handles common factors, trinomials, difference of squares and leading coefficients greater than one, and checks the result by multiplying back out.

How do I type exponents, square roots and logs?

Use ^ for powers (x^2), sqrt() for roots (sqrt(x+3)) and log() or ln() for logarithms (log_2(x) for base 2). Or open the Math Keyboard (Ctrl+K) to insert the symbols, and Math Reference to look up how any symbol is typed.

Why does the answer say "x ≠ −1"?

That is a restriction: a value the variable can never take because it would make a denominator zero in the original problem. It stays part of the answer even after the factor that caused it has canceled.

Will it show steps or just the answer?

Steps every time — one operation per line with the reason. See step-by-step solutions for how the working is laid out.

Paste tonight’s algebra and check it

Expressions, equations, inequalities or a polynomial to factor — the box at the top of this page takes them all.