Ask Uncle Colin: How can I tell if my quartic is a square?
Dear Uncle Colin,
I have a quartic expression and I want to know whether it can be expressed as a perfect square. How would you do it?
Quite Ugly Algebra – Rooting Turns Into Clean Squares?
Hi, QUARTIC, and thanks for your message!
Like quadratics, quartics have a discriminant. Unfortunately, the discriminant is too unwieldy to be much use here, and doesn’t actually answer your question – so we won’t be looking at it.
I can think of two methods for this: an algebraic one (matching coefficients) and a calculus one (finding turning points).
For the purposes of this post, I’ll consider two expressions:
, which is a square , which is not a square
Matching coefficients
If the quartic is a perfect square, its square root is an arbitrary quadratic that can be expressed as
That’s a bit of a mess, but it does allow us to pattern match quite easily.
If the quartic is a square, then its
- For the first expression,
and - For the second,
and
We can work out a candidate
Then we can check whether it works using the
In both cases, the
Calculus
If the quartic is a perfect square, all of its zeros – including the complex ones – must also be turning points.
Let’s look at the derivative of
That has (generally) three solutions: one at
That is to say, the two ‘outer’ turning points are evenly spaced around the inner one – the curve is symmetric about its inner turning point. (The turning points might involve complex numbers. That’s ok.) This is a necessary but not sufficient condition for the quartic to be a square – as we’ll see immediately: in both of the expressions, we have the same cubic derivative:
If the expression has a line of symmetry, then it’s midway between the points of inflexion! So we can differentiate again:
This tells us that
The outer turning points are therefore at
But are they zeros? You have two options. You may plonk them back into the original expressions and see whether you get 0; or you may work out
Do you know of a better way? Let me know!
- Uncle Colin