I want a simple and intuitive way of solving for $t$ given that $\mathbf{i},\, \mathbf{j},\, \mathbf{k}$ are the unit vectors in $\mathbf{R}^3$. $$ 5 = (2 \mathbf{i} - 3 \mathbf{k} + (\mathbf{i} - \mathbf{j} + \mathbf{k})\, t)\cdot(2 \mathbf{i} + 3 \mathbf{j} + 4 \mathbf{k}) $$ I want to point out that I often get equations provided like this and I am not looking to solve it. I do understand that $(4-12+t\,(2-3-4))=5$ provides me with the answer 13/5. Now I am simply interested in solving this with as little as possible transformation of the expressions.
Asked
Active
Viewed 425 times
0
-
a quick simple and intuitive way would do! – ALEXANDER May 05 '15 at 10:13
1 Answers
3
i = {1, 0, 0};
j = {0, 1, 0};
k = {0, 0, 1};
Solve[5 == (2 i - 3 k + (i - j + k) t).(2 i + 3 j + 4 k), t]
(* {{t -> 13/3}} *)
David G. Stork
- 41,180
- 3
- 34
- 96
-
How does mathematica know to match terms when using the dot. I thought that it was the case that i needed to use {} to be able to use the dot product – ALEXANDER May 05 '15 at 10:24
-
Mathematica substitutes the (list) values for $i$, $j$, and $k$ when executing
Solve. – David G. Stork May 05 '15 at 10:27 -
One could also do
{i, j, k} = IdentityMatrix[3];, or useUnitVector[]… – J. M.'s missing motivation May 05 '15 at 11:45 -
@Guesswhoitis. That's what I did in the answer of which this is a duplicate... – Jens May 05 '15 at 17:19