How to Find A Shear Matrix in 3D?
In particular, I'm struggling with this question:
Give me a rotational matrix, a scaling matrix, or a reflection matrix and I can provide it quite easily. No online resources I've found give me much information on how to find a 3D shear matrix. I even tried asking this question on Chegg and I got a dead wrong answer. Because one thing I do KNOW about shear matrices from 2D is that they preserve area and that can be applied to any dimension so in $R^3$ the volume is preserved. And the "expert" on Chegg said the volume goes to 0, which is obviously not true!
So I'm hoping I'll find better luck asking it here. Thanks in advance!
linear-algebra matrices linear-transformations 3d
add a comment |
In particular, I'm struggling with this question:
Give me a rotational matrix, a scaling matrix, or a reflection matrix and I can provide it quite easily. No online resources I've found give me much information on how to find a 3D shear matrix. I even tried asking this question on Chegg and I got a dead wrong answer. Because one thing I do KNOW about shear matrices from 2D is that they preserve area and that can be applied to any dimension so in $R^3$ the volume is preserved. And the "expert" on Chegg said the volume goes to 0, which is obviously not true!
So I'm hoping I'll find better luck asking it here. Thanks in advance!
linear-algebra matrices linear-transformations 3d
Think about what a typical shear matrix (larger than $2times 2$) looks like. An upper triangular matrix with $1$ along the diagonal and very few non-zero entries otherwise.
– Arthur
Dec 3 '18 at 7:29
I am aware. How do you algebraically find the non-zero entries?
– Alex
Dec 3 '18 at 7:31
add a comment |
In particular, I'm struggling with this question:
Give me a rotational matrix, a scaling matrix, or a reflection matrix and I can provide it quite easily. No online resources I've found give me much information on how to find a 3D shear matrix. I even tried asking this question on Chegg and I got a dead wrong answer. Because one thing I do KNOW about shear matrices from 2D is that they preserve area and that can be applied to any dimension so in $R^3$ the volume is preserved. And the "expert" on Chegg said the volume goes to 0, which is obviously not true!
So I'm hoping I'll find better luck asking it here. Thanks in advance!
linear-algebra matrices linear-transformations 3d
In particular, I'm struggling with this question:
Give me a rotational matrix, a scaling matrix, or a reflection matrix and I can provide it quite easily. No online resources I've found give me much information on how to find a 3D shear matrix. I even tried asking this question on Chegg and I got a dead wrong answer. Because one thing I do KNOW about shear matrices from 2D is that they preserve area and that can be applied to any dimension so in $R^3$ the volume is preserved. And the "expert" on Chegg said the volume goes to 0, which is obviously not true!
So I'm hoping I'll find better luck asking it here. Thanks in advance!
linear-algebra matrices linear-transformations 3d
linear-algebra matrices linear-transformations 3d
asked Dec 3 '18 at 7:24
Alex
525
525
Think about what a typical shear matrix (larger than $2times 2$) looks like. An upper triangular matrix with $1$ along the diagonal and very few non-zero entries otherwise.
– Arthur
Dec 3 '18 at 7:29
I am aware. How do you algebraically find the non-zero entries?
– Alex
Dec 3 '18 at 7:31
add a comment |
Think about what a typical shear matrix (larger than $2times 2$) looks like. An upper triangular matrix with $1$ along the diagonal and very few non-zero entries otherwise.
– Arthur
Dec 3 '18 at 7:29
I am aware. How do you algebraically find the non-zero entries?
– Alex
Dec 3 '18 at 7:31
Think about what a typical shear matrix (larger than $2times 2$) looks like. An upper triangular matrix with $1$ along the diagonal and very few non-zero entries otherwise.
– Arthur
Dec 3 '18 at 7:29
Think about what a typical shear matrix (larger than $2times 2$) looks like. An upper triangular matrix with $1$ along the diagonal and very few non-zero entries otherwise.
– Arthur
Dec 3 '18 at 7:29
I am aware. How do you algebraically find the non-zero entries?
– Alex
Dec 3 '18 at 7:31
I am aware. How do you algebraically find the non-zero entries?
– Alex
Dec 3 '18 at 7:31
add a comment |
1 Answer
1
active
oldest
votes
A true shear matrix, according to Wikipedia, is an elementary matrix, and with only one non-zero off-diagonal entry, this cannot be done.
However, shear transformations are a bit more flexible. Specifically because they are not bound to shearing along the coordinate axes.
Note that there are infinitely many shear transformations $S$ for which
$$
Sbegin{bmatrix}a\b\cend{bmatrix} = begin{bmatrix}0\0\cend{bmatrix}tag{*}
$$
This is possibly what gives you trouble finding a solution; if you try to solve a problem algebraically and you don't know that there are infinitely many solutions, it's going to look like you're missing an equation somewhere. So, with that said, let's find one such transformation and the matrix representing it.
Firstly, I'm going to assume that $c neq 0$. That's because shears are invertible, and if $c = 0$, then by $(text *)$ we must also have $a = b = 0$, and this becomes quite a boring exercise.
Secondly, we clearly have
$$
Sbegin{bmatrix}a\b\0end{bmatrix} = begin{bmatrix}a\b\0end{bmatrix}
$$
but I will assume that
$$
Sbegin{bmatrix}x\y\0end{bmatrix} = begin{bmatrix}x\y\0end{bmatrix}
$$
for all $x, y$. This is where the multiple solutions come in. If you make a basis $(u, v)$ for the $xy$-plane where $u = [a, b, 0]^T$, then $Su = u$, but we know very little about $Sv$. I assume here that $Sv = v$ as well, but we have no indication in the problem text whether this is so. $Sv$ doesn't even have to be in the $xy$-plane.
So, with this, we are ready to begin making a matrix of $S$:
$$
S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}
$$
And I believe you can fill in the two missing numbers by using $(text *)$.
Note that expressing this matrix in a basis where $[a, b, 0]^T$ and $[0, 0, 1]^T$ (or constant multiples of these) are two of the basis vectors, this transformation $S$ will have the elementary form required in the Wikipedia article on shear matrices.
1
I figured it out! I took your $S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}$ Then substituted the 2 unknowns with x and y: $S = begin{bmatrix}1&0&x\0&1&y\0&0&1end{bmatrix}$ We have the vector $v =begin{bmatrix}a\b\cend{bmatrix}$ With $Sv=v'$ we get $begin{bmatrix}a+xc\b+yc\cend{bmatrix}$ Of course we are trying to solve for $v' = begin{bmatrix}0\0\cend{bmatrix}$ The $c$ is already done, but we still need to solve for $a+xc=0$ and $b+yc = 0$. Where with a little algebra you get $x=-frac{a}{c}$ and $y=-frac{b}{c}$ And we are done! Is this what you were going for?
– Alex
Dec 4 '18 at 0:47
1
@Alex Great work!
– Arthur
Dec 4 '18 at 6:54
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3023743%2fhow-to-find-a-shear-matrix-in-3d%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
A true shear matrix, according to Wikipedia, is an elementary matrix, and with only one non-zero off-diagonal entry, this cannot be done.
However, shear transformations are a bit more flexible. Specifically because they are not bound to shearing along the coordinate axes.
Note that there are infinitely many shear transformations $S$ for which
$$
Sbegin{bmatrix}a\b\cend{bmatrix} = begin{bmatrix}0\0\cend{bmatrix}tag{*}
$$
This is possibly what gives you trouble finding a solution; if you try to solve a problem algebraically and you don't know that there are infinitely many solutions, it's going to look like you're missing an equation somewhere. So, with that said, let's find one such transformation and the matrix representing it.
Firstly, I'm going to assume that $c neq 0$. That's because shears are invertible, and if $c = 0$, then by $(text *)$ we must also have $a = b = 0$, and this becomes quite a boring exercise.
Secondly, we clearly have
$$
Sbegin{bmatrix}a\b\0end{bmatrix} = begin{bmatrix}a\b\0end{bmatrix}
$$
but I will assume that
$$
Sbegin{bmatrix}x\y\0end{bmatrix} = begin{bmatrix}x\y\0end{bmatrix}
$$
for all $x, y$. This is where the multiple solutions come in. If you make a basis $(u, v)$ for the $xy$-plane where $u = [a, b, 0]^T$, then $Su = u$, but we know very little about $Sv$. I assume here that $Sv = v$ as well, but we have no indication in the problem text whether this is so. $Sv$ doesn't even have to be in the $xy$-plane.
So, with this, we are ready to begin making a matrix of $S$:
$$
S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}
$$
And I believe you can fill in the two missing numbers by using $(text *)$.
Note that expressing this matrix in a basis where $[a, b, 0]^T$ and $[0, 0, 1]^T$ (or constant multiples of these) are two of the basis vectors, this transformation $S$ will have the elementary form required in the Wikipedia article on shear matrices.
1
I figured it out! I took your $S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}$ Then substituted the 2 unknowns with x and y: $S = begin{bmatrix}1&0&x\0&1&y\0&0&1end{bmatrix}$ We have the vector $v =begin{bmatrix}a\b\cend{bmatrix}$ With $Sv=v'$ we get $begin{bmatrix}a+xc\b+yc\cend{bmatrix}$ Of course we are trying to solve for $v' = begin{bmatrix}0\0\cend{bmatrix}$ The $c$ is already done, but we still need to solve for $a+xc=0$ and $b+yc = 0$. Where with a little algebra you get $x=-frac{a}{c}$ and $y=-frac{b}{c}$ And we are done! Is this what you were going for?
– Alex
Dec 4 '18 at 0:47
1
@Alex Great work!
– Arthur
Dec 4 '18 at 6:54
add a comment |
A true shear matrix, according to Wikipedia, is an elementary matrix, and with only one non-zero off-diagonal entry, this cannot be done.
However, shear transformations are a bit more flexible. Specifically because they are not bound to shearing along the coordinate axes.
Note that there are infinitely many shear transformations $S$ for which
$$
Sbegin{bmatrix}a\b\cend{bmatrix} = begin{bmatrix}0\0\cend{bmatrix}tag{*}
$$
This is possibly what gives you trouble finding a solution; if you try to solve a problem algebraically and you don't know that there are infinitely many solutions, it's going to look like you're missing an equation somewhere. So, with that said, let's find one such transformation and the matrix representing it.
Firstly, I'm going to assume that $c neq 0$. That's because shears are invertible, and if $c = 0$, then by $(text *)$ we must also have $a = b = 0$, and this becomes quite a boring exercise.
Secondly, we clearly have
$$
Sbegin{bmatrix}a\b\0end{bmatrix} = begin{bmatrix}a\b\0end{bmatrix}
$$
but I will assume that
$$
Sbegin{bmatrix}x\y\0end{bmatrix} = begin{bmatrix}x\y\0end{bmatrix}
$$
for all $x, y$. This is where the multiple solutions come in. If you make a basis $(u, v)$ for the $xy$-plane where $u = [a, b, 0]^T$, then $Su = u$, but we know very little about $Sv$. I assume here that $Sv = v$ as well, but we have no indication in the problem text whether this is so. $Sv$ doesn't even have to be in the $xy$-plane.
So, with this, we are ready to begin making a matrix of $S$:
$$
S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}
$$
And I believe you can fill in the two missing numbers by using $(text *)$.
Note that expressing this matrix in a basis where $[a, b, 0]^T$ and $[0, 0, 1]^T$ (or constant multiples of these) are two of the basis vectors, this transformation $S$ will have the elementary form required in the Wikipedia article on shear matrices.
1
I figured it out! I took your $S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}$ Then substituted the 2 unknowns with x and y: $S = begin{bmatrix}1&0&x\0&1&y\0&0&1end{bmatrix}$ We have the vector $v =begin{bmatrix}a\b\cend{bmatrix}$ With $Sv=v'$ we get $begin{bmatrix}a+xc\b+yc\cend{bmatrix}$ Of course we are trying to solve for $v' = begin{bmatrix}0\0\cend{bmatrix}$ The $c$ is already done, but we still need to solve for $a+xc=0$ and $b+yc = 0$. Where with a little algebra you get $x=-frac{a}{c}$ and $y=-frac{b}{c}$ And we are done! Is this what you were going for?
– Alex
Dec 4 '18 at 0:47
1
@Alex Great work!
– Arthur
Dec 4 '18 at 6:54
add a comment |
A true shear matrix, according to Wikipedia, is an elementary matrix, and with only one non-zero off-diagonal entry, this cannot be done.
However, shear transformations are a bit more flexible. Specifically because they are not bound to shearing along the coordinate axes.
Note that there are infinitely many shear transformations $S$ for which
$$
Sbegin{bmatrix}a\b\cend{bmatrix} = begin{bmatrix}0\0\cend{bmatrix}tag{*}
$$
This is possibly what gives you trouble finding a solution; if you try to solve a problem algebraically and you don't know that there are infinitely many solutions, it's going to look like you're missing an equation somewhere. So, with that said, let's find one such transformation and the matrix representing it.
Firstly, I'm going to assume that $c neq 0$. That's because shears are invertible, and if $c = 0$, then by $(text *)$ we must also have $a = b = 0$, and this becomes quite a boring exercise.
Secondly, we clearly have
$$
Sbegin{bmatrix}a\b\0end{bmatrix} = begin{bmatrix}a\b\0end{bmatrix}
$$
but I will assume that
$$
Sbegin{bmatrix}x\y\0end{bmatrix} = begin{bmatrix}x\y\0end{bmatrix}
$$
for all $x, y$. This is where the multiple solutions come in. If you make a basis $(u, v)$ for the $xy$-plane where $u = [a, b, 0]^T$, then $Su = u$, but we know very little about $Sv$. I assume here that $Sv = v$ as well, but we have no indication in the problem text whether this is so. $Sv$ doesn't even have to be in the $xy$-plane.
So, with this, we are ready to begin making a matrix of $S$:
$$
S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}
$$
And I believe you can fill in the two missing numbers by using $(text *)$.
Note that expressing this matrix in a basis where $[a, b, 0]^T$ and $[0, 0, 1]^T$ (or constant multiples of these) are two of the basis vectors, this transformation $S$ will have the elementary form required in the Wikipedia article on shear matrices.
A true shear matrix, according to Wikipedia, is an elementary matrix, and with only one non-zero off-diagonal entry, this cannot be done.
However, shear transformations are a bit more flexible. Specifically because they are not bound to shearing along the coordinate axes.
Note that there are infinitely many shear transformations $S$ for which
$$
Sbegin{bmatrix}a\b\cend{bmatrix} = begin{bmatrix}0\0\cend{bmatrix}tag{*}
$$
This is possibly what gives you trouble finding a solution; if you try to solve a problem algebraically and you don't know that there are infinitely many solutions, it's going to look like you're missing an equation somewhere. So, with that said, let's find one such transformation and the matrix representing it.
Firstly, I'm going to assume that $c neq 0$. That's because shears are invertible, and if $c = 0$, then by $(text *)$ we must also have $a = b = 0$, and this becomes quite a boring exercise.
Secondly, we clearly have
$$
Sbegin{bmatrix}a\b\0end{bmatrix} = begin{bmatrix}a\b\0end{bmatrix}
$$
but I will assume that
$$
Sbegin{bmatrix}x\y\0end{bmatrix} = begin{bmatrix}x\y\0end{bmatrix}
$$
for all $x, y$. This is where the multiple solutions come in. If you make a basis $(u, v)$ for the $xy$-plane where $u = [a, b, 0]^T$, then $Su = u$, but we know very little about $Sv$. I assume here that $Sv = v$ as well, but we have no indication in the problem text whether this is so. $Sv$ doesn't even have to be in the $xy$-plane.
So, with this, we are ready to begin making a matrix of $S$:
$$
S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}
$$
And I believe you can fill in the two missing numbers by using $(text *)$.
Note that expressing this matrix in a basis where $[a, b, 0]^T$ and $[0, 0, 1]^T$ (or constant multiples of these) are two of the basis vectors, this transformation $S$ will have the elementary form required in the Wikipedia article on shear matrices.
answered Dec 3 '18 at 11:25
Arthur
110k7105186
110k7105186
1
I figured it out! I took your $S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}$ Then substituted the 2 unknowns with x and y: $S = begin{bmatrix}1&0&x\0&1&y\0&0&1end{bmatrix}$ We have the vector $v =begin{bmatrix}a\b\cend{bmatrix}$ With $Sv=v'$ we get $begin{bmatrix}a+xc\b+yc\cend{bmatrix}$ Of course we are trying to solve for $v' = begin{bmatrix}0\0\cend{bmatrix}$ The $c$ is already done, but we still need to solve for $a+xc=0$ and $b+yc = 0$. Where with a little algebra you get $x=-frac{a}{c}$ and $y=-frac{b}{c}$ And we are done! Is this what you were going for?
– Alex
Dec 4 '18 at 0:47
1
@Alex Great work!
– Arthur
Dec 4 '18 at 6:54
add a comment |
1
I figured it out! I took your $S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}$ Then substituted the 2 unknowns with x and y: $S = begin{bmatrix}1&0&x\0&1&y\0&0&1end{bmatrix}$ We have the vector $v =begin{bmatrix}a\b\cend{bmatrix}$ With $Sv=v'$ we get $begin{bmatrix}a+xc\b+yc\cend{bmatrix}$ Of course we are trying to solve for $v' = begin{bmatrix}0\0\cend{bmatrix}$ The $c$ is already done, but we still need to solve for $a+xc=0$ and $b+yc = 0$. Where with a little algebra you get $x=-frac{a}{c}$ and $y=-frac{b}{c}$ And we are done! Is this what you were going for?
– Alex
Dec 4 '18 at 0:47
1
@Alex Great work!
– Arthur
Dec 4 '18 at 6:54
1
1
I figured it out! I took your $S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}$ Then substituted the 2 unknowns with x and y: $S = begin{bmatrix}1&0&x\0&1&y\0&0&1end{bmatrix}$ We have the vector $v =begin{bmatrix}a\b\cend{bmatrix}$ With $Sv=v'$ we get $begin{bmatrix}a+xc\b+yc\cend{bmatrix}$ Of course we are trying to solve for $v' = begin{bmatrix}0\0\cend{bmatrix}$ The $c$ is already done, but we still need to solve for $a+xc=0$ and $b+yc = 0$. Where with a little algebra you get $x=-frac{a}{c}$ and $y=-frac{b}{c}$ And we are done! Is this what you were going for?
– Alex
Dec 4 '18 at 0:47
I figured it out! I took your $S = begin{bmatrix}1&0&\0&1&\0&0&1end{bmatrix}$ Then substituted the 2 unknowns with x and y: $S = begin{bmatrix}1&0&x\0&1&y\0&0&1end{bmatrix}$ We have the vector $v =begin{bmatrix}a\b\cend{bmatrix}$ With $Sv=v'$ we get $begin{bmatrix}a+xc\b+yc\cend{bmatrix}$ Of course we are trying to solve for $v' = begin{bmatrix}0\0\cend{bmatrix}$ The $c$ is already done, but we still need to solve for $a+xc=0$ and $b+yc = 0$. Where with a little algebra you get $x=-frac{a}{c}$ and $y=-frac{b}{c}$ And we are done! Is this what you were going for?
– Alex
Dec 4 '18 at 0:47
1
1
@Alex Great work!
– Arthur
Dec 4 '18 at 6:54
@Alex Great work!
– Arthur
Dec 4 '18 at 6:54
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3023743%2fhow-to-find-a-shear-matrix-in-3d%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Think about what a typical shear matrix (larger than $2times 2$) looks like. An upper triangular matrix with $1$ along the diagonal and very few non-zero entries otherwise.
– Arthur
Dec 3 '18 at 7:29
I am aware. How do you algebraically find the non-zero entries?
– Alex
Dec 3 '18 at 7:31