Find the values for $a,b,c,d$ 
Given  $$x^3+4x^2y+axy^2+3xy-bx^cy+7xy^2+dxy+y^2=x^3+y^2$$  for any
  real number $x$ and $y$ , find the value of $a,b,c,d$


Starting from the equation
\begin{align*}
x^3+4x^2y+axy^2+3xy-bx^cy+7xy^2+dxy+y^2=x^3+y^2
\end{align*}
we could go on as follows.

First step: Simplify and put each terms to the left-hand side. We obtain
  \begin{align*}
4x^2y+axy^2+3xy-bx^cy+7xy^2+dxy=0\tag{1}
\end{align*}
  by noting that the terms $x^3$ and $y^2$ cancel out.

We have in (1) a bivariate polynomial in $x$ and $y$ at the left-hand side and the zero polynomial at the right-hand side. We have equality with the zero-polynomial iff the coefficients of $x^ky^l$ are zero for each $k,l$ at the left-hand side.
The next step is to either arrange the left-hand side by increasing powers of $x$ or by increasing powers of $y$. Since there is a somewhat tricky unknown $c$, which is a power of $x$ and which makes arrangement by increasing powers of $x$ cumbersome, we decide to collect according to increasing powers of $y$.

Second step: By arranging according to increasing powers of $y$ we obtain
  \begin{align*}
(4x^2+3x-bx^c+dx)\color{blue}{y}+(ax+7x)\color{blue}{y^2}=0
\end{align*} 

Now we are ready to harvest. We can now easily determine the unknowns $a,b,c,d$ by comparing corresponding powers of $x$.

Third step: Compare corresponding powers of $x$.
We start with the easy one:
  \begin{align*}
ax+7x=0
\end{align*}
  Since the coefficient of $x$ has to be zero we see $\color{blue}{a=-7}$.
The other expression is 
  \begin{align*}
4x^2+3x-bx^c+dx=0
\end{align*}
  We have a linear term in $x$, namely $3x+dx=0$ and conclude $\color{blue}{d=-3}$. We see that setting $\color{blue}{c=2}$ gives a second quadratic term $4x^2-bx^2=0$ and we finally conclude $\color{blue}{b=4}$.

