Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Factoring quadratic equations

created by Noung

(idea) by Noung (1.7 hr) (print)   ?   I like it! Fri Jun 01 2001 at 13:05:32

Factoring a quadratic equation means expressing it in two brackets. A quadratic equation is one in the form ax2+bx+c = 0.

Factoring when a = 1

Firstly, make sure the equation is in the standard format, as above. Then, to make things easier for you, write down the two brackets -

( x )( x ) = 0.

Now, you need to find two numbers that multiply to give c, and add/subtract to give the coefficient of b. Then you simply put these numbers into the brackets, and sort out the +/- signs correctly.

Example:
x2 + x = 12

First, we rearrange into the standard format-

x2 - x - 12 = 0

We need two pairs of numbers hat multiply to give 12 and add/subtract to give 1. The numbers are clearly 3 and 4.

Now, write the equation -

(x + 3)(x - 4) = 0

Then, as an essential check, we'd expand the brackets.

Factoring when a does not equal 1

Such as:

3x 2 + 7x + 6 = 0

The method is the same is pretty much the same as before. In this case we'd have to find two numbers that multiply with the 3x and x terms in the brackets and then add or subtract to give the value of b. So in this case it'd be 2 in the first bracket and 3 in the second.


(idea) by doy (9.1 mon) (print)   ?   I like it! Sun Aug 17 2003 at 19:18:55

Although Noung's writeup shows a good way for a human to factor a trinomial, trying to program an algorithm using that method would be horribly inefficient. It would have to first factor a and c, and then test every possible combination of factors until it finds the correct one. Luckily, there is another method that is much more efficient:

Start with

ax²+bx+c

as before, but first split the x term into 2 parts, so that the product of those two coefficients equals the product of a and c. An easy way to do this would be to iterate through the integers between either ±sqrt(ac) or ±b, whichever is greater, since this will cover all possible values. If none fits this, its factorization is irrational or imaginary, and another method will be necessary to factor it. If a number is found, however, the result will look like this:

(ax²+b1x)+(b2x+c)

where b1b2=ac. Next, factor out everything possible from both sets of parentheses. The binomials left inside each set of parentheses will be the same:

px(rx+s)+q(rx+s)

where pr=a, ps=b1, qr=b2, and qs=c. Finally, the distributive property gives you

(px+q)(rx+s)

Example:
6x²+5x-4

First, find 2 numbers with a sum of 5 and a product of -24. They happen to be 8 and -3. So split the x term up like this:

(6x²+8x)+(-3x-4)

Then, factor a 2x out of the first binomial, and a -1 out of the second:

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

Now, use the distributive property to factor it:

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

Using this method, you don't need to factor any numbers, as you do in the normal method, and the amount of numbers you need to test to find the correct ones is also much smaller.

printable version
chaos

completing the square simultaneous equations Quadratic Equation How to make padded swords
quadratic formula Square of a number ending with a 5 Common graph shifts and stretches Is zero a natural number?
Foot and mouth disease Pascal's Triangle Finding the roots of a quadratic equation foot in mouth disease
factoring Adyamadyenantyamantyena partial fraction Again, dammit!
Hammer and sickle Polynomial division What happens when you translate to Klingon and back mathematics
Coefficient Derivative pi Trigonometric Identities
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes to live by:
Same-Sex Marriage and the Law
The Two Cultures
Doing drugs for fun and profit
Baby Wants Gravy
Non-standard analysis
The fear of the LORD is the ending of freedom
To win the game you must kill me, John Romero
It's only love: at the end of the day, there are still thunderstorms and sunsets
Anti-coffee legislation throughout history
How to improve your chances of having sex
Guinness
Scientific Morality
pipeline
New Writeups
survival11
good luck(person)
Lucy-S
shovelglove(idea)
Adaptive Child
Mexican secret sauce(recipe)
Adaptive Child
nacho libre(recipe)
TheLady
Iron Man(review)
Scaevola
Risk in the Roman law of sale(idea)
semicolon
overheard at IHOP(event)
choirotey
Violent pickup lines(idea)
Ouzo
Blue Ovaries, Grrrrrrwl(log)
uncljoedoc
explanation(person)
Noung
One no longer loves one's insight when one communicates it(idea)
AspieDad
Pornology(essay)
nailbiter
Nicole duFresne(person)
Simulacron3
stigmergy(idea)
nakusavi
Yesterday I learned how to kiss(idea)
This page courtesy of The Everything Development Company