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

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 4K views
johnstobbart
Messages
22
Reaction score
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}<br /> x = x' cos \theta - y' sin \theta\\<br /> y = x' sin \theta + y'cos \theta<br /> \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 = <br /> \begin{bmatrix}<br /> cos \theta & -sin \theta\\<br /> sin \theta & cos\theta<br /> \end{bmatrix}[/tex]
I form two more matrices, ##A_1## and ##A_2##.

[tex] Let A_1 = <br /> \begin{bmatrix}<br /> x & -sin \theta\\<br /> y & cos\theta<br /> \end{bmatrix}[/tex]
[tex] Let A_2 = <br /> \begin{bmatrix}<br /> cos \theta & x\\<br /> sin \theta & y<br /> \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}\\<br /> 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:
on Phys.org
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}<br /> x = x' cos \theta - y' sin \theta\\<br /> y = x' sin \theta + y'cos \theta<br /> \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 = <br /> \begin{bmatrix}<br /> cos \theta & -sin \theta\\<br /> sin \theta & cos\theta<br /> \end{bmatrix}[/tex]
I form two more matrices, ##A_1## and ##A_2##.

[tex] Let A_1 = <br /> \begin{bmatrix}<br /> x & -sin \theta\\<br /> y & cos\theta<br /> \end{bmatrix}[/tex]
[tex] Let A_2 = <br /> \begin{bmatrix}<br /> cos \theta & x\\<br /> sin \theta & y<br /> \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}\\<br /> 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.
 
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.
 
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].