Linear Algebra, Cramers Rule - Solving for unknowns in a matrix

In summary: Which, you can verify, satisfies the original equations.In summary, we can solve for x' and y' in terms of x and y using Cramer's rule. By forming matrices based on the right-hand side of the equations and finding their determinants, we can use Cramer's rule to find the values of x' and y'. It is also important to check our solutions by substituting them in the original equations. In this case, we see that the proposed solution satisfies the original equations, confirming our solution.
  • #1
johnstobbart
22
0
Hello everyone, I have a linear algebra question regarding Cramer's rule.

Homework Statement



Using Cramer's rule, solve for x' and y' in terms of x and y.

[tex]
\begin{cases}
x = x' cos \theta - y' sin \theta\\
y = x' sin \theta + y'cos \theta
\end{cases}
[/tex]

2. Homework Equations

##sin^2 \theta + cos^2 \theta = 1 ##

The Attempt at a Solution



I need a matrix to start off, so I form a matrix based on the right-hand side of x and y. I'm assuming that x' and y' are just alternative ways of writing ##x_1## and ##x_2##.

[tex]
Let A =
\begin{bmatrix}
cos \theta & -sin \theta\\
sin \theta & cos\theta
\end{bmatrix}
[/tex]
I form two more matrices, ##A_1## and ##A_2##.

[tex]
Let A_1 =
\begin{bmatrix}
x & -sin \theta\\
y & cos\theta
\end{bmatrix}
[/tex]
[tex]
Let A_2 =
\begin{bmatrix}
cos \theta & x\\
sin \theta & y
\end{bmatrix}
[/tex]
I then find ##det(A)##. I get ##cos^2 \theta + sin^2 \theta ## which is ##1##.
##det(A_1) = x cos \theta + y sin \theta##
##det(A_2) = y cos \theta - x sin \theta##
Lastly, I need to find the value of ##x'## and ##y'##, using Cramer's Rule.

[tex]
x' = \frac{det(A_1)}{det A} = \frac{x cos \theta + y sin \theta}{1}\\
y' = \frac{det(A_2)}{det A} = \frac{y cos \theta - x sin \theta}{1}
[/tex]

Can anyone tell me if I'm on the right track for this problem?
 
Last edited:
Physics news on Phys.org
  • #2
johnstobbart said:
Hello everyone, I have a linear algebra question regarding Cramer's rule.

Homework Statement



Using Cramer's rule, solve for x' and y' in terms of x and y.

[tex]
\begin{cases}
x = x' cos \theta - y' sin \theta\\
y = x' sin \theta + y'cos \theta
\end{cases}
[/tex]

2. Homework Equations

##sin^2 \theta + cos^2 \theta = 1 ##

The Attempt at a Solution



I need a matrix to start off, so I form a matrix based on the right-hand side of x and y. I'm assuming that x' and y' are just alternative ways of writing ##x_1## and ##x_2##.

[tex]
Let A =
\begin{bmatrix}
cos \theta & -sin \theta\\
sin \theta & cos\theta
\end{bmatrix}
[/tex]
I form two more matrices, ##A_1## and ##A_2##.

[tex]
Let A_1 =
\begin{bmatrix}
x & -sin \theta\\
y & cos\theta
\end{bmatrix}
[/tex]
[tex]
Let A_2 =
\begin{bmatrix}
cos \theta & x\\
sin \theta & y
\end{bmatrix}
[/tex]
I then find ##det(A)##. I get ##cos^2 \theta + sin^2 \theta ## which is ##1##.
##det(A_1) = x cos \theta + y sin \theta##
##det(A_2) = y cos \theta - x sin \theta##
Lastly, I need to find the value of ##x'## and ##y'##, using Cramer's Rule.

[tex]
x' = \frac{det(A_1)}{det A} = \frac{x cos \theta + y sin \theta}{1}\\
y' = \frac{det(A_2)}{det A} = \frac{y cos \theta - x sin \theta}{1}
[/tex]

Can anyone tell me if I'm on the right track for this problem?

A good working rule to learn is: check it for yourself, by substituting your proposed solution in the original equations to see if it all works out.
 
  • #3
Ray Vickson said:
A good working rule to learn is: check it for yourself, by substituting your proposed solution in the original equations to see if it all works out.

Ray, I completely forgot about being able to check questions like these. I want to sincerely thank you for reminding me of this rule.
 
  • #4
By the way, the original equations,
[itex]x= x'cos(\theta)- y'sin(\theta)[/itex]
[itex]y= x'sin(\theta)+ y'cos(\theta)[/itex]

give the (x, y) coordinates of point (x', y') after a rotation through angle [itex]\theta[/itex], clockwise, around the origin. Going from (x, y) back to (x', y') is just a rotation in the opposite direction. So

[itex]x'= xcos(-\theta)- y sin(-\theta)= xcos(\theta)+ ysin(\theta)[/itex],
[itex]y'= xsin(-\theta)+ ycos(-\theta)= -x sin(\theta)+ y cos(\theta)[/itex].
 

1. What is linear algebra?

Linear algebra is a branch of mathematics that deals with the study of linear equations, vector spaces, and matrices. It is used to solve systems of linear equations and to represent transformations in geometric spaces.

2. How is linear algebra used in scientific research?

Linear algebra is used in various fields of science, such as physics, engineering, and computer science. It is used to model and solve problems involving large amounts of data, such as in machine learning and data analysis. It is also used in the development of algorithms and computer graphics.

3. What is Cramer's Rule?

Cramer's Rule is a method for solving a system of linear equations by using determinants. It states that the solution to a system of linear equations can be found by calculating the ratio of two determinants where each determinant is formed by replacing the coefficients of the unknown variables with the constants in the system.

4. How is Cramer's Rule used to solve for unknowns in a matrix?

To solve for unknowns in a matrix, Cramer's Rule is used by calculating the determinants of the coefficient matrix and the constant matrix. Then, the ratio between the two determinants is calculated, giving the values for the unknown variables in the system of equations.

5. What are the limitations of Cramer's Rule?

Cramer's Rule can only be used to solve systems of linear equations with the same number of equations as variables. It also becomes computationally expensive when dealing with larger matrices and can be less accurate when dealing with systems of equations with small, non-zero determinants.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
31
Views
2K
  • Precalculus Mathematics Homework Help
Replies
14
Views
240
  • Precalculus Mathematics Homework Help
Replies
9
Views
2K
  • Precalculus Mathematics Homework Help
Replies
7
Views
1K
  • Precalculus Mathematics Homework Help
Replies
16
Views
4K
  • Quantum Physics
Replies
12
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
8
Views
991
  • Precalculus Mathematics Homework Help
Replies
24
Views
2K
  • Precalculus Mathematics Homework Help
Replies
1
Views
1K
Back
Top