Solve a quadratic equation for x using factoring, the quadratic formula, or completing the square, with step-by-step work and an answer verified against the equation.
You are a patient algebra tutor who never skips a step and never trusts a final answer until it has been checked against the original equation. Solve [EQUATION] for x using [METHOD:select:pick the best method for this equation,factoring,quadratic formula,completing the square]. Start by writing the equation in standard form ax^2 + bx + c = 0 if it isn't already there, and state the values of a, b, and c explicitly before doing anything else. If a turns out to be 0, this isn't actually a quadratic equation, so say that plainly, solve the resulting linear equation instead, and skip the rest of the steps below. If I chose pick the best method for this equation, decide between factoring, the quadratic formula, and completing the square based on what fits this equation, not on habit. Factoring works best when a is 1 or the coefficients share a clean common factor, and when integer pairs that multiply to a times c and add to b are easy to find. The quadratic formula is the safer choice when factoring isn't obvious, the coefficients are large, fractional, or decimal, or you can't be confident integer roots exist. Completing the square fits when the equation is already close to that form, when a equals 1 and b is even, or when the request specifically calls for that derivation instead of a shortcut. Name the method you picked and give one sentence on why it fits this equation before you start solving it. Once you commit to a method, show the actual mechanics, not just the setup. If you're factoring, name the pair of numbers you're testing that multiply to a times c and add to b, show a pair that doesn't work before the one that does if the right pair wasn't obvious on the first try, rewrite the middle term using the working pair, factor by grouping, and set each resulting factor equal to zero to get the two solutions. If you're using the quadratic formula, write out x equals negative b, plus or minus the square root of b squared minus 4ac, all over 2a, then substitute the actual numbers for a, b, and c. Calculate the discriminant, b squared minus 4ac, as its own explicit step before touching the square root. Then solve the plus branch and the minus branch as two separate calculations, showing the arithmetic for each instead of presenting both answers at once. If you're completing the square, show moving c to the other side of the equation, dividing every term by a if a isn't already 1, adding the square of half of b to both sides, rewriting the left side as a squared binomial, and then taking the square root of both sides, keeping both the positive and the negative root. Before you state a final answer, explain what the discriminant tells you about the kind of solutions this equation has: a positive discriminant means two distinct real solutions, a discriminant of exactly zero means one repeated real solution, and a negative discriminant means two complex solutions. Say plainly which of these three cases [EQUATION] falls into. Take whatever value or values you've calculated for x and verify each one before calling it final. Substitute it back into the original equation [EQUATION] in place of x, show the arithmetic of that substitution step by step, and confirm the result matches what the equation says it should equal. If a substitution doesn't check out, say so directly, trace back through the work above to find where the error happened, and redo that step instead of quietly changing the final number to make it fit. Only present a solution as finished once every value has passed this check, and state the full solution set clearly at the end.
Use this prompt anywhere
10,000+ expert prompts for ChatGPT, Claude, Gemini, and wherever you use AI.
Get Early AccessEvery algebra class hits the same wall: an equation with an x squared term, and three different methods to solve it with no clear rule for which one to reach for. Pick the wrong method and you either grind through algebra that goes nowhere or miss a shortcut that would have taken thirty seconds.
This tool solves your [EQUATION] for x using whichever [METHOD] fits it best, or the method you specifically choose. It shows every step of the real mechanics, not just the setup: the factor pairs it tested, the discriminant calculated on its own line before the square root, both branches of the plus-or-minus split worked out separately, or every stage of completing the square.
It also explains what the discriminant means for your specific equation, whether that's two real solutions, one repeated solution, or two complex ones, then checks its own answer by substituting it back into your original equation before calling it final. A calculator gives you a number. This shows you the reasoning and proves the number is right.
Run it in the Dock Editor to keep the worked solution alongside your other coursework, or paste it into ChatGPT, Claude, or Gemini. If solving this equation is part of a bigger research project or thesis, the problem statement writer helps you frame why the underlying question matters before you present the math.
Copy this into ChatGPT, Claude, Gemini, or the Dock Editor, then replace [EQUATION] with your quadratic equation in the form ax² + bx + c = 0, such as 2x² + 5x - 3 = 0.
Set [METHOD] to pick the best method for this equation if you want the AI to decide, or choose factoring, quadratic formula, or completing the square directly if your assignment requires a specific one.
The output writes the equation in standard form, states a, b, and c, names the method it used and why, then shows every calculation for that method instead of jumping to an answer.
Before the final answer, the output explains whether the discriminant is positive, zero, or negative and what that means for how many real or complex solutions [EQUATION] has.
The output substitutes each solution back into [EQUATION] and shows the check. If a number doesn't check out, it should say so and redo the step instead of forcing an answer, so read this part before trusting the result.
Get a fully worked solution for algebra homework with every factoring pair, discriminant calculation, or completing-the-square step shown, not just a final number to copy.
Set [METHOD] to quadratic formula or completing the square when an assignment requires that specific technique, and get the discriminant reasoning an instructor expects to see.
Check your kid's answer without re-learning the method yourself. The verification step confirms whether their solution checks out against the original equation.
Generate a worked example with justified method selection and a substitution check, ready to use as a model answer or a step-by-step handout.
Discover more prompts that could help with your workflow.
Calculate a term of an arithmetic sequence with the substitution shown, generate practice problems with an answer key, or explain the formula with an example.
Simplify an algebraic expression, check whether two expressions are truly equivalent, or generate practice problems spotting equivalent and non-equivalent pairs with an answer key.
Solve for a circle's area from a radius or diameter, showing the squaring step and verifying the result, or find a missing radius from area.
10,000+ expert-curated prompts for ChatGPT, Claude, Gemini, and wherever you use AI. Our extension helps any prompt deliver better results.