I'm having some difficulty solving this problem. The information I have is the following:
What is the minimum degree for a polynomial for it to pass through points $A(x_1,y_1)$ and $B(x_2,y_2)$ with predefined slopes $S_1$ and $S_2$.
Thanks in advance!
The general case will require a polynomial of degree 3 or less because there are four constraints.
Depending on the specific points and slopes, the degree could be $0,1,2,$ or $3$.
I presume you mean the maximum required degree, not the maximum possible degree. You can always find polynomials of arbitrarily high degree that do the job because there are only four constraints, not enough to determine uniquely any polynomial of degree higher than three.
You can assume the form $$p(x)=A+ Bx+Cx^2+Dx^3$$ and the constraints $$p(a_1)=b_1,p(a_2)=b_2,p'(a_1)=m_1,p'(a_2)=m_2$$ where the $a_i, b_i,$ and $m_i$ are specified constants. This produces a system of four equations in the four unknowns $A,B,C,$ and $D$.