Bird
0
0

What will be the shape of the eigenvectors matrix returned by eig for a 3x3 matrix?

medium📝 Predict Output Q5 of 15
SciPy - Linear Algebra (scipy.linalg)
What will be the shape of the eigenvectors matrix returned by eig for a 3x3 matrix?
A(9, 1)
B(3, 3)
C(3,)
D(1, 3)
Step-by-Step Solution
Solution:
  1. Step 1: Understand eigenvectors output shape

    For an n x n matrix, eig returns eigenvectors as an n x n matrix.
  2. Step 2: Apply to 3x3 matrix

    So, for 3x3 input, eigenvectors shape is (3, 3).
  3. Final Answer:

    (3, 3) -> Option B
  4. Quick Check:

    Eigenvectors shape = (n, n) for n x n matrix [OK]
Quick Trick: Eigenvectors matrix shape matches input matrix size squared [OK]
Common Mistakes:
MISTAKES
  • Expecting eigenvectors as 1D array
  • Confusing shape with flattened vector
  • Assuming shape is (n, 1) or (1, n)

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SciPy Quizzes