﻿from sympy import *

x=symbols('x')
expand((3*x-5)**2-(5*x+4)**2)
factor((3*x-5)**2-(5*x+4)**2)