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

AI Thread Summary
The discussion revolves around using Cramer's rule to solve for x' and y' in terms of x and y based on a rotation transformation. The user forms matrices A, A1, and A2 to compute the determinants necessary for applying Cramer's rule. They correctly calculate the determinants, leading to the expressions for x' and y' as x' = (x cos θ + y sin θ) and y' = (y cos θ - x sin θ). A reminder is provided to verify the solutions by substituting them back into the original equations, emphasizing the importance of checking work in linear algebra. The transformation represents a rotation of coordinates, which is clarified in the context of moving from (x, y) to (x', y').
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.

<br /> \begin{cases}<br /> x = x&#039; cos \theta - y&#039; sin \theta\\<br /> y = x&#039; sin \theta + y&#039;cos \theta<br /> \end{cases}<br />

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##.

<br /> Let A = <br /> \begin{bmatrix}<br /> cos \theta &amp; -sin \theta\\<br /> sin \theta &amp; cos\theta<br /> \end{bmatrix}<br />
I form two more matrices, ##A_1## and ##A_2##.

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

<br /> x&#039; = \frac{det(A_1)}{det A} = \frac{x cos \theta + y sin \theta}{1}\\<br /> y&#039; = \frac{det(A_2)}{det A} = \frac{y cos \theta - x sin \theta}{1}<br />

Can anyone tell me if I'm on the right track for this problem?
 
Last edited:
Physics news 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.

<br /> \begin{cases}<br /> x = x&#039; cos \theta - y&#039; sin \theta\\<br /> y = x&#039; sin \theta + y&#039;cos \theta<br /> \end{cases}<br />

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##.

<br /> Let A = <br /> \begin{bmatrix}<br /> cos \theta &amp; -sin \theta\\<br /> sin \theta &amp; cos\theta<br /> \end{bmatrix}<br />
I form two more matrices, ##A_1## and ##A_2##.

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

<br /> x&#039; = \frac{det(A_1)}{det A} = \frac{x cos \theta + y sin \theta}{1}\\<br /> y&#039; = \frac{det(A_2)}{det A} = \frac{y cos \theta - x sin \theta}{1}<br />

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,
x= x&#039;cos(\theta)- y&#039;sin(\theta)
y= x&#039;sin(\theta)+ y&#039;cos(\theta)

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

x&#039;= xcos(-\theta)- y sin(-\theta)= xcos(\theta)+ ysin(\theta),
y&#039;= xsin(-\theta)+ ycos(-\theta)= -x sin(\theta)+ y cos(\theta).
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top