From 54afef75a6ecad72fa1d9949dcc9ce61b8694e1a Mon Sep 17 00:00:00 2001
From: Steven Clontz
Date: Wed, 1 Apr 2026 21:04:08 +0000
Subject: [PATCH 1/3] add task to EV3 to associate an eigenvector with an
eigenvalue
---
.../exercises/outcomes/GT/GT3/generator.sage | 18 ++++++++++---
.../exercises/outcomes/GT/GT3/template.xml | 27 ++++++++++++++-----
2 files changed, 34 insertions(+), 11 deletions(-)
diff --git a/source/linear-algebra/exercises/outcomes/GT/GT3/generator.sage b/source/linear-algebra/exercises/outcomes/GT/GT3/generator.sage
index 96b9cb671..ca2a8a856 100644
--- a/source/linear-algebra/exercises/outcomes/GT/GT3/generator.sage
+++ b/source/linear-algebra/exercises/outcomes/GT/GT3/generator.sage
@@ -4,16 +4,26 @@ TBIL.config_matrix_typesetting()
class Generator(BaseGenerator):
def data(self):
while True:
- ls = [choice([-1,1])*i for i in range(2,7)]
- l1,l2 = sample(ls,2)
- S=random_matrix(QQ, 2, 2, algorithm='echelonizable', rank=2, upper_bound=2)
+ # eigenvalues will be two distinct small integers with
+ # different absolute values
+ l1,l2 = sample(range(2,6),2)
+ l1,l2 = l1*choice([-1,1]),l2*choice([-1,1])
+ S=random_matrix(QQ, 2, 2, algorithm='echelonizable', rank=2, upper_bound=6)
A=S.inverse()*matrix([[l1,1],[0,l2]])*S
- if all(a!=0 for a in A.list()):
+ # to get roughly consistent difficulty
+ if all(abs(a)>5 for a in A.list()):
break
+ # Get an eigenvector
+ eigenvector = column_matrix((A-matrix([[l1,0],[0,l1]])).right_kernel(basis='pivot').basis()[0])
+ # Scale to get whole numbers
+ eigenvector = eigenvector[0].denominator()*eigenvector[1].denominator()*eigenvector
+
return {
"matrix": A,
"e1": l1,
"e2": l2,
"charpoly": A.charpoly('lambda_'),
+ "eigenvector": eigenvector,
+ "scaled_eigenvector": l1*eigenvector,
}
diff --git a/source/linear-algebra/exercises/outcomes/GT/GT3/template.xml b/source/linear-algebra/exercises/outcomes/GT/GT3/template.xml
index e9086451c..28690890e 100644
--- a/source/linear-algebra/exercises/outcomes/GT/GT3/template.xml
+++ b/source/linear-algebra/exercises/outcomes/GT/GT3/template.xml
@@ -1,10 +1,23 @@
-
- Explain and demonstrate how to find the eigenvalues of the matrix {{matrix}}.
-
-
- The characteristic polynomial of {{matrix}} is {{charpoly}}.
- The eigenvalues of {{matrix}} are {{e1}} and {{e2}}.
-
+
+
+ Explain and demonstrate how to find the eigenvalues of the matrix {{matrix}}.
+
+
+ The characteristic polynomial of {{matrix}} is {{charpoly}}.
+ The eigenvalues of {{matrix}} are {{e1}} and {{e2}}.
+
+
+
+
+ Explain and demonstrate which of these eigenvalues is associated to the eigenvector {{eigenvector}}.
+
+
+
+ {{eigenvector}} is associated with the eigenvalue {{e1}} because
+ {{matrix}}{{eigenvector}}={{scaled_eigenvector}}={{e1}}{{eigenvector}}
+
+
+
From 18b1817acc6c34c7d496ee2758dbe70b7bfd32ab Mon Sep 17 00:00:00 2001
From: Steven Clontz
Date: Thu, 2 Apr 2026 15:51:32 +0000
Subject: [PATCH 2/3] add sample solution for updated GT3
---
.../source/05-GT/samples/03.ptx | 59 ++++++++++++++-----
.../source/meta/sample-exercises.ptx | 1 -
2 files changed, 45 insertions(+), 15 deletions(-)
diff --git a/source/linear-algebra/source/05-GT/samples/03.ptx b/source/linear-algebra/source/05-GT/samples/03.ptx
index 686b81721..2677baf1e 100644
--- a/source/linear-algebra/source/05-GT/samples/03.ptx
+++ b/source/linear-algebra/source/05-GT/samples/03.ptx
@@ -1,20 +1,51 @@
+
+ GT3
+
+
+
+ Explain and demonstrate how to find the eigenvalues of the matrix \left[\begin{array}{cc} -2 & -2 \\ 10 & 7 \end{array}\right] .
+
+
+
+
+ Compute the characteristic polynomial:
+
+ \det(A-\lambda I) = \det \left[\begin{array}{cc} -2 - \lambda & -2 \\ 10 & 7-\lambda \end{array}\right]
+
+
+ = (-2-\lambda)(7-\lambda)+20 = \lambda ^2 -5\lambda +6 = (\lambda -2)(\lambda -3)
+
+ The eigenvalues are the roots of the characteristic polynomial, namely 2 and 3.
+
+
+
-GT3
-
-
-Explain how to find the eigenvalues of the matrix \left[\begin{array}{cc} -2 & -2 \\ 10 & 7 \end{array}\right] .
-
-
-
-
-Compute the characteristic polynomial:
-\det(A-\lambda I) = \det \left[\begin{array}{cc} -2 - \lambda & -2 \\ 10 & 7-\lambda \end{array}\right]
-= (-2-\lambda)(7-\lambda)+20 = \lambda ^2 -5\lambda +6 = (\lambda -2)(\lambda -3)
-The eigenvalues are the roots of the characteristic polynomial, namely 2 and 3.
-
-
+
+
+
+
+ Explain and demonstrate which of these eigenvalues is associated to the eigenvector \left[\begin{array}{cc} -1 \\ 2 \end{array}\right].
+
+
+
+
+
+ We can compute
+
+\left[\begin{array}{cc} -2 & -2 \\ 10 & 7 \end{array}\right]
+\left[\begin{array}{cc} -1 \\ 2 \end{array}\right] =
+\left[\begin{array}{cc} -2 \\ 4 \end{array}\right]
+ and
+2\left[\begin{array}{cc} -1 \\ 2 \end{array}\right] =
+\left[\begin{array}{cc} -2 \\ 4 \end{array}\right]
+
+ which shows that \left[\begin{array}{cc} -1 \\ 2 \end{array}\right] is an
+ eigenvector associated with the eigenvalue 2.
+
+
+
\ No newline at end of file
diff --git a/source/linear-algebra/source/meta/sample-exercises.ptx b/source/linear-algebra/source/meta/sample-exercises.ptx
index 3cda48a8b..7d97e37cc 100644
--- a/source/linear-algebra/source/meta/sample-exercises.ptx
+++ b/source/linear-algebra/source/meta/sample-exercises.ptx
@@ -28,7 +28,6 @@ for a complete solution.
-
From abc16b8bea387e55d3ff184d4b884df0c22cf694 Mon Sep 17 00:00:00 2001
From: Steven Clontz
Date: Mon, 6 Apr 2026 11:03:21 -0500
Subject: [PATCH 3/3] add activities
---
source/linear-algebra/source/05-GT/03.ptx | 43 +++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/source/linear-algebra/source/05-GT/03.ptx b/source/linear-algebra/source/05-GT/03.ptx
index d761497ad..c43db94a6 100644
--- a/source/linear-algebra/source/05-GT/03.ptx
+++ b/source/linear-algebra/source/05-GT/03.ptx
@@ -294,6 +294,19 @@ Thus the characteristic polynomial of A is
and its eigenvalues are the solutions -1,6 to \lambda^2-5\lambda-6=0.
+
+ In particular, we can see by
+
+ \left[\begin{array}{cc}1 & 2 \\ 5 & 4\end{array}\right]
+ \left[\begin{array}{c}1 \\-1\end{array}\right]
+ =
+ \left[\begin{array}{c}-1 \\1\end{array}\right]
+ =
+ -1\left[\begin{array}{c}1 \\-1\end{array}\right]
+
+ that \left[\begin{array}{c}1 \\-1\end{array}\right] is an eigenvector
+ associated with the eigenvalue -1.
+
@@ -304,14 +317,44 @@ Let A = \left[\begin{array}{cc} 5 & 2 \\ -3 & -2 \end{array}\right]
+
Compute \det (A-\lambda I) to determine the characteristic polynomial of A.
+
+
+
+ \lambda^2-3\lambda-4
+
+
+
Set this characteristic polynomial equal to zero and factor to determine the eigenvalues of A.
+
+
+
+ Solve \lambda^2-3\lambda-4=(\lambda-4)(\lambda+1)=0
+ to find \lambda=4,-1.
+
+
+
+
+
+
+Use technology to calculate \left[\begin{array}{cc} 5 & 2 \\ -3 & -2 \end{array}\right]\left[\begin{array}{c} 2 \\ -1 \end{array}\right] to determine
+which of these eigenvalues is associated to the eigenvector \left[\begin{array}{c} 2 \\ -1 \end{array}\right].
+
+
+
+
+ Since
+ \left[\begin{array}{cc} 5 & 2 \\ -3 & -2 \end{array}\right]\left[\begin{array}{c} 2 \\ -1 \end{array}\right]=\left[\begin{array}{c} 8 \\ -4 \end{array}\right]=4\left[\begin{array}{c} 2 \\ -1 \end{array}\right]
+ the associated eigenvalue is \lambda=4.
+
+