import numpy as npimport matplotlib.pyplot as plt
x = np.linspace(-10, 10, 1000)y = (x2 + 3x + 2) (x2 - 4*x + 3) / (x*2 - 2x - 3)
plt.figure(figsize=(10, 6))plt.plot(x, y, label=r'$y=\frac{(x^2+3x+2)(x^2-4x+3)}{x^2-2x-3}$')
plt.title('Graph of the function y=(x^2+3x+2)*(x^2-4x+3)/(x^2-2x-3)')plt.xlabel('x')plt.ylabel('y')
plt.grid(True)plt.axhline(0, color='black',linewidth=0.5)plt.axvline(0, color='black',linewidth=0.5)
plt.legend()plt.show()
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-10, 10, 1000)
y = (x2 + 3x + 2) (x2 - 4*x + 3) / (x*2 - 2x - 3)
plt.figure(figsize=(10, 6))
plt.plot(x, y, label=r'$y=\frac{(x^2+3x+2)(x^2-4x+3)}{x^2-2x-3}$')
plt.title('Graph of the function y=(x^2+3x+2)*(x^2-4x+3)/(x^2-2x-3)')
plt.xlabel('x')
plt.ylabel('y')
plt.grid(True)
plt.axhline(0, color='black',linewidth=0.5)
plt.axvline(0, color='black',linewidth=0.5)
plt.legend()
plt.show()