Math calculators

Algebra Calculator

Updated Sep 4, 2026 By Jehan Wadia
Rate Formulas
javascript function liveEval(){ var out=$('algSliderOut'); if(!$('algSlidersOn').checked){out.textContent='';return;} var host=$('algSliders'),asg={},labels=[]; Array.prototype.forEach.call(host.querySelectorAll('input[type=range]'),function(r){ var v=r.getAttribute('data-v'),val=parseFloat(r.value); asg[v]=val;labels.push(v+' = '+trimNum(val,2)); }); if(!labels.length){out.textContent='';return;} try{ var p=parseInput($('algInput').value),rel=p.rels[0]; var vs=currentVars(),missing=vs.filter(function(v){return asg[v]===undefined;}); if(missing.length){out.textContent='Live value needs a slider for: '+missing.join(', ')+'.';return;} var lv=ratEvalNum(rel.lhs,asg); if(rel.op){ var rv=ratEvalNum(rel.rhs,asg); if(!isFinite(lv)||!isFinite(rv)){ out.textContent='At '+labels.join(', ')+': left = '+(isFinite(lv)?trimNum(lv,6):'undefined')+', right = '+(isFinite(rv)?trimNum(rv,6):'undefined')+' → undefined (division by zero).'; return; } var truth; if(rel.op==='='){ var absDiff=Math.abs(lv-rv),scale=Math.max(Math.abs(lv),Math.abs(rv),1); truth=absDiff/scale<1e-9; }else{ truth=rel.op==='<'?lv'?lv>rv:lv>=rv; } out.textContent='At '+labels.join(', ')+': left = '+trimNum(lv,6)+', right = '+trimNum(rv,6)+' → statement is '+(truth?'TRUE':'FALSE')+'.'; }else{ out.textContent='At '+labels.join(', ')+': value = '+(isFinite(lv)?trimNum(lv,6):'undefined (division by zero)')+'.'; } }catch(e){out.textContent='Live value unavailable until the expression is valid.';} } $('algSlidersOn').addEventListener('change',function(){buildSliders(currentVars());}); $('algSolveVar').addEventListener('change',function(){ STATE.solveVar=this.value||null; if(STATE.mode==='solvefor')calculate(); }); $('algEvalVars').addEventListener('change',function(e){ if(e.target&&e.target.tagName==='INPUT'&&STATE.mode==='evaluate')calculate(); }); $('algEvalVars').addEventListener('keydown',function(e){ if(e.key==='Enter'&&e.target.tagName==='INPUT'){e.preventDefault();calculate();} }); $('algTangentX').addEventListener('change',function(){if(STATE.mode==='tangent')calculate();}); $('algRedraw').addEventListener('click',function(){ if(LAST&&LAST.plot){renderChart(LAST.plot);renderMathAll();showSub('graph');} else calculate(); }); ['algXmin','algXmax','algYmin','algYmax'].forEach(function(id){ $(id).addEventListener('keydown',function(e){if(e.key==='Enter'){e.preventDefault();$('algRedraw').click();}}); }); /* ========================= UI: topic navigator ========================= */ var TOPICS=[ {n:'Equations',c:[ {n:'Linear',c:[ {n:'One-Step',e:'x + 3 = 5',m:'solve'}, {n:'Two-Step',e:'3x - 7 = 11',m:'solve'}, {n:'Multi-Step',e:'4x + 2 = 2(x + 6)',m:'solve'}]}, {n:'Quadratic',c:[ {n:'By Factoring',e:'x^2 - 5x + 6 = 0',m:'solve'}, {n:'Completing the Square',e:'x^2 + 6x + 4 = 0',m:'solve'}, {n:'Quadratic Formula',e:'2x^2 + 3x - 2 = 0',m:'solve'}]}, {n:'Rational',e:'1/x + 1/(x + 1) = 1',m:'solve'}, {n:'Polynomial',e:'x^3 - 6x^2 + 11x - 6 = 0',m:'solve'}, {n:'Radical (numeric)',e:'sqrt(16) + x = 10',m:'solve'}, {n:'Absolute Value',e:'|2x - 3| = 7',m:'solve'}, {n:'Roots / Zeroes',e:'x^3 - 8',m:'roots'}]}, {n:'Inequalities',c:[ {n:'Linear',e:'2x + 3 > 7',m:'solve'}, {n:'Quadratic',e:'x^2 - 4 <= 0',m:'solve'}, {n:'Absolute Value',e:'|x + 1| <= 4',m:'solve'}, {n:'Rational',e:'(x - 1)/(x + 2) > 0',m:'solve'}, {n:'Compound (via factoring)',e:'x^2 - x - 6 >= 0',m:'solve'}]}, {n:'Systems of Equations',c:[ {n:'Substitution',e:'y = 2x + 1, x + y = 7',m:'solve'}, {n:'Elimination',e:'x + y = 10, x - y = 2',m:'solve'}, {n:'Cramer\u2019s Rule',e:'2x + 3y = 12, x - y = 1',m:'solve'}, {n:'Gaussian Elimination',e:'x + y + z = 6, x - y = 0, y + z = 5',m:'solve'}]}, {n:'Basic Operations',c:[ {n:'Simplify',e:'(2x^2 + 4x)/(2x)',m:'simplify'}, {n:'Factor \u2014 GCF',e:'6x^3 + 9x^2',m:'factor'}, {n:'Factor \u2014 Trinomial',e:'6x^2 + 11x - 35',m:'factor'}, {n:'Factor \u2014 Grouping',e:'x^3 + 2x^2 + 3x + 6',m:'factor'}, {n:'Factor \u2014 Difference of Squares',e:'x^2 - 9',m:'factor'}, {n:'Factor \u2014 Sum/Difference of Cubes',e:'x^3 - 8',m:'factor'}, {n:'Expand \u2014 FOIL',e:'(x + 3)(x - 4)',m:'expand'}, {n:'Expand \u2014 Distributive',e:'3(2x - 5) + 4x',m:'expand'}, {n:'Expand \u2014 Binomial',e:'(x + 2)^3',m:'expand'}]}, {n:'Polynomials',c:[ {n:'Add / Subtract',e:'(x^2 + 3x - 1) - (2x^2 - x + 4)',m:'simplify'}, {n:'Multiply',e:'(2x - 1)(x^2 + x - 3)',m:'expand'}, {n:'Long Division',e:'(x^3 - 1)/(x - 1)',m:'divide'}, {n:'Synthetic Division',e:'(2x^3 - 3x^2 + 4)/(x - 2)',m:'synthetic'}, {n:'Degree & Leading Coefficient',e:'5x^4 - 2x^2 + 7',m:'expand'}]}, {n:'Rational Expressions',c:[ {n:'Add / Subtract',e:'1/x + 1/(x + 2)',m:'simplify'}, {n:'Multiply / Divide',e:'(x^2 - 1)/(x + 3) * (x + 3)/(x - 1)',m:'simplify'}, {n:'Partial Fractions',e:'1/(x^2 - 1)',m:'partialfrac'}, {n:'Clear Fractions / Rationalize',e:'(x/2 + 1/3)/(x/4 - 1)',m:'rationalize'}]}, {n:'Functions & Graphs',c:[ {n:'Intercepts',e:'y = 2x - 6',m:'intercepts'}, {n:'Slope',e:'3x + 2y = 12',m:'slope'}, {n:'Vertex',e:'x^2 - 4x + 1',m:'vertex'}, {n:'Range',e:'x^2 + 2x + 5',m:'range'}, {n:'Inverse',e:'y = (x - 4)/3',m:'inverse'}, {n:'Tangent Line',e:'x^3 - 2x',m:'tangent'}, {n:'Graph',e:'y = x^2 - 5x + 6',m:'graph'}]}, {n:'Sequences',c:[ {n:'Arithmetic n-th term',e:'a + (n - 1)*d @ a=3, d=5, n=10',m:'evaluate'}, {n:'Geometric n-th term',e:'a*r^(n - 1) @ a=2, r=3, n=5',m:'evaluate'}, {n:'Arithmetic sum',e:'n/2*(2a + (n - 1)*d) @ a=3, d=5, n=10',m:'evaluate'}]}, {n:'Algebraic Properties',c:[ {n:'Exponent Rules',e:'(x^3 * x^4)/x^2',m:'simplify'}, {n:'Solve for a Variable',e:'A = P(1 + r)',m:'solvefor'}, {n:'Absolute Value',e:'|3x| = 12',m:'solve'}, {n:'Complex Roots',e:'x^2 + 2x + 5 = 0',m:'solve'}]} ]; var tiSeq=0; function buildTree(nodes,level){ return nodes.map(function(nd){ tiSeq++; var id='algTi'+tiSeq; if(nd.c&&nd.c.length){ return '
  • '+ '
  • '; } return '
  • '; }).join(''); } $('algTopicTree').innerHTML=buildTree(TOPICS,1); function treeItems(){ return qsa('#algTopicTree [role="treeitem"]').filter(function(el){ var p=el.parentNode; while(p&&p.id!=='algTopicTree'){if(p.tagName==='UL'&&p.hidden)return false;p=p.parentNode;} return true; }); } function treeFocus(el){ qsa('#algTopicTree [role="treeitem"]').forEach(function(x){x.setAttribute('tabindex','-1');}); el.setAttribute('tabindex','0');el.focus(); } qsa('#algTopicTree [role="treeitem"]').forEach(function(el){ el.addEventListener('click',function(){ var grp=this.parentNode.querySelector('ul[role="group"]'); if(grp){ var open=grp.hidden; grp.hidden=!open; this.setAttribute('aria-expanded',open?'true':'false'); this.querySelector('i').className='fas me-1 '+(open?'fa-caret-down':'fa-caret-right'); return; } $('algInput').value=this.getAttribute('data-ex'); setMode(this.getAttribute('data-m')); }); el.addEventListener('keydown',function(e){ var items=treeItems(),i=items.indexOf(this),grp=this.parentNode.querySelector('ul[role="group"]'); if(e.key==='ArrowDown'){e.preventDefault();if(items[i+1])treeFocus(items[i+1]);} else if(e.key==='ArrowUp'){e.preventDefault();if(items[i-1])treeFocus(items[i-1]);} else if(e.key==='ArrowRight'){if(grp&&grp.hidden){e.preventDefault();this.click();}} else if(e.key==='ArrowLeft'){if(grp&&!grp.hidden){e.preventDefault();this.click();}} else if(e.key==='Home'){e.preventDefault();treeFocus(items[0]);} else if(e.key==='End'){e.preventDefault();treeFocus(items[items.length-1]);} else if(e.key==='Enter'||e.key===' '){e.preventDefault();this.click();} }); }); $('algTopicToggle').addEventListener('click',function(){ var open=$('algTopicPanel').hidden; $('algTopicPanel').hidden=!open; this.setAttribute('aria-expanded',open?'true':'false'); if(open){var it=treeItems();if(it.length)treeFocus(it[0]);} }); /* ========================= UI: image / photo math input ========================= */ var ocrOpener=null,ocrKeyHandler=null,ocrMouseCleanup=null; function openOcr(){ ocrOpener=document.activeElement; $('algOcrHost').innerHTML= '
    '+ '
    '; var back=$('algOcrBack'),dlg=back.querySelector('.alg-modal'); function focusables(){return Array.prototype.slice.call(dlg.querySelectorAll('button,input,select,textarea,[href]')).filter(function(e){return !e.disabled&&e.offsetParent!==null;});} ocrKeyHandler=function(e){ if(e.key==='Escape'){e.preventDefault();closeOcr();return;} if(e.key==='Tab'){ var f=focusables();if(!f.length)return; var first=f[0],last=f[f.length-1]; if(e.shiftKey&&document.activeElement===first){e.preventDefault();last.focus();} else if(!e.shiftKey&&document.activeElement===last){e.preventDefault();first.focus();} } }; document.addEventListener('keydown',ocrKeyHandler,true); back.addEventListener('mousedown',function(e){if(e.target===back)closeOcr();}); $('algOcrClose').addEventListener('click',closeOcr); $('algOcrCancel').addEventListener('click',closeOcr); $('algOcrUse').addEventListener('click',function(){ var t=$('algOcrText').value.trim(); if(!t){$('algOcrStatus').textContent='Type or correct the expression first.';$('algOcrText').focus();return;} closeOcr(); $('algInput').value=t; calculate(); $('algInput').focus(); }); wireOcrCanvas(); $('algOcrFile').focus(); } function closeOcr(){ if(ocrKeyHandler){document.removeEventListener('keydown',ocrKeyHandler,true);ocrKeyHandler=null;} if(ocrMouseCleanup){ocrMouseCleanup();ocrMouseCleanup=null;} $('algOcrHost').innerHTML=''; if(ocrOpener&&ocrOpener.focus)ocrOpener.focus(); ocrOpener=null; } function wireOcrCanvas(){ var file=$('algOcrFile'),cv=$('algOcrCanvas'),wrap=$('algCropWrap'),box=$('algCropBox'),scan=$('algOcrScan'),st=$('algOcrStatus'); var sel=null,drag=null,img=null; file.addEventListener('change',function(){ var f=this.files&&this.files[0]; if(!f){return;} if(!/^image\//.test(f.type)){st.textContent='That file is not an image. Choose a PNG, JPG or HEIC photo.';return;} st.innerHTML=' Loading image\u2026'; var rd=new FileReader(); rd.onload=function(ev){ img=new Image(); img.onload=function(){ var maxW=680,sc=Math.min(1,maxW/img.width); cv.width=Math.round(img.width*sc);cv.height=Math.round(img.height*sc); cv.getContext('2d').drawImage(img,0,0,cv.width,cv.height); wrap.style.display='inline-block';box.style.display='none';sel=null;scan.disabled=true; st.textContent='Image loaded ('+cv.width+'\xd7'+cv.height+' px shown). Drag a box around the equation.'; }; img.onerror=function(){st.textContent='That image could not be read. Try a different file.';}; img.src=ev.target.result; }; rd.onerror=function(){st.textContent='The file could not be read.';}; rd.readAsDataURL(f); }); function pos(e){ var r=cv.getBoundingClientRect(); var cx=(e.touches?e.touches[0].clientX:e.clientX)-r.left; var cy=(e.touches?e.touches[0].clientY:e.clientY)-r.top; return {x:Math.max(0,Math.min(cv.width,cx)),y:Math.max(0,Math.min(cv.height,cy))}; } function start(e){if(!img)return;e.preventDefault();drag=pos(e);box.style.display='block';move(e);} function move(e){ if(!drag)return; var p=pos(e),x=Math.min(drag.x,p.x),y=Math.min(drag.y,p.y),w=Math.abs(p.x-drag.x),h=Math.abs(p.y-drag.y); box.style.left=x+'px';box.style.top=y+'px';box.style.width=w+'px';box.style.height=h+'px'; sel={x:x,y:y,w:w,h:h}; scan.disabled=!(w>8&&h>8); } function end(){drag=null;if(sel&&sel.w>8&&sel.h>8)st.textContent='Region selected: '+Math.round(sel.w)+'\xd7'+Math.round(sel.h)+' px. Now analyse it.';} cv.addEventListener('mousedown',start);cv.addEventListener('touchstart',start,{passive:false}); document.addEventListener('mousemove',move);cv.addEventListener('touchmove',move,{passive:false}); document.addEventListener('mouseup',end);cv.addEventListener('touchend',end); ocrMouseCleanup=function(){document.removeEventListener('mousemove',move);document.removeEventListener('mouseup',end);}; scan.addEventListener('click',function(){ if(!sel)return; st.innerHTML=' Analysing the selected region\u2026'; setTimeout(function(){ var ctx=cv.getContext('2d'),d; try{d=ctx.getImageData(Math.round(sel.x),Math.round(sel.y),Math.max(1,Math.round(sel.w)),Math.max(1,Math.round(sel.h))).data;} catch(e){st.textContent='The browser blocked reading this image. Type the expression below instead.';return;} var dark=0,total=d.length/4; for(var i=0;i

    Introduction

    This free online Algebra Calculator solves math problems and shows you the steps. Type an equation like x^2 - 5x + 6 = 0, pick what you want done, and the answer appears with the working.

    It works with many kinds of algebra problems:

    • Equations: linear, quadratic, polynomial, rational, and absolute value
    • Inequalities: with answers written as intervals
    • Systems of equations: by substitution, elimination, Cramer's Rule, or Gaussian elimination
    • Basic operations: simplify, factor, and expand
    • Polynomials: add, multiply, long division, and synthetic division
    • Rational expressions: combine fractions and split them with partial fractions
    • Functions and graphs: roots, intercepts, slope, vertex, range, inverse, tangent lines, and plots

    You can also switch answers between fractions and decimals, move sliders to see how numbers change a result, check your own answer, and browse a topic list of ready-made examples. If your problem is on paper, use the photo input to snap a picture and type the expression in.

    How to use our Algebra Calculator

    Type a math problem, pick what you want the calculator to do, and press Calculate. You get the answer, the step-by-step work, and a graph when one fits the problem.

    Expression or equation box: Type your problem here, like x^2 - 5x + 6 = 0, 2x + 3 > 7, or (x + 3)(x - 4). Use ^ for powers, * for times, / for divide, and | | for absolute value.

    Mode buttons: Choose the job you want done, such as Solve, Simplify, Factor, Expand, Roots, Divide, Graph, or Evaluate. The steps you see match the mode you pick.

    Topics list: Open the topic tree and click a lesson, like Quadratic Formula or Partial Fractions. It fills the box with a ready example and sets the right mode for you.

    Solve for variable: When a problem has more than one letter, pick the letter you want to solve for, like solving A = P(1 + r) for r.

    Variable values: In Evaluate mode, type a number for each letter, such as a = 3 and n = 10. The calculator plugs them in and shows the value.

    Tangent x value: In Tangent mode, type the x where you want the tangent line. The tool gives the slope and the line at that point.

    Graph window (Xmin, Xmax, Ymin, Ymax): Set how far the graph goes left, right, down, and up. Click Redraw to see the new view.

    Sliders switch: Turn sliders on to drag values for each letter. The live line shows the value, or tells you if the statement is true or false.

    Fraction or decimal toggle: Click it to switch answers between exact fractions and decimals.

    Check an answer box: Type a value, like x = 3, to test it in your equation. The tool tells you if it works.

    Image input: Upload or snap a photo, drag a box around the problem, then fix the text and load it into the calculator.

    Calculate and Reset: Press Calculate to solve, or Reset to clear everything and start over.

    What Is Algebra?

    Algebra is the part of math that uses letters to stand for numbers. A letter like x is called a variable. It holds the spot of a number you do not know yet. Your job is to find out what that number is.

    Expressions, Equations, and Inequalities

    • Expression: a mix of numbers, letters, and signs, like 3x + 5. It has no equals sign, so you can only simplify it.
    • Equation: two expressions set equal, like 3x + 5 = 11. You solve it to find the value of the variable.
    • Inequality: uses <, >, ≤, or ≥, like 2x + 3 > 7. The answer is a range of numbers, not just one.

    How to Solve an Equation

    Think of an equation as a balance scale. Whatever you do to one side, you must do to the other side. Add, subtract, multiply, or divide both sides until the variable is alone. Then check your answer by putting it back into the first equation.

    Main Algebra Topics

    • Linear equations: the variable has a power of 1, like 4x + 2 = 2(x + 6). Their graphs are straight lines.
    • Quadratic equations: they have an term, like x² − 5x + 6 = 0. You can solve them by factoring, by completing the square, or with the quadratic formula. Their graphs are U-shaped curves called parabolas.
    • Polynomials: sums of terms with whole-number powers, like 5x⁴ − 2x² + 7. You can add, subtract, multiply, and divide them.
    • Factoring: writing an expression as a product. For example, x² − 9 becomes (x + 3)(x − 3). Factoring makes hard problems easier.
    • Rational expressions: fractions with variables, like 1/x + 1/(x + 2). The bottom can never equal zero.
    • Systems of equations: two or more equations at once. You can solve them by substitution, elimination, Cramer's rule, or Gaussian elimination.
    • Absolute value: the distance from zero, so |2x − 3| = 7 gives two cases and often two answers.
    • Sequences: number patterns. Arithmetic ones add the same amount each time; geometric ones multiply by the same amount.

    Functions and Graphs

    A function takes an input and gives one output. When you graph a function, you can see key parts: the x-intercepts (where it crosses the x-axis, also called roots or zeroes), the y-intercept, the slope of a line, and the vertex (the top or bottom point of a parabola). The domain is the set of inputs that work, and the range is the set of outputs you get.

    Order of Operations

    Always work in this order: parentheses, exponents, multiply and divide (left to right), then add and subtract (left to right). Skipping this order is the most common way to get a wrong answer.

    Why Algebra Matters

    Algebra is the base for geometry, trigonometry, statistics, and calculus. People use it every day to work out money, loans, distances, speeds, recipes, and building plans. Once you can solve for a missing number, you can solve real problems.


    Formulas used

    Quadratic formula (solving ax^2 + bx + c = 0)
    x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
    Vertex of a quadratic
    x_v = -\frac{b}{2a}, \qquad y_v = c - \frac{b^2}{4a}
    Slope from a linear equation Ax + By = C
    m = -\frac{A}{B}, \qquad y = mx + b
    Tangent line at x = x_0
    y = f(x_0) + f'(x_0)\,(x - x_0)
    Cramer's rule for a 2x2 system
    x = \frac{c_1 b_2 - c_2 b_1}{a_1 b_2 - a_2 b_1}, \qquad y = \frac{a_1 c_2 - a_2 c_1}{a_1 b_2 - a_2 b_1}
    Arithmetic sequence: n-th term and sum
    a_n = a + (n - 1)d, \qquad S_n = \frac{n}{2}\left(2a + (n - 1)d\right)
    Geometric sequence: n-th term
    a_n = a \cdot r^{\,n - 1}
    Live check of an equality (relative tolerance test)
    \frac{\left|L - R\right|}{\max\left(\left|L\right|, \left|R\right|, 1\right)} < 10^{-9}

    Frequently asked questions

    What is the quadratic formula?

    The quadratic formula solves any equation shaped like ax² + bx + c = 0:

    x = (−b ± √(b² − 4ac)) / (2a)

    Put in your values for a, b, and c. The ± sign gives you two answers. For 2x² + 3x − 2 = 0, you get x = 1/2 and x = −2.

    What is the discriminant and what does it tell you?

    The discriminant is the part under the square root: b² − 4ac. It tells you how many real answers a quadratic has.

    • Positive: two different real answers
    • Zero: one real answer (a repeated root)
    • Negative: no real answers, only two complex ones

    Why do you flip the sign when you divide an inequality by a negative number?

    Because multiplying or dividing by a negative flips the order of numbers. Look at 2 < 5. Multiply both sides by −1 and you get −2 and −5. Now −2 is bigger, so the true statement is −2 > −5. Flipping the sign keeps the statement true. You do not flip when you add or subtract.

    How do you factor a trinomial like x² + 5x + 6?

    Find two numbers that multiply to the last term and add to the middle term. For x² + 5x + 6, the numbers 2 and 3 multiply to 6 and add to 5. So it factors as (x + 2)(x + 3).

    When the front number is not 1, like 6x² + 11x − 35, multiply a times c (6 × −35 = −210), find two numbers that multiply to that and add to 11, then factor by grouping.

    How do you complete the square?

    Take x² + 6x + 4 = 0. Move the 4 over: x² + 6x = −4. Cut the middle number in half (6 ÷ 2 = 3), square it (9), and add 9 to both sides. Now the left side is a perfect square: (x + 3)² = 5. Take the square root of both sides and solve, giving x = −3 ± √5.

    What is an extraneous solution?

    It is an answer that shows up in your work but does not really work in the first equation. This happens a lot with rational equations and square roots. For example, if you solve a fraction equation and get x = −2, but the bottom of the fraction is x + 2, then x = −2 makes it zero. That answer must be thrown out. Always check answers in the original equation.

    What is the difference between long division and synthetic division of polynomials?

    Long division works for any divisor, like x² + 1 or 2x − 5. Synthetic division is a shortcut that only works when you divide by x − c, a linear factor with a 1 in front. Synthetic division uses just the coefficients, so it is faster, but long division is the safe choice for anything else.

    How do you find the vertex of a parabola?

    For y = ax² + bx + c, the vertex x-value is x = −b / (2a). Put that x back in to get the y-value. For x² − 4x + 1, x = 4/2 = 2 and y = 4 − 8 + 1 = −3, so the vertex is (2, −3). If a is positive the vertex is the lowest point; if a is negative it is the highest point.

    How do you find the slope from an equation like 3x + 2y = 12?

    Solve for y so the equation looks like y = mx + b. Here, 2y = −3x + 12, so y = −3/2 x + 6. The number in front of x is the slope, so m = −3/2. The number alone, 6, is the y-intercept.

    How do you solve an absolute value equation?

    Split it into two cases, because the inside can be positive or negative. For |2x − 3| = 7, write 2x − 3 = 7 and 2x − 3 = −7. Solving gives x = 5 and x = −2. If the right side is negative, like |x| = −4, there is no solution, since distance is never negative.

    How do you solve an absolute value inequality?

    Less-than problems become one range in the middle. |x + 1| ≤ 4 means −4 ≤ x + 1 ≤ 4, so −5 ≤ x ≤ 3.

    Greater-than problems break into two separate pieces. |x| > 3 means x < −3 or x > 3.

    What is interval notation?

    It is a short way to write a range of numbers. Round brackets mean the endpoint is not included, and square brackets mean it is. So x > 2 is written (2, ∞), and −2 ≤ x ≤ 2 is written [−2, 2]. Use ∪ to join two separate pieces, like (−∞, −3) ∪ (3, ∞).

    How many solutions can a system of two equations have?

    Three possibilities. If the lines cross once, there is one solution. If the lines are parallel, there is no solution. If both equations describe the same line, there are infinitely many solutions. When you solve and get a false statement like 0 = 5, there is no solution. If you get 0 = 0, there are infinite solutions.

    What are partial fractions used for?

    Partial fractions split one messy fraction into simpler ones added together. For example, 1/(x² − 1) becomes 1/2 · 1/(x − 1) − 1/2 · 1/(x + 1). This makes the fraction much easier to work with, and it is a key step in calculus integration.

    How do you find the inverse of a function?

    Swap x and y, then solve for y. Start with y = (x − 4)/3. Swap: x = (y − 4)/3. Multiply by 3: 3x = y − 4. Add 4: y = 3x + 4. The inverse undoes the original function, so plugging one into the other gives you back x.

    What is the domain of a rational expression?

    The domain is every number you may put in for x. For a fraction with variables, you must leave out any value that makes the bottom zero, because you cannot divide by zero. In 1/(x + 2), x cannot be −2. So the domain is all real numbers except −2.

    Are roots, zeros, and x-intercepts the same thing?

    Yes, they all point to the same idea: the x-values that make the expression equal zero. "Roots" and "zeros" are used for equations and functions, while "x-intercepts" is used for graphs, where the curve crosses the x-axis. For x² − 5x + 6, the roots are 2 and 3, and the graph crosses at (2, 0) and (3, 0).

    What does FOIL mean in algebra?

    FOIL is a memory trick for multiplying two binomials: First, Outer, Inner, Last. For (x + 3)(x − 4): First x·x = x², Outer x·(−4) = −4x, Inner 3·x = 3x, Last 3·(−4) = −12. Add them up and combine: x² − x − 12.

    What are the main exponent rules?

    These four cover most problems:

    • Multiply: xa · xb = xa+b
    • Divide: xa / xb = xa−b
    • Power of a power: (xa)b = xab
    • Zero power: x0 = 1 (when x is not 0)

    So (x³ · x⁴)/x² = x7/x2 = x5.

    How do you solve for one variable in a formula with several letters?

    Treat the other letters like plain numbers and undo the operations step by step. To solve A = P(1 + r) for r: divide both sides by P to get A/P = 1 + r, then subtract 1 to get r = A/P − 1. The goal is the same as any equation, get your letter alone on one side.

    What is the formula for the nth term of an arithmetic sequence?

    Use an = a + (n − 1)d, where a is the first term, d is the amount you add each time, and n is the term number. With a = 3, d = 5, and n = 10, you get 3 + 9(5) = 48. For a geometric sequence you multiply instead: an = a · rn−1.

    What is the difference between factoring and expanding?

    They are opposites. Expanding multiplies things out: (x + 3)(x − 4) becomes x² − x − 12. Factoring goes backward and writes a sum as a product: x² − x − 12 becomes (x + 3)(x − 4). Expanding helps you combine like terms; factoring helps you find roots.