Group Abstract Group Abstract

Message Boards Message Boards

0
|
315 Views
|
3 Replies
|
1 Total Like
View groups...
Share
Share this post:

Automated completing the square for multivariate polynomials with mixed quadratic forms

Posted 4 days ago
-8 x^2 + x^4 + 8 y^2 + 2 x^2 y^2 + y^4 == (x^2 + y^2)^2 - 
      8 (x^2 - y^2)

How to complete the square simultaneously in x and y for the left-hand expression to get the right-hand form?

POSTED BY: Wen Dao
3 Replies

You give one possible result, and it only has pure powers inside the squares. Is there some reason for to disallow cross-terms such as x*y inside the squares?

POSTED BY: Daniel Lichtblau

This replacement rule works:

pol = -8 x^2 + x^4 + 8 y^2 + 2 x^2 y^2 + y^4;
repl = a_.*x^4 + b_.*x^2 y^2 :>
   a (x^2 + b/(2 a)*y^2)^2 - a (b/(2 a)*y^2)^2;
pol /. repl
POSTED BY: Gianluca Gorni

I thought that this would work, but, sadly, it doesn't:

pol = -8 x^2 + x^4 + 8 y^2 + 2 x^2 y^2 + y^4;
FullSimplify[pol, ComplexityFunction -> Count[_^4]]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard