# How to find a quadratic equation given the solution??

**URL:** <https://community.wolfram.com/t/how-to-find-a-quadratic-equation-given-the-solution/3925>\
**Category:** Questions\
**Tags:** algebra\
**Created:** [November 9, 2014, 12:40am UTC](https://community.wolfram.com/t/how-to-find-a-quadratic-equation-given-the-solution/3925 "2014-11-09T00:40:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggrelle](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@ggrelle](https://community.wolfram.com/u/ggrelle)\
**Post date:** [November 9, 2014, 12:40am UTC](https://community.wolfram.com/t/how-to-find-a-quadratic-equation-given-the-solution/3925/1 "2014-11-09T00:40:13Z")

</div>

We are working on quadratic equations.

How would I enter x=4/5,x=3,x=-3 and get the equation??

or a=sqrt10,a=-sqrt10n and get the equation?

or x=(-1+\_1i)/2 and get the equation?

I’m stummped!! Wolfram has been a nightmare on getting simple algebra help. thank you for any help !

---

<div class="post-metadata">

**Author:** ![dreiss](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dreiss/32/29094_2.png) [@dreiss](https://community.wolfram.com/u/dreiss)\
**Post date:** [November 9, 2014, 1:47am UTC](https://community.wolfram.com/t/how-to-find-a-quadratic-equation-given-the-solution/3925/2 "2014-11-09T01:47:48Z")

</div>

Just enter the equation:

```
(x-a)(x-b)

```

where `a` and `b` are the two roots. That, of course, is the quadratic equation with those roots

---

<div class="post-metadata">

**Author:** ![ggrelle](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@ggrelle](https://community.wolfram.com/u/ggrelle)\
**Post date:** [November 9, 2014, 1:57am UTC](https://community.wolfram.com/t/how-to-find-a-quadratic-equation-given-the-solution/3925/3 "2014-11-09T01:57:25Z")

</div>

I’m sorry but i didn’t understand your answer. I have the solution I need the equation from the solution.

do you know how to enter where the plus is over the minus for “plus or minus”

so sorry but I may have not asked the question right.

Here is an example : a=sqrt10, a= - sqrt10 what is the solution to this ?

Thank you !!

---

<div class="post-metadata">

**Author:** ![dreiss](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dreiss/32/29094_2.png) [@dreiss](https://community.wolfram.com/u/dreiss)\
**Post date:** [November 9, 2014, 2:03am UTC](https://community.wolfram.com/t/how-to-find-a-quadratic-equation-given-the-solution/3925/4 "2014-11-09T02:03:27Z")

</div>

If a quadratic equation has two roots --let’s call them x1 and x2–then the equation is proportional to

```
(x-x1)(x-x2)

```

In your example

```
x1 = Sqrt[10]

x2 = -Sqrt[10]

```

so the equaiton is

```
(x-Sqrt[10])(x+Sqrt[10])

```

you can expand this out to get the equivalent

```
x^2 - 10

```

---

<div class="post-metadata">

**Author:** ![ggrelle](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@ggrelle](https://community.wolfram.com/u/ggrelle)\
**Post date:** [November 9, 2014, 2:10am UTC](https://community.wolfram.com/t/how-to-find-a-quadratic-equation-given-the-solution/3925/5 "2014-11-09T02:10:11Z")

</div>

Ok, when I enter the equation in wolfram I don’t get the right answer which is a^2-10=0 .

I also cant figure out how to enter x=-1(plus or minus)1i /2 do you know if it will calculate that?

I so appreciate your help David !

---

<div class="post-metadata">

**Author:** ![dreiss](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dreiss/32/29094_2.png) [@dreiss](https://community.wolfram.com/u/dreiss)\
**Post date:** [November 9, 2014, 2:22am UTC](https://community.wolfram.com/t/how-to-find-a-quadratic-equation-given-the-solution/3925/6 "2014-11-09T02:22:27Z")

</div>

My mistake, I wrote `Sqrt[2]` rather than `Sqrt[10]`😉

So I should have written

```
(x-Sqrt[10])(x+Sqrt[10])

```

I just edited my original post to correct this…

I do not believe that there is a way to enter the plus/minus character into Wolfram|Alpha. But when, in algebra, one uses that character it is just a shorthand for writing both cases.

I also note that one would hope that Wolfram|Alpha would give the answer to the statement

```
quadratic equation with roots 3 and 9

```

and give

```
27 - 12 x + x^2

```

as the result. But apparently the Wolfram|Alpha parser does note recognize this. I sent in a suggestion that it should address this case.

---

<div class="post-metadata">

**Author:** ![ggrelle](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@ggrelle](https://community.wolfram.com/u/ggrelle)\
**Post date:** [November 9, 2014, 2:27am UTC](https://community.wolfram.com/t/how-to-find-a-quadratic-equation-given-the-solution/3925/7 "2014-11-09T02:27:22Z")

</div>

It’s really sad how I have tried to use wolfram alpha and rarely get correct answers. I started using other sites and got the answers. I tried to come back for this type of equation but can’t find the help anywhere. Thank you again and have a great night.

Ambi J
