坐标系的平移与旋转变化

568 阅读2分钟

坐标系的平移与旋转变化

一、坐标系的平移变化

定义

坐标原点发生变化,而坐标轴的方向不发生改变,这样的变化成为坐标系的平移变化

分析

记平移后的坐标原点为 O(h,k)O'(h, k), 取坐标系上任一点 P(x,y)P(x, y), 利用平面向量,有

OP=OO+OP\vec{OP} = \vec{OO'} + \vec{O'P}

(x,y)=(h,k)+(x,y)(x, y) = (h, k) + (x', y')

因此,得到平移后的坐标与原坐标的关系式如下

{x=x+hy=y+k (1) 或 {x=xhy=yk (2)\begin{cases} x = x' + h \\ y = y' + k \end{cases} \text{ (1) 或 } \begin{cases} x' = x - h \\ y' = y - k \end{cases} \text{ (2)}

我们称 (1) 式和 (2) 式为平移公式

示例

问题

将坐标原点 OO 点平移至 O(2,3)O'(2, -3), 求以下各项在新坐标系中的方程。

  1. A(4,6)A(4, 6);
  2. 直线 x+3y=2x + 3y = 2;
  3. 曲线 9x2+4y236x+24y36=09 x^2 + 4 y^2 - 36x + 24y - 36 = 0.

解答

根据平移公式,平移前后的坐标有以下关系

{x=x+2y=y3 (1) 或 {x=x2y=y+3 (2)\begin{cases} x = x' + 2 \\ y = y' - 3 \end{cases} \text{ (1) 或 } \begin{cases} x' = x - 2 \\ y' = y + 3 \end{cases} \text{ (2)}
  1. 由(2)式,得

    {x=x2=2y=y+3=9\begin{cases} x' = x - 2 = 2 \\ y' = y + 3 = 9 \end{cases}

    故平移后的坐标为 A(2,9)A(2, 9)

  2. 由(1)式,得

    (x+2)+3(y3)=2 (x' + 2) + 3 (y' - 3) = 2

    整理得,平移后的直线方程为

    x+3y=9 x + 3y = 9
  3. 由(1)式, 得

    9(x+2)2+4(y3)236x+24y36=0 9(x' + 2)^2 + 4(y' - 3)^2 - 36x' + 24y' -36 = 0

    整理得, 平移后的曲线方程为

    9x2+4y236=0 9 x^2 + 4 y^2 - 36 = 0

    x24+y29=1 \dfrac{x^2}{4} + \dfrac{y^2}{9} = 1

    可知,该曲线为对称中心在 O'(2, -3) 的椭圆

二、坐标系的旋转变化

定义

保持原点及坐标轴的夹角不变,将两坐标轴绕原点(逆时针)旋转同一角度的变化,称为坐标系的旋转变化

分析

将坐标系 OxyOxy 逆时针旋转 θ 得到新坐标系 OxyOx'y', 则 xx', yy' 正半轴上的单位向量为

e1=(cosθ,sinθ)\vec{e_1} = (\cos θ, \sin θ)
e2=(sinθ,cosθ)\vec{e_2} = (-\sin θ, \cos θ)

则点 P(x,y)P(x, y) 在新坐标系的坐标即为 OP\vec{OP} 在两个单位向量上的投影

x=OPe1=xcosθ+ysinθ x' = \vec{OP} \cdot \vec{e_1} = x \cos θ + y \sin θ
y=OPe2=xsinθ+ycosθ y' = \vec{OP} \cdot \vec{e_2} = -x \sin θ + y \cos θ

因此我们可以得到旋转公式

{x=xcosθysinθy=xsinθ+ycosθ (1) 或 {x=xcosθ+ysinθy=xsinθ+ycosθ (2)\begin{cases} x = x' \cos θ - y' \sin θ \\ y = x' \sin θ + y \cos θ \end{cases} \text{ (1) 或 } \begin{cases} x' = x \cos θ + y \sin θ \\ y' = -x \sin θ + y \cos θ \end{cases} \text{ (2)}

示例

问题

将坐标系 OxyOxy 旋转 45°, 求以下各项在新坐标系中的方程。

  1. B(6,1)B(6, -1);
  2. 直线 x+3y=2x + 3y = 2;
  3. 曲线 x2+y26xy+4=0x^2 + y^2 - 6xy + 4= 0.

解答

根据平移公式,平移前后的坐标有以下关系

{x=22x22yy=22x+22y (1) 或 {x=22x+22yy=22x+22y (2)\begin{cases} x = \dfrac{\sqrt{2}}{2} x' - \dfrac{\sqrt{2}}{2} y' \\ y = \dfrac{\sqrt{2}}{2} x' + \dfrac{\sqrt{2}}{2} y' \end{cases} \text{ (1) 或 } \begin{cases} x' = \dfrac{\sqrt{2}}{2} x + \dfrac{\sqrt{2}}{2} y \\ y' = -\dfrac{\sqrt{2}}{2} x + \dfrac{\sqrt{2}}{2} y \end{cases} \text{ (2)}
  1. 由(2)式,得

    {x=22x+22y=522y=22x+22y=722\begin{cases} x' = \dfrac{\sqrt{2}}{2} x + \dfrac{\sqrt{2}}{2} y = \dfrac{5 \sqrt{2}}{2} \\ y' = -\dfrac{\sqrt{2}}{2} x + \dfrac{\sqrt{2}}{2} y = -\dfrac{7 \sqrt{2}}{2} \end{cases}

    故平移后的坐标为 A(522,722)A(\dfrac{5 \sqrt{2}}{2}, -\dfrac{7 \sqrt{2}}{2})

  2. 由(1)式,得

    (22x22y)+3(22x+22y)=2 (\dfrac{\sqrt{2}}{2} x' - \dfrac{\sqrt{2}}{2} y') + 3 (\dfrac{\sqrt{2}}{2} x' + \dfrac{\sqrt{2}}{2} y') = 2

    整理得,平移后的直线方程为

    2x+y=2 2x + y = \sqrt{2}
  3. 由(1)式, 得

    (22x22y)2+(22x+22y)26(22x22y)(22x+22y)+4=0 (\dfrac{\sqrt{2}}{2} x' - \dfrac{\sqrt{2}}{2} y')^2 + (\dfrac{\sqrt{2}}{2} x' + \dfrac{\sqrt{2}}{2} y')^2 - 6(\dfrac{\sqrt{2}}{2} x' - \dfrac{\sqrt{2}}{2} y') (\dfrac{\sqrt{2}}{2} x' + \dfrac{\sqrt{2}}{2} y') + 4= 0

    整理得, 平移后的曲线方程为

    x22y22=0 x^2 - 2 y^2 - 2 = 0

    x22y2=1 \dfrac{x^2}{2} - y^2 = 1

    可知,该曲线为对称轴为直线 y=xy = x 的双曲线

双曲线旋转