```python
from sympy import *
```


```python
init_printing()
```


```python
x = Symbol('x')
```


```python
a = Symbol('a')
```


```python
f0 = x ** 2 + (a ** 2 + a) * x + a -1
```


```python
f1 = x + 3
```


```python
solve([f0, f1], [x, a])
```

\begin{eqnarray*}
x ^ 2 +( a ^2 + a)x + a -1 = 0 \\
x + 3 = 0
\end{eqnarray*}

$
\begin{align*}
(-3)^ 2 +( a ^2 + a)(-3) + a -1 = 0 \\
9 - 3(a ^2 + a ) + a -1 = 0 \\
- 3 a ^2 -3a + a  + 8 = 0 \\
- 3 a ^2 -2a + 8 = 0 \\
3a ^ 2 + 2a  - 8 = 0
\end{align*}
$

\begin{equation*}
x = \frac{-b\pm{\sqrt{b^2 - 4ac}}}{2a}
\end{equation*}

$
\begin{align}
x & = \frac{-2\pm{\sqrt{(2)^2 - 4(3\times{ -8})}}}{2\times{3}}　 \\
  & = \frac{-2\pm{\sqrt{4 + 4 \times{ 24}}}}{6} \\
  & = \frac{-2\pm{2\sqrt{1+24}}}{6} \\
  & = \frac{-2\pm{10}}{6} \\
  & = \frac{-12, 8}{6} \\
  & = -2, \frac{4}{3}
\end{align}
$


```python

```

41a077987c5dc601b654c7dcc6df028a9cad211e
ipynb
Jupyter Notebook
markdown/python/anaconda/notebook/math/math-6.ipynb
hdknr/annotated-django
5843908dd6586a54b92d974f45049fa87e64db8b
PSF-2.0 BSD-3-Clause
markdown/python/anaconda/notebook/math/math-6.ipynb
hdknr/annotated-django
5843908dd6586a54b92d974f45049fa87e64db8b
PSF-2.0 BSD-3-Clause
2016-02-27T06:02:24.000Z
2021-11-01T07:53:20.000Z
markdown/python/anaconda/notebook/math/math-6.ipynb
hdknr/annotated-django
5843908dd6586a54b92d974f45049fa87e64db8b
PSF-2.0 BSD-3-Clause
Qwen/Qwen-72B
1. YES
2. YES