Many real-world phenomena depend on multiple variables. Whenever a single variable fails to capture the relationship, a bivariate polynomial becomes our tool.
Field
Variables
Example polynomial
Physics
Position (x,y)
E(x,y)=ax2+by2+cxy (electric field)
Economics
Price and demand
C(p,q)=ap2+bq2+cpq+dp+eq+f (cost function)
Image processing
Pixel coordinates (x,y)
Brightness stored in a 2‑D array
Meteorology
Latitude and longitude
T(lat,lon) for temperature
Bivariate polynomials formalize these multidimensional relationships.
1.2 Anatomy of a Bivariate Polynomial
Consider
P(x,y)=3x2y+2xy2+5x+7y+1.
Term
Degree in x
Degree in y
Coefficient
3x2y
2
1
3
2xy2
1
2
2
5x
1
0
5
7y
0
1
7
1
0
0
1
This table gives us the information we need to place each term in a grid.
Degree terminology:
The degree in x is the largest exponent of x that appears, so here it is 2.
The degree in y is the largest exponent of y that appears, so here it is 2.
The total degree of one term is the sum of its exponents. For example, x2y has total degree 2+1=3.
The total degree of the polynomial is the largest total degree among its terms, so here it is 3.
We will use the degree of y for rows and the degree of x for columns. That choice is a convention, not a law, but once we choose it we must use it consistently.
2. Array Representation
2.1 Thinking in 2‑D Arrays
Use the degree of y for rows and the degree of x for columns. To make that visible, start with a labeled coefficient table.
x2
x1
x0
y2
0
2
0
y1
3
0
7
y0
0
5
1
Each position stores the coefficient of exactly one term:
row y2, column x1 gives 2, so that entry represents 2xy2
row y1, column x2 gives 3, so that entry represents 3x2y
row y0, column x1 gives 5, so that entry represents 5x
row y0, column x0 gives 1, so that entry represents the constant term
The same information can be written as a matrix:
P=030205071
Because the degrees are listed in descending order, the top row is the y2 row and the leftmost column is the x2 column.
Reading the matrix:
top middle entry 2 means the coefficient of x1y2
middle left entry 3 means the coefficient of x2y1
bottom middle entry 5 means the coefficient of x1y0
bottom right entry 1 means the coefficient of x0y0
This row-column layout is a convention. We could swap the roles of x and y, but then every example and operation would need to follow that new convention consistently.
Visualization:
Bivariate polynomial -> coefficient matrix
Find the highest-degree terms, build a descending-order matrix frame, and fill in the coefficients
Clear bookkeeping: even when some terms are missing, their positions still stay fixed in the grid.
Python (NumPy)
P = np.array([ [0, 2, 0], [3, 0, 7], [0, 5, 1]])print(P.shape)print(P[1, 0]) # coefficient of x²yprint(P[0, 1]) # coefficient of xy²
3. Operating on Bivariate Polynomials
3.1 Why Addition Works
Suppose two polynomials both contain an xayb term. When we add the polynomials, we add the coefficients of those matching terms.
That is exactly what the matrix does. The entry in one fixed position always represents one fixed degree pair, so adding two matrices entry by entry is the same as adding two polynomials term by term.
For example, in the matrix below the middle entry of the bottom row represents the coefficient of x:
030205071
If another polynomial has 4 in that same position, then the new coefficient of x becomes 5+4=9.
3.2 Matrix Addition
Let
P(x,y)=2x2+xy+3y+1
Q(x,y)=x2−xy+2y2+4
Their matrices are
P=002010031,Q=0010−10204.
Element-wise addition gives
P+Q=003000235
which means 3x2+2y2+3y+5.
Notice what happened to the xy term: the coefficient 1 in P and the coefficient -1 in Q are in the same position, so they add to 0 and disappear.
First convert P and Q into matrices with the same degree layout.
Original expressions and result flow
Input P(x,y)
0
+
Input Q(x,y)
0
→
Result polynomial
The result will appear here after the matrix operation
Convert the given bivariate polynomials into matrices (maximum degree 3)
P(x,y)=0
Q(x,y)=0
Q1.Express P(x,y) as a matrix:
Q2.Express Q(x,y) as a matrix:
4. Wrap-Up
Extending to two variables multiplies our expressive power. We can move from straight-line worlds to curved surfaces and coupled relationships.
Key takeaways:
Bivariate polynomials model multidimensional relationships.
Matrices give a systematic way to manage the coefficients.
Matrix addition matches polynomial addition because each position represents one degree pair.
This foundation leads directly to linear algebra, computer graphics, machine learning, and more.
Next preview: extending to three, four, or even n variables introduces higher-dimensional arrays—tensors—which power modern AI and deep learning. Stay tuned!
💬 댓글
이 글에 대한 의견을 남겨주세요