Converting function to Quadratic form

Click For Summary
SUMMARY

The discussion focuses on converting the fourth-order function f(x1,x2)=(x2-x1)^4 + (12*x1*x2) - x1 + x2 - 3 into a quadratic form represented as f(x)=(1/2)x'Qx - x'b + h. The user encounters difficulties due to the function's fourth-order nature, while existing examples only address second-order functions. A suggested approach involves substituting u = (x2 - x1)^2 and v = x1*x2, allowing the function to be expressed in a quadratic format with respect to u and v, albeit with a zero coefficient for the v^2 term.

PREREQUISITES
  • Understanding of quadratic forms and their representations.
  • Familiarity with vector notation and matrix operations.
  • Knowledge of optimization techniques, specifically steepest descent methods.
  • Basic algebraic manipulation skills for polynomial functions.
NEXT STEPS
  • Study the properties of symmetric and positive definite matrices in quadratic forms.
  • Learn about the steepest descent algorithm and its application in optimization problems.
  • Explore methods for converting higher-order polynomial functions into quadratic forms.
  • Investigate the implications of variable substitutions in optimization contexts.
USEFUL FOR

Mathematicians, optimization specialists, and students in applied mathematics or engineering who are dealing with function transformations and optimization techniques.

scg4d
Messages
6
Reaction score
0
1. Hi everyone. I'm looking for help with converting this function to quadratic form.



2. The function is f(x1,x2)=(x2-x1)^4 + (12*x1*x2) - x1 + x2 - 3.

The quadratic form I need to convert to is: f(x)=(1/2)x'Qx - x'b + h

where x is a vector=[x1 x2]', '=transpose, Q and b are vectors, and h is the constant. Also, Q is symmetric and positive definite (Q=Q' > 0).




3. The trouble I'm running into is that f(x1,x2) is 4th order, and the examples I have convert only 2nd order functions to the f(x) quadratic objective format above.

I hit a wall when I expand the quadratic to:
-b1 x1 + 0.5 a x1^2 - b2 x2 + 0.5 b x1 x2 + 0.5 c x1 x2 + 0.5 d x2^2
where Q=[a, b; c, d] and b=[b1; b2] and try to figure out the variables.

In case your interested, I'm looking for this info to solve a steepest descent problem, where the varying ak value is ak=g(k)'g((k))/( g(k)'Qg(k) ) where g(k)=Qx(k) - b.

Thanks for your help!
 
Last edited:
Physics news on Phys.org
scg4d said:
1. Hi everyone. I'm looking for help with converting this function to quadratic form.



2. The function is f(x1,x2)=(x2-x1)^4 + (12*x1*x2) - x1 + x2 - 3.

The quadratic form I need to convert to is: f(x)=(1/2)x'Qx - x'b + h

where x is a vector=[x1 x2]', '=transpose, Q and b are vectors, and h is the constant. Also, Q is symmetric and positive definite (Q=Q' > 0).



3. The trouble I'm running into is that f(x1,x2) is 4th order, and the examples I have convert only 2nd order functions to the f(x) quadratic objective format above.

I hit a wall when I expand the quadratic to:
-b1 x1 + 0.5 a x1^2 - b2 x2 + 0.5 b x1 x2 + 0.5 c x1 x2 + 0.5 d x2^2
where Q=[a, b; c, d] and b=[b1; b2] and try to figure out the variables.

In case your interested, I'm looking for this info to solve a steepest descent problem, where the varying ak value is ak=g(k)'g((k))/( g(k)'Qg(k) ) where g(k)=Qx(k) - b.

Thanks for your help!

Here's something that might be helpful, although it has been many years since I did anything with quadratic forms.

You have f(x1,x2)=(x2 - x1)4 + 12x1x2 - x1 + x2 - 3.

Let u = (x2 - x1)2, and let v = x1x2.
Then your function can be written as
u2 + u + 12v - 3
= u2 + u + 1/4 + 12 v - 13/4
= (u + 1/2)2 + 12v - 13/4.
This could be viewed as quadratic in u and v, but with a coefficient of 0 on the v2 term.

Hope this helps.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
6K