How to use code to automatically generate such a homogeneous quadratic equation by combining the linear equation and the quadratic curve? I usually complete this kind of problem entirely by manual input.