复数开根
Jerry1031
·
·
个人记录
复数开根
众所周知,复数对四则运算和幂(就算是复数次幂也可以)封闭,所以存在至少一个复数 x+y\text i 满足 a+b\text i=(x+y\text i)^n。因此,复数可以开根。
1. 复数开平方根
现在你有一个复数 a+b\text i (a,b\in\mathbb R),你特别想知道谁乘上它自己等于这个 a+b\text i,所以有了接下来的故事……
1.1 代数法
设 a+b\text i=(x+y\text i)^2 (a,b,x,y\in\mathbb R),那么 x+y\text i 就是我们要求的结果。
我会展开!
(x^2-y^2)+2xy\text i=a+b\text i
因为 a,b,x,y 都是实数,所以根据对应系数相等可以得到:
x^2-y^2=a\\
2xy=b
\end{matrix}\right.
暴力解方程
y=\dfrac{b}{2x}
x^2-\dfrac{b^2}{4x^2}=a
4x^4-4ax^2-b^2=0
x=\dfrac{\sqrt{a+\sqrt{a^2+b^2}}}{\sqrt{2}}\text{or}\dfrac{\sqrt{a-\sqrt{a^2+b^2}}}{\sqrt{2}}\text{or}-\dfrac{\sqrt{a+\sqrt{a^2+b^2}}}{\sqrt{2}}\text{or}-\dfrac{\sqrt{a-\sqrt{a^2+b^2}}}{\sqrt{2}}
但根据高中课本,\sqrt{A} 中 A 仍然要求 \ge0,且 \sqrt{a^2+b^2} 一定 \geq a,所以 a-\sqrt{a^2+b^2}\leq0,所以第二种和第四种情况可以舍去了。
x=\dfrac{\sqrt{a+\sqrt{a^2+b^2}}}{\sqrt{2}}\text{or}-\dfrac{\sqrt{a+\sqrt{a^2+b^2}}}{\sqrt{2}}
类似的,可以求得
y=\dfrac{\sqrt{-a+\sqrt{a^2+b^2}}}{\sqrt{2}}\text{or}-\dfrac{\sqrt{-a+\sqrt{a^2+b^2}}}{\sqrt{2}}
一共 2\times2=4 组解。
带回原式验算,发现只有
x=\dfrac{\sqrt{a+\sqrt{a^2+b^2}}}{\sqrt{2}}\\
y=\dfrac{\sqrt{-a+\sqrt{a^2+b^2}}}{\sqrt{2}}
\end{matrix}\right.
与
x=-\dfrac{\sqrt{a+\sqrt{a^2+b^2}}}{\sqrt{2}}\\
y=-\dfrac{\sqrt{-a+\sqrt{a^2+b^2}}}{\sqrt{2}}
\end{matrix}\right.
满足条件。
因此,
\boxed{a+b\text i=\left(\pm\left(\dfrac{\sqrt{a+\sqrt{a^2+b^2}}}{\sqrt{2}}+\dfrac{\sqrt{-a+\sqrt{a^2+b^2}}}{\sqrt{2}}\text i\right)\right)^2}
即
\boxed{\pm\sqrt{a+b\text i}=\pm\dfrac{\sqrt2}{2}\left(\sqrt{a+\sqrt{a^2+b^2}}+\sqrt{-a+\sqrt{a^2+b^2}}\text i\right)}
需要注意的一点是,根号运算是单值的,而开方运算是多值的。
\boxed{\sqrt{a+b\text i}=\dfrac{\sqrt2}{2}\left(\sqrt{a+\sqrt{a^2+b^2}}+\sqrt{-a+\sqrt{a^2+b^2}}\text i\right)}
1.2 三角法
复数的三角表达:
a+b\text i=r\left(\cos\left(\theta+2k\pi\right)+\text i\sin\left(\theta+2k\pi\right)\right),r=\left|{a+b\text i}\right|=\sqrt{a^2+b^2},\tan\theta=\dfrac ba,k\in\mathbb Z
其中 2k\pi=360\degree 对结果无影响,即
a+b\text i=r(\cos\theta+\text i\sin\theta)
易得
\sqrt{a+b\text i}=\sqrt r\left(\cos\dfrac\theta2+\text i\sin\dfrac\theta2\right)
半角公式:
\cos\dfrac\theta2=\pm\sqrt{\dfrac{1+\cos\theta}2}
\sin\dfrac\theta2=\pm\sqrt{\dfrac{1-\cos\theta}2}
代入得
\sqrt{a+b\text i}=\pm\sqrt r\left(\sqrt{\dfrac{1+\cos\theta}2}+\text i\sqrt{\dfrac{1-\cos\theta}2}\right)
有
\cos\theta=\dfrac ar
代入并化简得
\sqrt{a+b\text i}=\pm\sqrt r\left(\sqrt{\dfrac{r+a}{2r}}+\text i\sqrt{\dfrac{r-a}{2r}}\right)
\boxed{\sqrt{a+b\text i}=\sqrt{\dfrac{r+a}2}+\text i\sqrt{\dfrac{r-a}2}}
将 r=\sqrt{a^2+b^2} 代入上式就得到了与上文相同的答案。