Is there a fast way to find such a 3d vector that is perpendicular to another 3d vector given $x,y,z$ and is same length that is efficient (no sqrt or $\cos$/$\sin$)? Like how in 2d such a vector is $(-y, x)$.
2026-03-31 17:24:04.1774977844
Find a perpendicular vector in 3D to another 3D vector with same length?
282 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in GEOMETRY
- Point in, on or out of a circle
- Find all the triangles $ABC$ for which the perpendicular line to AB halves a line segment
- How to see line bundle on $\mathbb P^1$ intuitively?
- An underdetermined system derived for rotated coordinate system
- Asymptotes of hyperbola
- Finding the range of product of two distances.
- Constrain coordinates of a point into a circle
- Position of point with respect to hyperbola
- Length of Shadow from a lamp?
- Show that the asymptotes of an hyperbola are its tangents at infinity points
Related Questions in 3D
- Visualization of Projective Space
- Approximate spline equation with Wolfram Mathematica
- Three-Dimensional coordinate system
- Volume of sphere split into eight sections?
- Largest Cube that fits the space between two Spheres?
- Is $ABC$ similar with $A'B'C'$, where $A', B', C'$ are the projections of $A, B, C $ on a plane $\pi $.
- Intersection of a facet and a plane
- Distance from center of sphere to apex of pyramid?
- Looking for hints on the below 3D geometry problem.
- Finding the Euler angle/axis from a 2 axes rotation but that lies on the original 2 axes' plane
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
If I understand correctly, you want to find an efficiently computable function $f$ mapping any vector $x$ to another vector $f(x)$ such that $\|x\| = \|f(x)\|$ and $x \cdot f(x) = 0$. Let's call $F$ the set of all such functions.
First off, I'd argue against square roots being inefficient, since modern processors can take square roots almost as fast as they can divide. Your best bet, if you're asking because you want to code something, is just to go for the necessary square root operation. Don't fall for premature optimization.
But to preserve the spirit of your question, I'll use an intuitive definition of "efficiency" by counting the number of operations performed except the four elementary operations addition, subtraction, multiplication and division. A computation is more efficient than another if it uses fewer nonelementary operations. I'll leave unspecified what nonelementary operations are allowed, in your case you'd probably allow operations such as square roots, sines and cosines.
For this definition, the answer to your question is No.
What I'll prove is that any appropriate function $f \in F$ is exactly as efficient to compute as the function $g$ that takes a vector and computes its length, by implementing $g$ in terms of $f$ and some $f_0 \in F$ in terms of $g$ by using only elementary operations (scalar products and cross products are composed from those):
$$g(x) = \frac{x \cdot (x \times f(x))}{x \cdot x}$$
$$f_0(x) = \frac{x \cdot x}{g(x \times (x \times v))} \cdot (x \times v)$$
Here $v$ is any nonzero constant vector of your choice. ($f_0$ is not defined if $x$ is parallel to $v$, but you can special-case that. This special-casing or discontinuity is unavoidable: due to the hairy ball theorem there cannot be any $f \in F$ defined continuously everywhere).
As you can see, for every implementation of every choice of $f \in F$ there is an equally efficient implementation of $g$ by computing $f$ first, then using the formula for $g$ in terms of $f$. The same holds vice versa: for every implementation of $g$ there is an equally efficient implementation of $f_0$ by computing $g$ first, then using the provided formula. Since $f_0 \in F$, the best implementation of $g$ is therefore just as efficient to compute as the best implementation of the best choice for $f$.
Now since dividing by length is not very efficient, computing length is therefore also not very efficient, so computing $g$ is not very efficient, therefore computing $f$ is also not very efficient, no matter how you do it and how you choose $f \in F$.
Edit: Made a mistake defining $g$ in terms of $f$. I don't know how to resolve that, so I'm not sure that my claim (that $g$ and $f$ have the same efficiency) is even correct anymore.