This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
urp:poly [2021-10-29] nerf_herder created |
urp:poly [2022-01-07] nerf_herder [Completing the square] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====Polynomials==== | + | =====Polynomials===== |
- | === Completing the square === | + | ==== Box method ==== |
+ | {{ :urp:quad-box-method.png?220|Image from basicmathematics.com}} | ||
+ | |||
+ | - Make a 2x2 box (for a quadratic equation). | ||
+ | - Pull out the greatest common factor of the whole equation and keep it for later, if needed. | ||
+ | - The x² coefficient goes in the upper left, the last term goes in the bottom right. | ||
+ | - Multiply those two terms (20x² in this example) and look for factors (1,20; 2,10; 4,5) that will add up to the x coefficient. | ||
+ | - Pull out the greatest common factor for each row and column, and write them outside the box. | ||
+ | - The factors will be the parts outside the box: (2x+5)(x+2) in the example. | ||
+ | - Multiply the GCF, if it was not 1. | ||
+ | |||
+ | |||
+ | ==== Completing the square ==== | ||
start with quadratic equation: ax² + bx + c = 0 | start with quadratic equation: ax² + bx + c = 0 | ||
- | go to: a(x+d)² + e = 0, | + | |
- | where d = b/(2a) and e = c - b²/(4a) | + | === Method 1 === |
- | steps: divide by a to get x² by itself | + | |
- | x² + (b/a)x + (c/a) = 0 | + | Rewrite as x² + (b/a)x = -c/a |
- | add & subtract ((b/a)/2)², now you have: | + | That becomes (x + b/2a)² = -c/a + (b/2a)² |
- | x² + (b/a)x + ((b/a)/2)² + (c/a) - ((b/a)/2)² = 0 | + | Call d = b/2a: (x + d)² = d² - c/a |
+ | Take square roots: x + d = ±√(d² - c/a), and simplify | ||
+ | (Solving for x gives two answers, call it u and v. | ||
+ | The quadratic equation can then be rewritten as: a(x+u)(x+v) = 0) | ||
+ | |||
+ | === Method 2 === | ||
+ | |||
+ | Just compute the values: **equation of square: a(x+d)² + e = 0,** where d = b/(2a) and e = c - b²/(4a) | ||
+ | | ||
+ | steps to get there: use method 1 to get (x + d)² = d² - c/a | ||
+ | multiply both sides by a: a(x + d)² = ad² - c | ||
+ | call e = c - ad², then a(x + d)² + e = 0 | ||
+ | | ||
(x + (b/a))² + c/a - ((b/a)/2)² = 0 | (x + (b/a))² + c/a - ((b/a)/2)² = 0 | ||
\==========/ | \==========/ | ||
quadratic + remainder = 0 | quadratic + remainder = 0 | ||
- | -b/a is the vertex (x value) if graphing, y = remainder | + | |
+ | -b/a is the vertex (x value) if graphing, y = remainder | ||
which leads to **quadratic formula**: x = (-b +- √(b²-4ac)) / 2a | which leads to **quadratic formula**: x = (-b +- √(b²-4ac)) / 2a | ||
- | ===Multiplicity of a polynomial=== | + | ==== Max and Min ==== |
+ | Start with equation of square. | ||
+ | |||
+ | If a>0 then max = infinity, min is at x = -d | ||
+ | If a<0 then min = -infinity, max is at x = 0 | ||
+ | |||
+ | |||
+ | ====Multiplicity of a polynomial==== | ||
Multiplicity is the number of times a given factor appears in the factored form of the equation of a polynomial. | Multiplicity is the number of times a given factor appears in the factored form of the equation of a polynomial. | ||
Line 30: | Line 62: | ||
This has 3 different polynomials for x, and will touch or cross the x axis 3 times | This has 3 different polynomials for x, and will touch or cross the x axis 3 times | ||
- | ===Rational Roots=== | + | ====Rule of signs & Number of roots==== |
+ | Roots of a polynomial are locations where y=0. Rule of signs can tell us how many roots exist, and how many have a positive or negative value of x. | ||
+ | |||
+ | The highest power is the number of total roots. | ||
+ | |||
+ | Count the number of times the sign of coefficient of terms changes sign (ignoring any zero coefficients) as you go down the list of coefficients. | ||
+ | |||
+ | If there is no constant term (power of 0), pull out a factor of x, until there is a constant. For example: x³+2x²+5x gets changed to x(x²+2x+5), then use x²+2x+5 in the steps below. (Total number of roots is from original equation: 3 in this case.) | ||
+ | |||
+ | Example: | ||
+ | -3x⁴ + 4x² + x − 2 | ||
+ | |||
+ | Positive Roots: This has two changes in sign, so a maximum of two positive roots | ||
+ | Negative Roots: Substitute -x => only odd powers will change sign. Count the changes in sign again. | ||
+ | In this example, only the x changes: -3(-x)⁴ + 4(-x)² + -x − 2 = -3x⁴ + 4x² -x − 2 | ||
+ | still two changes => two negative roots (or 0 if there's complex roots) | ||
+ | The number of positive or negative roots is reduced by 2 for each pair of complex roots, if they exist. | ||
+ | That means, in this case, there could be: | ||
+ | * 4 roots: 2 positive roots, 2 negative roots | ||
+ | * 4 roots: 0 positive roots, 2 negative roots, complex pair | ||
+ | * 4 roots: 2 positive roots, 0 negative roots, complex pair | ||
+ | * 4 roots: 0 positive roots, 0 negative roots, 2 complex pairs | ||
+ | |||
+ | ====Rational Roots==== | ||
What are all the possible rational roots of the following function: 6x⁴−x³−4x²−x−2 | What are all the possible rational roots of the following function: 6x⁴−x³−4x²−x−2 | ||
Line 48: | Line 103: | ||
When the leading coefficient is 1, the possible rational zeros are the factors of the constant term. | When the leading coefficient is 1, the possible rational zeros are the factors of the constant term. | ||
+ | ------------ | ||
+ | |||
+ | Back to the [[00_start|Start]] page or [[math]] page. | ||