I understand the concept of projecting vectors onto the span of a vector but I'm having trouble projecting functions i.e How would I project the function cos(x) onto the vector that spans (1,1)?
2026-04-02 09:06:49.1775120809
Projecting functions onto planes
1.8k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in LINEAR-ALGEBRA
- An underdetermined system derived for rotated coordinate system
- How to prove the following equality with matrix norm?
- Alternate basis for a subspace of $\mathcal P_3(\mathbb R)$?
- Why the derivative of $T(\gamma(s))$ is $T$ if this composition is not a linear transformation?
- Why is necessary ask $F$ to be infinite in order to obtain: $ f(v)=0$ for all $ f\in V^* \implies v=0 $
- I don't understand this $\left(\left[T\right]^B_C\right)^{-1}=\left[T^{-1}\right]^C_B$
- Summation in subsets
- $C=AB-BA$. If $CA=AC$, then $C$ is not invertible.
- Basis of span in $R^4$
- Prove if A is regular skew symmetric, I+A is regular (with obstacles)
Related Questions in EDUCATION
- Good ideas for communicating the joy of mathematics to nine and ten year olds
- Is method of exhaustion the same as numerical integration?
- How do you prevent being lead astray when you're working on a problem that takes months/years?
- Is there a formula containing index of π (exclude index 1)
- How deep do you have to go before you can contribute to the research frontier
- What are the mathematical topics most essential for an applied mathematician?
- i'm 15 and I really want to start learning calculus, I know geometry, a little trig, and algebra 1 and 2 what is the best way to go about this?
- How to self teach math? (when you have other academic commitments)
- The Ideal First Year Undergraduate Curriculum for a Mathematics Autodidact
- How to solve 1^n=1 for n=0?
Related Questions in LINEAR-TRANSFORMATIONS
- Unbounded linear operator, projection from graph not open
- I don't understand this $\left(\left[T\right]^B_C\right)^{-1}=\left[T^{-1}\right]^C_B$
- A different way to define homomorphism.
- Linear algebra: what is the purpose of passive transformation matrix?
- Find matrix representation based on two vector transformations
- Is $A$ satisfying ${A^2} = - I$ similar to $\left[ {\begin{smallmatrix} 0&I \\ { - I}&0 \end{smallmatrix}} \right]$?
- Let $T:V\to W$ on finite dimensional vector spaces, is it possible to use the determinant to determine that $T$ is invertible.
- Basis-free proof of the fact that traceless linear maps are sums of commutators
- Assuming that A is the matrix of a linear operator F in S find the matrix B of F in R
- For what $k$ is $g_k\circ f_k$ invertible?
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?
You have a function $y=f(x)$ and want to rotate the graph by angle $\theta$ use a rotation matrix. For your example, you want to rotate by $-\pi/4$.
Start with a point on your graph $\mathbf{x}=(x,f(x))$ and use the rotation matrix: $$ R(\theta)=\left[\begin{array}{cc} \cos\theta & -\sin\theta\\ \sin\theta & \cos\theta \end{array}\right]. $$ You desired "projection" is multiplication of the matrix and vector $R(\theta)\mathbf{x}$.
For example, if $f(x)=x+1$ and we want to project onto the 45 degree diagonal line:
$$ \frac{\sqrt{2}}{2}\left[\begin{array}{cc} 1 & 1\\ -1 & 1 \end{array}\right]\cdot \left[\begin{array}{cc} x\\ x+1 \end{array}\right] =\frac{\sqrt{2}}{2} \left[\begin{array}{cc} 2x+1\\ 1 \end{array}\right]. $$ These are the new coordinates. For example the point $(0,1)$ gets projected onto $(\frac{\sqrt{2}}{2},\frac{\sqrt{2}}{2})$.
Note that this isn't really a true "projection". For example, rotating the graph of $\cos(x)$ by $90^\circ$ is very different from projecting it onto the $y-$axis!
Now if you want to do a "true orthogonal projection", here is a method that should work. We are going to use the above method to rotate, then we'll take only the first coordinate of the rotation. This will be the distance from the origin along the line that we want to project on.
Let's say that $(x,f(x))$ gets rotated to $(m(x),n(x))$ using the method above. We only need the $m(x)$ coordinate as that is the location along the line in the perpendicular direction from the graph of the function $f$. We know the coordinates of the point on the line is given by $(c,\frac{b}{a}c)$ for some $c$ (so long as $a\neq0$). We can use the Pythagorean theorem to solve for $c$:
$$ c=\frac{a}{\sqrt{a^2+b^2}}m(x) $$ so long as $a\neq0$.
For example, $f(x)=\cos(x)$, if we want to project it onto the $y-$axis, then we can rotate it $-90^\circ$:
$$ \left[\begin{array}{cc} 0 & 1\\ -1 & 0 \end{array}\right]\cdot \left[\begin{array}{cc} x\\ \cos(x) \end{array}\right] =\left[\begin{array}{cc} \cos(x)\\ -x \end{array}\right]. $$
We only want the $\cos(x)$ part (the new "horizontal" coordinate relative to the line's orientation. But this is an easy case since we are done as this is just our new $y$ coordinate and the $x$ coordinates are all zero. We are on the $y-$axis! So this is a bit trivial when $a=0$. The point $(x,\cos(x))$ gets projected onto $(0,\cos(x))$.
Let's project $f(x)=x^2$ onto the line given by $-30^\circ$. So we want to rotate our graph by $30^\circ$. This gives us $m(x)=(x\sqrt{3}-x^2)/2$ as the position along our oriented line. Converting that into standard Euclidean coordinates gives the mapping:
$$ (x,f(x)) \longrightarrow (c,\frac{b}{a}c) \\ (x,x^2) \longrightarrow \frac{1}{4}\left( x-\sqrt{3}x^2, -\sqrt{3}x+x^2 \right) $$
Note that starting at the origin and going along the curve $f(x)=x^2$, the projection initially moves along the line into the IV$^{th}$ quadrant but then turns around and goes towards infinity in the II$^{nd}$ quadrant.
There is probably an easier way to do this, but this seems to work. You can plot a graph of the function and the line and rotate it to convince yourself it seems right.