Factorizing Expressions
Section titled βFactorizing ExpressionsβOften times, a nasty expression or equation requires factoring to simplify and solve.
Basic factorizations
Section titled βBasic factorizationsβOne of the most common factorizations are the difference of squares and cubes factorization:
// add like a general form of a^n + b^n, as well as the fact that any polynomial can be factored up to quadratics
Another useful (lesser-known) factorization is Sophie Germainβs identity:
It comes from adding and subtracting to create a difference of squares. This is a useful move when a sum has almost enough terms to be a perfect square, and can be manipulated for sums of fourth powers.
Example. Without expanding four large factors, evaluate .
Pair the outside numbers and the inside numbers:
The product is therefore one below a square:
The required square root is .
// add an AMC/AIME problem as an example
// add a section on completing the square and stuff
Simonβs Favorite Factoring Trick
Section titled βSimonβs Favorite Factoring TrickβSimonβs Favorite Factoring Trick, usually shortened to SFFT, completes a product in the same way that completing the square creates a square. If an equation contains a mixed term and two linear terms, compare it with
Thus adding the missing constant turns into . The coefficients cross over: the coefficient of becomes the constant added to . Expanding the proposed product once is a good way to check the placement.
For a leading coefficient other than one, multiply first:
The transformed factors carry extra restrictions. If the original variables are integers, the first factor must be modulo and the second must be modulo . Listing every divisor pair without checking these restrictions can create false solutions.
Example. Find every positive integer ordered pair satisfying .
The missing product constant is six:
The factors have the same sign. They cannot both be negative: positivity would force and , whose product is at most two. Therefore both factors are positive. The ordered positive divisor pairs of twenty-six give
These are all the possibilities because every original solution determines one of those factor pairs. Expanding the completed product verifies the reverse implication.
A particularly useful disguised version involves reciprocals. Clearing denominators in gives , which becomes
If are positive, each of is greater than : a reciprocal term already equal to or greater than leaves no room for the other positive term.
Example. Find the number of positive integer ordered pairs satisfying .
SFFT gives . Each positive divisor of gives exactly one pair
Since , it has positive divisors, so there are fifteen ordered pairs. For unordered pairs there would be eight: seven reversed pairs and the single diagonal solution .
The Binomial Theorem and Coefficients
Section titled βThe Binomial Theorem and CoefficientsβThe binomial theorem expands a nonnegative integer power without multiplying the factors one at a time:
The term with occurs when exactly of the factors contribute their . There are choices of those factors. This explains both the coefficient and the exponents. The coefficients in row are symmetric because choosing the factors also determines the remaining factors.
Use the general term to extract a requested coefficient. Expanding every term wastes time and makes exponent mistakes harder to find. In a product of two expansions, first determine which exponents can combine to produce the required total.
Example. Find the constant term in .
If the second term is chosen times, the resulting term is
A constant requires , so only contributes. The constant term is
Notice that both the exponent equation and the sign are needed. The coefficient alone does not determine whether the contribution is positive.
The same argument extends to a sum of several terms. The coefficient of in , with , is . Choose the positions of the first type, then the second; the remaining positions contain the third. This multinomial theorem is useful for coefficient problems and arrangements with repeated objects.
Substitution into the binomial theorem also evaluates sums of coefficients. Setting gives , while setting gives for . Adding and subtracting these two equations separates the even-index and odd-index coefficients.
Example. Evaluate without calculating eleven individual terms.
Differentiate , then multiply by :
At , the required sum is . Differentiating twice would produce the weight ; to handle , write it as .
Substitution and Symmetric Expressions
Section titled βSubstitution and Symmetric ExpressionsβA substitution should reduce the number of different expressions you need to track. For a reciprocal expression, let with . Then
Remember the possible values of the new variable. For real nonzero , we have or ; if , only is possible.
For expressions symmetric in two variables, use their sum and product :
The individual variables are roots of , so real values require .
Example. Positive real numbers satisfy and . Find .
Use the square of the sum to find the product:
Then
Solving separately for and would add work without helping us find the requested symmetric expression.
We can also solve these types of equations using Newtonβs Sums, which is explained in detail in the polynomials page.
Symmetry in Three Variables
Section titled βSymmetry in Three VariablesβFor three variables, introduce the elementary symmetric quantities
Then and
A related factorization is
It is particularly strong when the sum is zero. Instead of finding the individual variables, the entire cubic expression collapses to a product. Also,
so for real variables this factor is nonnegative and vanishes precisely when the three variables are equal. A factorization can therefore carry information about equality cases as well as numerical values.
Example. Real numbers satisfy and . Find .
The first factor in the displayed identity is zero, so . The conditions do not identify one ordered triple, but they do identify the requested symmetric expression.
For two-variable symmetric systems, the discriminant can be more useful than solving the system. If and , the variables are roots of . Real solutions require ; positive solutions additionally require a positive sum and product.
Example. Find every real value of for which real numbers satisfy and .
The product is . Hence the discriminant of the quadratic with roots is
It is nonnegative exactly when . Conversely, for any such the roots of that quadratic are real and have the required sum and square sum, proving sufficiency as well as necessity.
Systems of Equations
Section titled βSystems of EquationsβAdding or subtracting equations can expose a factor that substitution would bury. If swapping and exchanges the two equations, subtracting them often produces a factor of . Split into cases instead of dividing by that factor and losing solutions.
Example. Find all real ordered pairs satisfying and .
Subtracting gives
If , then , giving the pairs
If , substitute into the first equation:
This gives or . Substitution verifies all four pairs in both original equations.
Exponents and Logarithms
Section titled βExponents and LogarithmsβFor exponential equations with a common base, replace the repeated power by one variable. For logarithms with different bases, change to a shared base:
In particular, reciprocals of logarithms often turn products in the base into sums.
Example. Let satisfy , , and . Find .
Change the base to . The given equations become
Using the product rule,
Thus .
Example. Find all real solutions of .
Let . Since , the equation becomes . Thus or , giving or . Both values satisfy the original equation.
Radical Equations and Extraneous Solutions
Section titled βRadical Equations and Extraneous SolutionsβSquaring can turn a false equality into a true one because allows both and . Isolate the radical first, record the sign condition, and check the candidates in the original equation.
Example. Find all real solutions of .
The left side is nonnegative, so any solution has . Squaring gives
The candidate violates . Checking gives , so the only solution is .
Conjugates and Nested Radicals
Section titled βConjugates and Nested RadicalsβWhen an expression contains two similar radicals, multiplication by a conjugate can remove them:
For , try with . Squaring shows that the required conditions are and . Thus the same sum-and-product method used for symmetric systems also simplifies radicals.
Example. Simplify .
We need and , giving . Thus the first radical is . The second is , because . Their sum is four.
The absolute value is essential: a principal square root is nonnegative, and rather than automatically .
When a substitution reduces a difficult equation, finish by recovering the original variable and checking its domain. A quadratic in might produce an inadmissible value between negative two and two. A factorization after squaring might produce a candidate with the wrong sign. Keeping these checks beside the algebra makes a long solution much easier to trust.
Absolute Values and Parameter Cases
Section titled βAbsolute Values and Parameter CasesβAn absolute value is a distance, so its graph changes slope where the inside expression is zero. For an equation containing several absolute values, mark those breakpoints first. On each interval, replace every absolute value by the correct signed expression, solve, and check that the solution lies in that interval.
A geometric interpretation can reveal an entire parameter classification before the algebra. The sum of distances from a point on a line to two fixed endpoints is at least the distance between the endpoints. Equality holds at every point between them, not just at the midpoint.
Example. For every real parameter , determine the number of real solutions of .
The endpoints are negative one and two, at distance three. For , the left side is . Thus there are no solutions if and infinitely many, the entire interval, if .
For , a solution must lie outside that interval. On , the equation is , giving . On , it is , giving .
There are exactly two solutions when . The boundary parameter creates a whole interval of solutions, which would be missed by squaring or by solving only the outside cases.
The same idea extends to sums of many distances. For fixed points on a line, the sum of distances is minimized at a median. Between consecutive listed points, count how many terms increase and decrease as moves; the slope is their difference. This gives a direct way to analyze a piecewise-linear expression without expanding every case independently.
Floor Functions by Integer and Fractional Parts
Section titled βFloor Functions by Integer and Fractional PartsβFor a floor equation, write with and . Integer multiples of then separate into a known multiple of and a short list of possible floor values involving .
Example. Solve over the reals.
With , the equation becomes . The last floor is either zero or one. Only and work. Hence and the solution set is .
The right endpoint is excluded because at three the floor sum jumps to nine. The left endpoint is included because the floor of becomes one exactly at .
For inequalities involving floors, use the defining bounds . They can first bound the integer part and make a finite case split possible. Avoid replacing a floor by a nearby real number as an equality; that loses the discontinuity carrying the integer information.