This may sound like a dumb question, but its been bothering me for a while. We know that trigonometric functions are non linear functions. However, why are rotation matrices (and transformation matrices (such as affine)) considered linear mapping, since they are essentially made up of trigonometric entities. While from a higher level, the rotation matrices do satisfy the constraints that define what a linear mapping is (i.e. it preserves addition and scalar multiplication, additionally the rotation operation is invertible), however, when thinking of a perspective of building up from the individual trigonometric elements, I fail to understand how the non-linearity suddenly becomes a linear mapping, from an intuitive sense.
Note, I do understand that rotation by itself is a linear mapping, but I am more confused about the linearity of the rotation matrix while building up from trigonometric elements. Or, has my understanding been completely wrong and rotation cannot be considered linear mapping? Thanks
Given any four numbers $a,b,c,d\in\Bbb R$, the map$$\begin{array}{ccc}\Bbb R^2&\longrightarrow&\Bbb R^2\\(x,y)&\mapsto&(ax+by,cx+dy)\end{array}$$is linear. And, for every real number $\theta$, the numbers $\cos\theta$ and $\pm\sin\theta$ are real numbers. So, in particular, the map$$\begin{array}{ccc}\Bbb R^2&\longrightarrow&\Bbb R^2\\(x,y)&\mapsto&\bigl(\cos(\theta)x-\sin(\theta)y,\sin(\theta)x+\cos(\theta)y\bigr)\end{array}$$is linear. And it turns out that thse maps are precisely the rotations of $\Bbb R^2$ and that its matrix with respect to the standard basis is $\left[\begin{smallmatrix}\cos(\theta)&-\sin(\theta)\\\sin(\theta)&\cos(\theta)\end{smallmatrix}\right]$. The fact that the numbers $\cos\theta$ and $\pm\sin\theta$ were obtained from the trigonometric functions $\cos$ and $\sin$ doesn't change that.