HexMathv1.0.4

Algebra calculator with steps

This algebra calculator simplifies, expands and factors expressions and solves linear and quadratic equations in one variable. Type the problem or take a photo of it. HexMath returns the final answer first, then every step with the rule it used, so you can follow the working line by line and ask about any step.

Loading math input...

What this page covers

  • Simplifying and expanding expressions with brackets and powers.
  • Factoring polynomials, including quadratics with a leading coefficient other than 1.
  • Solving linear and quadratic equations in one variable, and simplifying algebraic fractions.
  • Not covered here: inequalities (see the inequality calculator) and several equations at once (see the system of equations calculator).

How to enter the problem

  • Type it as written, with a word such as Simplify, Factor or Solve in front. Powers and fractions render as you type.
  • Scan it. Fit the one problem in the frame.
  • Choose a photo. Several problems in one photo are solved as a list.
  • Then tap Solve.

Worked examples

Example 1: Simplify (x + 3)² - (x - 1)(x + 1).

Problem

Simplify (x+3)2−(x−1)(x+1)\displaystyle (x + 3)^2 - (x - 1)(x + 1).

Answer

Verified

The answer is

6x+106x + 10

Explanation

  1. Expand the square
    (x+3)2=x2+6x+9(x + 3)^2 = x^2 + 6x + 9. The middle term is 2⋅3⋅x2 \cdot 3 \cdot x, not 3x3x.
  2. Expand the product
    (x−1)(x+1)(x - 1)(x + 1) is a difference of squares: x2−1x^2 - 1.
  3. Subtract with brackets
    x2+6x+9−(x2−1)=x2+6x+9−x2+1x^2 + 6x + 9 - (x^2 - 1) = x^2 + 6x + 9 - x^2 + 1. The minus sign changes both terms inside the bracket.
  4. Combine like terms
    x2−x2=0x^2 - x^2 = 0, so what is left is 6x+106x + 10.
  5. Check with a number
    At x=1x = 1: (4)2−0⋅2=16(4)^2 - 0 \cdot 2 = 16, and 6⋅1+10=166 \cdot 1 + 10 = 16.

Example 2: Solve x² - 5x + 6 = 0.

Problem

Solve x2−5x+6=0\displaystyle x^2 - 5x + 6 = 0.

Answer

Verified

The answer is

x=2,x=3x = 2, x = 3

Explanation

  1. Factor the left side
    Two numbers that multiply to 66 and add to −5-5 are −2-2 and −3-3
    (x−2)(x−3)=0(x - 2)(x - 3) = 0
  2. Set each factor to zero
    x−2=0x - 2 = 0 or x−3=0x - 3 = 0.
  3. Solve each
    x=2x = 2 or x=3x = 3.

Example 3: Simplify (x² - 16)/(x² + 2x - 8).

Problem

Simplify x2−16x2+2x−8\displaystyle \dfrac{x^2 - 16}{x^2 + 2x - 8}.

Answer

Verified

The answer is

x−4x−2\frac{x - 4}{x - 2}

Explanation

  1. Factor the numerator
    x2−16=(x−4)(x+4)x^2 - 16 = (x - 4)(x + 4), a difference of squares.
  2. Factor the denominator
    Two numbers that multiply to −8-8 and add to 22 are 44 and −2-2, so x2+2x−8=(x+4)(x−2)x^2 + 2x - 8 = (x + 4)(x - 2).
  3. Note the excluded values
    The original is undefined at x=−4x = -4 and x=2x = 2.
  4. Cancel the common factor
    Divide out (x+4)(x + 4), which leaves x−4x−2\frac{x - 4}{x - 2} for x≠−4x \neq -4.

Common mistakes

  • Squaring term by term. (x+3)2(x + 3)^2 is x2+6x+9x^2 + 6x + 9, not x2+9x^2 + 9.
  • Losing the minus sign in front of a bracket: −(x2−1)=−x2+1-(x^2 - 1) = -x^2 + 1.
  • Cancelling terms instead of factors. In x2−16x2+2x−8\frac{x^2 - 16}{x^2 + 2x - 8} the x2x^2 cannot be cancelled; factor first, then cancel a whole common factor.
  • Dividing both sides of x2=5xx^2 = 5x by xx, which loses the solution x=0x = 0.

Checks, assumptions and limits

  • Substitute a number. At x=2x = 2, (2+3)2−(1)(3)=22(2 + 3)^2 - (1)(3) = 22 and 6⋅2+10=226 \cdot 2 + 10 = 22.
  • Expand a factored answer to check it: (2x+1)(x+3)=2x2+7x+3(2x + 1)(x + 3) = 2x^2 + 7x + 3.
  • Cancelling a factor changes the domain: x−4x−2\frac{x - 4}{x - 2} equals the original fraction only for x≠−4x \neq -4 and x≠2x \neq 2.
  • HexMath can make mistakes. Double check important steps.

Frequently asked questions

Simplifying, expanding and factoring expressions, and solving equations in one variable. A word such as Simplify, Factor or Solve in front makes clear what you want done.

The solution comes as numbered steps, each with a short title, and ends with a Final Answer.

Ask a follow-up question in the same thread about that step. A typed follow-up needs sign-in.

Those have their own pages. Use the inequality calculator for inequalities and the system of equations calculator for several equations at once.

Ready to solve your next math problem?

Create a free account for 3 math questions a day in your browser. No card.

Get HexMath on your phone

The same solver and camera scan on iPhone and Android.

Last updated: · HexMath