解方程x^2+5x-3=0,保留根号
时间: 2023-05-26 16:04:42 浏览: 48
解方程 $x^2 + 5x - 3 = 0$
设 $x_1$ 和 $x_2$ 是方程的两个解
则有 $x_1 + x_2 = -\frac{5}{1} = -5$
$x_1 x_2 = \frac{-3}{1} = -3$
由二次方程的通解公式得:
$x_1 = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = \frac{-(5) \pm \sqrt{(5)^2 - 4(1)(-3)}}{2(1)} = \frac{-5 \pm \sqrt{25 + 12}}{2} = \frac{-5 \pm \sqrt{37}}{2}$
$x_2 = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = \frac{-(5) \pm \sqrt{(5)^2 - 4(1)(-3)}}{2(1)} = \frac{-5 \pm \sqrt{37}}{2}$
所以方程的解为 $x_1 = \frac{-5 + \sqrt{37}}{2}$,$x_2 = \frac{-5 - \sqrt{37}}{2}$
相关问题
x^5+2022*x-19=0如何用matlab求解
可以使用Matlab中的fzero函数来求解方程x^5+2022*x-19=0,具体步骤如下:
1. 定义方程的函数,并保存为一个.m文件,如下所示:
```
function y = myfunc(x)
y = x^5 + 2022*x - 19;
end
```
2. 在Matlab命令窗口中输入以下命令:
```
x0 = 0; % 设置初始值
x = fzero(@myfunc, x0); % 调用fzero函数求解
```
3. 运行以上命令后,Matlab会返回方程的解x,即:
```
x = -1.3589
```
因此,方程x^5+2022*x-19=0的解为x=-1.3589。
(x^2+y^2-1)(x^2+z^2-1)(y^2+z^2-1)-1=0这个隐函数的平面方程怎么转成参数形式的平面方程
将隐函数方程化为一个二元函数 $f(x,y,z) = (x^2+y^2-1)(x^2+z^2-1)(y^2+z^2-1)-1 = 0$,然后我们可以将其转化为参数形式的平面方程,具体步骤如下:
1. 令 $x = \cos\theta$,$y = \sin\theta \cos\phi$,$z = \sin\theta \sin\phi$,其中 $0 \leq \theta \leq \pi$,$0 \leq \phi < 2\pi$。
2. 将 $f(x,y,z)$ 中的 $x, y, z$ 用 $\theta, \phi$ 表示出来,得到 $f(\theta, \phi) = (\cos^2\theta+\sin^2\theta\cos^2\phi-1)(\cos^2\theta+\sin^2\theta\sin^2\phi-1)(\sin^2\theta\cos^2\phi+\sin^2\theta\sin^2\phi-1)-1$。
3. 将 $f(\theta, \phi)$ 中的三个因式展开并进行化简,得到 $f(\theta, \phi) = \sin^6\theta\cos^2\phi\sin^2\phi+\cos^2\theta\sin^6\theta\cos^2\phi+\cos^2\theta\sin^6\theta\sin^2\phi-\sin^4\theta\cos^2\phi-\sin^4\theta\sin^2\phi-\cos^2\theta\sin^4\theta+\cos^2\theta\sin^2\theta+\sin^2\theta\cos^2\phi+\sin^2\theta\sin^2\phi-1$。
4. 将 $f(\theta, \phi) = 0$ 化为参数形式的平面方程 $F(x,y,z) = 0$,即 $F(\cos\theta, \sin\theta\cos\phi, \sin\theta\sin\phi) = 0$。将 $\cos\theta, \sin\theta\cos\phi, \sin\theta\sin\phi$ 替换回 $x, y, z$,得到 $(x^2+y^2-1)(x^2+z^2-1)(y^2+z^2-1)-1=0$,这就是参数形式的平面方程。