Linear transformations: function arguments

In summary, a linear transformation is a function that maps inputs from one vector space to another. A function T from a vector space V to a vector space W also has to satisfy the condition ##T(ax+by)=aT(x)+bT(y)## for all x,y in V and all real numbers a,b.
  • #1
pamparana
128
0
I have a small confusion about functions and variables. So, on doing a bit of reading, a linear transformation is a function that maps inputs from one vector space to another.

So, let us take for example a simple rotation matrix. This matrix takes a point in 2D space and maps it to another point in this 2D space. So, this is fine and the argument to this rotation function is a 2D point.

Now, in many applications, we want to find the optimal rotation matrix i.e. we want to find the optimal angle [itex]\theta[/itex] to do the rotation. So, my question is can we view this rotation matrix now as a function of two variables i.e. [itex]\theta[/itex] and the input 2D point.

All the explanations seem to treat the angle of rotation as a constant or in our optimisation problem case some unknown (but constant) quantity to estimate. So, in most optimisation cases it will involve taking the derivative of the rotation matrix wrt to the variable of interest i.e. [itex]\theta[/itex] and I was wondering whether I can view the rotation matrix as a function of [itex]\theta[/itex] i.e. write it as [itex]R(\theta, p)[/itex] where [itex]R[/itex] is the rotation function and [itex]p[/itex] is the point in 2D space.
 
Physics news on Phys.org
  • #2
pamparana said:
I have a small confusion about functions and variables. So, on doing a bit of reading, a linear transformation is a function that maps inputs from one vector space to another.

So, let us take for example a simple rotation matrix. This matrix takes a point in 2D space and maps it to another point in this 2D space. So, this is fine and the argument to this rotation function is a 2D point.

Now, in many applications, we want to find the optimal rotation matrix i.e. we want to find the optimal angle [itex]\theta[/itex] to do the rotation. So, my question is can we view this rotation matrix now as a function of two variables i.e. [itex]\theta[/itex] and the input 2D point.

All the explanations seem to treat the angle of rotation as a constant or in our optimisation problem case some unknown (but constant) quantity to estimate. So, in most optimisation cases it will involve taking the derivative of the rotation matrix wrt to the variable of interest i.e. [itex]\theta[/itex] and I was wondering whether I can view the rotation matrix as a function of [itex]\theta[/itex] i.e. write it as [itex]R(\theta, p)[/itex] where [itex]R[/itex] is the rotation function and [itex]p[/itex] is the point in 2D space.
As you said, most explanations treat the angle of rotation as an unknown constant, or parameter, which means that θ isn't considered to be a variable. If θ is allowed to vary (as in the optimization problems you cite), the rotation matrix is a function of only this rotation angle θ.
 
  • Like
Likes 1 person
  • #3
Thanks for that explanation. As far as I understood, the optimisation is going (well, according to some local minima/maxima) to select the best rotation function which optimises the given cost function. So, in this case [itex]\theta[/itex] can be seen as a variable as we evaluate the cost function by varying [itex]\theta[/itex] continuously around the current value.
 
  • #4
pamparana said:
So, on doing a bit of reading, a linear transformation is a function that maps inputs from one vector space to another.
A function T from a vector space V to a vector space W also has to satisfy the condition ##T(ax+by)=aT(x)+bT(y)## for all x,y in V and all real numbers a,b.

pamparana said:
Now, in many applications, we want to find the optimal rotation matrix i.e. we want to find the optimal angle [itex]\theta[/itex] to do the rotation. So, my question is can we view this rotation matrix now as a function of two variables i.e. [itex]\theta[/itex] and the input 2D point.
...
I was wondering whether I can view the rotation matrix as a function of [itex]\theta[/itex] i.e. write it as [itex]R(\theta, p)[/itex] where [itex]R[/itex] is the rotation function and [itex]p[/itex] is the point in 2D space.
You can certainly define a function f by
$$f(\theta,x,y)=\begin{pmatrix}\cos\theta & -\sin\theta\\ \sin\theta & \cos\theta\end{pmatrix}\begin{pmatrix} x\\ y\end{pmatrix},$$ but if you're looking for the optimal angle for a given (x,y), you might prefer to to define functions ##f_{x,y}## (one for each (x,y)) by
$$f_{x,y}(\theta)=\begin{pmatrix}\cos\theta & -\sin\theta\\ \sin\theta & \cos\theta\end{pmatrix}\begin{pmatrix} x\\ y\end{pmatrix},$$
 
Last edited:
  • Like
Likes 1 person
  • #5
It is a misconception that linear matrices/operators that represent such transformations as rotation and shear take points as arguments. They take and produce vectors. These are affine transformations (D × D+1 matrices) that take and produce points.
 
Last edited:
  • #6
Incnis Mrsi said:
It is a misconception that linear matrices/operators that represent such transformations as rotation and shear take points as arguments. They take and produce vectors. These are affine transformations (D × D+1 matrices) that take and produce points.
"Point" is a standard term for elements of (the underlying sets of) topological spaces. All finite-dimensional vector spaces can be given a topology in a simple way. Hilbert spaces are equipped with inner produces, which are used to define topologies in a standard way. So unless you're talking about some very exotic vector space, vectors are points.

Some authors also use the term "point" to mean any element of any set. With that terminology, vectors are points even if you are talking about those exotic vector spaces.

Pamparana was talking about ##\mathbb R^2##, which is just a plane with vector space operations defined on it. So even if we ignore the stuff I said about topology, it's still more than OK to call those vectors points, because they are points in the sense of Euclidean geometry.
 
  • #7
points or vectors?

Fredrik said:
Pamparana was talking about ##\mathbb R^2##…
Didn’t spot the word “ℝ2”. Was my sight failed, or the browser maybe?

Fredrik said:
… because they are points in the sense of Euclidean geometry.
Ῑ’m not willing to stuff the thread with off-topic. Just notice: “matrix takes a point” is a (formally correct, but) counter-intuitive and confusingly ungeometric terminology.
 
  • #8
Incnis Mrsi said:
Didn’t spot the word “ℝ2”. Was my sight failed, or the browser maybe?
He said "point in 2D" space and then "2D point". So he was talking about ##\mathbb R^2## even though he never used that symbol.
 
  • #9
Fredrik: there is neither addition nor scalar multiplication for points on Euclidean plane, without an additional structure (such as distinguished point). ℝ2 defines a Euclidean plane, but an abstract Euclidean plane is neither ℝ2 nor a vector space.
 
  • #10
Incnis Mrsi said:
Fredrik: there is neither addition nor scalar multiplication for points on Euclidean plane, without an additional structure (such as distinguished point). ℝ2 defines a Euclidean plane, but an abstract Euclidean plane is neither ℝ2 nor a vector space.

Formally correct of course. But in the context, I think it's very clear that the OP meant ##\mathbb{R}^2##.
 

1. What is a linear transformation?

A linear transformation is a mathematical function that maps one set of values (called the domain) to another set of values (called the range) in a linear manner. This means that the output values are directly proportional to the input values.

2. How do you represent a linear transformation?

A linear transformation can be represented in different ways, but the most common is using a matrix. The matrix contains the coefficients that correspond to each input variable, and the output is calculated by multiplying the input values by the matrix.

3. What are the properties of a linear transformation?

There are four main properties of a linear transformation: additivity, homogeneity, preservation of the origin, and preservation of linear combinations. Additivity means that the transformation of a sum of two inputs is equal to the sum of the individual transformations. Homogeneity means that the transformation of a scalar multiple of an input is equal to the scalar multiple of the transformation of the input. Preservation of the origin means that the transformation of the zero vector is the zero vector. Preservation of linear combinations means that the transformation of a linear combination of inputs is equal to the same linear combination of the transformed inputs.

4. How do you determine if a function is a linear transformation?

To determine if a function is a linear transformation, you can check if it satisfies the four properties mentioned above. If it satisfies all four properties, then it is a linear transformation. You can also represent the function as a matrix and check if it follows the rules of matrix multiplication.

5. What are some applications of linear transformations in science?

Linear transformations have various applications in science, including data analysis, image processing, and physics. In data analysis, linear transformations can be used to transform data into a more meaningful representation. In image processing, linear transformations can be used to rotate, scale, or reflect images. In physics, linear transformations are used to describe the movement and behavior of particles in a system.

Similar threads

Replies
5
Views
1K
Replies
2
Views
760
  • Classical Physics
Replies
7
Views
708
  • Classical Physics
Replies
26
Views
1K
  • Linear and Abstract Algebra
Replies
8
Views
1K
Replies
1
Views
713
  • Mechanics
Replies
3
Views
92
  • Classical Physics
Replies
1
Views
514
  • Calculus
Replies
3
Views
2K
Back
Top