#mathematics #python
-import the library
-assign functions to variables
-solve for partial fractions
Code:
from sympy import *
init_printing()
x = symbols("x")
y = 2*(x-2)/(x**4 -3*x**2 +1)
z = 5*x**2/(1+2*x**2)
g = 2*x**3/(3*x**2 -1)
apart(y)
diff(y,x)
integrate(y,x)
plot(y, show=True)
repeat for other functions, g and z.