Docsity

Graphing Quadratic Equations: Finding the Matrix A and Diagonalizing for Quadratic Part, Study notes of Linear Algebra

Toggle sidebar
bg1
Math 311 Lecture 39
Graphing Quadratic Equations
Let X = [x, y]T, Y = [x1, y1]T, e1, e2 = standard basis of R2
To graph a quadratic equation (original variables: x, y)
Find the matrix A for the equation’s quadratic part.
Diagonalize A to remove cross-product terms. Let the
orthonormal eigenvector basis be v1, v2. It will be a
rotation / reflection of the original basis.
Complete the square to get rid of any inessential terms
of degree one. Let the new shifted variables be x2, y2.
They are translations of x1, y1 in the v1, v2 directions.
Rewrite in one of the standard forms.
Draw the graph around the shifted origin w.r.t. the
x1("horizontal"), y1 ("vertical") axes which lie in the v1, v2
directions.
PROBLEMS. Page 424.
20. Graph
x
y=1
This the familiar graph of . But we will follow the
y
=1
x
procedure anyway as an example.
Matrix form:
This is X TAX+BX+C = 0 for A = , B = , C = -2.





01
2
1
20




[0,0]
Char. poly. for A: Ī»2āˆ’1
4=(Ī»āˆ’1
2)(Ī» + 1
2)
Eigenvalues: ½, -½.
Eigenvector for ½: [1,1]T é = v1.
[1
2,1
2]T
Eigenvector for -½: [1,-1]T Ć© = v2. [āˆ’1
2,1
2]T
Thus D = and P = . D = PTAP.





1
20
0āˆ’1
2










1
2
āˆ’1
2
1
2
1
2





X = PY, so


x
y


=





1
2
āˆ’1
2
1
2
1
2







x1
y1


=





1
2(x1āˆ’y1)
1
2(x1+y1)





Rewrite in the new variables.
x
y=1
(1
2(x1āˆ’y1))( 1
2(x1+y1))=1
. D-check: coeff. of x1, y1 are ½, -½.
x
1
2/(2)2āˆ’y1
2/(2)2=1
ā€œHorizontalā€ hyperbola in x1, y1 (not horizontal in x, y).
e
e
v
1
1
22
x
yxy 11
v
= "horizontal"
CPage 424:30.
Graph .8x2+8y2āˆ’16xy āˆ’33 2 xāˆ’31 2 yāˆ’70 =0
Matrix for quadratic part: A =


8āˆ’8
āˆ’88



Characteristic polynomial for A:
Ī»2āˆ’16Ī»=Ī»(Ī»āˆ’16)
Eigenvalues: 16, 0
Eigenvector for 16: [-1,1]T Ć© []
T = v1
āˆ’1
2,1
2
Eigenvector for 0: [1,1]T é []
T = v2
1
2,1
2
Thus D = and P = . D = PTAP.


16 0
00








āˆ’1
2
1
2
1
2
1
2





X = PY, so


x
y


=





āˆ’1
2
1
2
1
2
1
2







x1
y1


=





1
2(āˆ’x1+y1)
1
2(x1+y1)





Rewrite in the new variables. becomes
(8x2+8y2āˆ’16xy)āˆ’33 2 xāˆ’31 2 yāˆ’70 =0
8[1
2(āˆ’x1+y1)]2+8[1
2(x1+y1)]2
āˆ’16[1
2(āˆ’x1+y1)][ 1
2(x1+y1)]
āˆ’33 2 [1
2(āˆ’x1+y1)] āˆ’ 31 2 [1
2(x1+y1)] āˆ’ 70 =0
which simplifies to . †16x1
2+2x1āˆ’64y1āˆ’70 =0
Complete the square. 16(x1
2+1
8x1+1
162)āˆ’64y1=70 +1
16
(x1+1
16)2=4y1+1121
256
.
(x1+1
16)2=4(y1+1121
1024)
This is a shift of the parabola .
x
2
2=4y2
ā€œUpward verticalā€ parabola with center (-1/16, -1121/1024)S,
in the rotated S = {v1, v2} coordinate system. The x1-axis
direction is v1, the ā€œupwardā€ y1-axis direction is v2.
Graph
e1
e2v2
v2
(-1/16, -1121/1042)
2
y
x
1
x1
y
1
v
1
v
S
-1/16
† is the original quadratic part. The new quadratic8x2+8y2āˆ’16xy
part is . Check that its coefficients are those of the matrix D.
16x1
2

Partial preview of the text

Download Graphing Quadratic Equations: Finding the Matrix A and Diagonalizing for Quadratic Part and more Study notes Linear Algebra in PDF only on Docsity!

Math 311 Lecture 39

Graphing Quadratic Equations Let X = [ x , y ] T, Y = [ x 1 , y 1 ] T, e 1 , e 2 = standard basis of R 2 To graph a quadratic equation (original variables: x , y ) Find the matrix A for the equation’s quadratic part. Diagonalize A to remove cross-product terms. Let the orthonormal eigenvector basis be v 1 , v 2. It will be a rotation / reflection of the original basis. Complete the square to get rid of any inessential terms of degree one. Let the new shifted variables be x 2 , y 2. They are translations of x 1 , y 1 in the v 1 , v 2 directions. Rewrite in one of the standard forms. Draw the graph around the shifted origin w.r.t. the x 1 ("horizontal") , y 1 ("vertical") axes which lie in the v 1 , v 2 directions.

P ROBLEMS. Page 424.

  1. Graph xy = 1 This the familiar graph of y = (^1) x. But we will follow the procedure anyway as an example.

Matrix form:

This is X T AX + BX + C = 0 for A = , B = , C = -2.







(^0 ) 1 2 0





 [0, 0]

Char. poly. for A : Ī»^2 āˆ’ 14 = (Ī» āˆ’ 12 )(Ī» + 12 )

Eigenvalues: ½, -½. Eigenvector for ½: [1,1] T^ ƈ [ 12 , 12 ]T= v 1. Eigenvector for -½: [1,-1] T^ ƈ [ āˆ’^1 = v 2. 2

2

]T

Thus D = and P =. D = P T A P.







1 2 0 0 āˆ’^12











  

1 2

āˆ’ 1 2 1 2

1 2





  

X = PY, so  

 x y

 

 =





  

1 2

āˆ’ 1 2 1 2

1 2







 

 



x 1 y 1

 

 =





  

1 2 ( x^1 āˆ’^ y^1 ) 1 2 ( x^1 +^ y^1 )







 

Rewrite in the new variables. xy = 1 ( 12 ( x 1 āˆ’ y 1 ))( 12 ( x 1 + y 1 )) = 1 x 12 /( 2 )^2 āˆ’ y 12 /( 2 )^2 = 1. D -check: coeff. of x 1 , y 1 are ½, -½. ā€œHorizontalā€ hyperbola in x 1 , y 1 (not horizontal in x , y ).

e

e v

1

2 1

2

x

y y 1 x 1

v

= "horizontal"

CPage 424:30.

Graph 8 x^2 + 8 y^2 āˆ’ 16 xy āˆ’ 33 2 x āˆ’ 31 2 y āˆ’ 70 = 0.

Matrix for quadratic part: A =  

 8 āˆ’ 8 āˆ’ 8 8

 



Characteristic polynomial for A : Ī»^2 āˆ’ 16 Ī» = Ī»(Ī» āˆ’ 16 ) Eigenvalues: 16, 0 Eigenvector for 16: [-1,1] T^ ƈ [ āˆ’ 21 , 12 ] T^ = v 1 Eigenvector for 0: [1,1] T^ ƈ [ 12 , 12 ] T^ = v 2

Thus D = and P =. D = P T A P.

 



16 0 0 0

 







  

āˆ’ 1 2

1 2 1 2

1 2





   X = P Y , so  



x y

 

 =





  

āˆ’ 1 2

1 2 1 2

1 2





  

 



x 1 y 1

 

 =





  

1 2 (āˆ’ x^1 +^ y^1 ) 1 2 ( x^1 +^ y^1 )





  

Rewrite in the new variables. ( 8 x^2 + 8 y^2 āˆ’ 16 xy ) āˆ’ 33 2 x āˆ’ 31 2 y āˆ’ 70 = 0 becomes 8 [ 12 (āˆ’ x 1 + y 1 )]^2 + 8 [ 12 ( x 1 + y 1 )]^2 āˆ’ 16 [ 12 (āˆ’ x 1 + y 1 )][ 12 ( x 1 + y 1 )] āˆ’ 33 2 [ 12 (āˆ’ x 1 + y 1 )] āˆ’ 31 2 [ 12 ( x 1 + y 1 )] āˆ’ 70 = 0 which simplifies to 16 x 12 + 2 x 1 āˆ’ 64 y 1 āˆ’ 70 = 0. † Complete the square. 16 ( x 12 + 18 x 1 + 161 2 ) āˆ’ 64 y 1 = 70 + 161 ( x 1 + 161 )^2 = 4 y 1 + (^1121256) ( x 1 + 161 )^2 = 4 ( y 1 + 11211024 ).

This is a shift of the parabola x 22 = 4 y 2. ā€œUpward verticalā€ parabola with center (-1/16, -1121/1024) (^) S, in the rotated S = { v 1 , v 2 } coordinate system. The x 1 -axis direction is v 1 , the ā€œupwardā€ y 1 -axis direction is v 2. Graph

e (^1)

e (^2) v (^2)

v (^2)

(-1/16, -1121/1042)

2

y

x

x 1 y 1 v 1

v 1

S

-1/

† 8 x^2 + 8 y^2 āˆ’ 16 xy is the original quadratic part. The new quadratic part is 16 x 12. Check that its coefficients are those of the matrix D.