Lets take the given differential equation,
xcos(yx)dydx=ycos(yx)+x
Divide by xcos(yx) on both the sides, we get,
dydx=ycos(yx)+xxcos(yx)
R.H.S. is a function of x and y
⇒dydx=f(x,y)
Put x=λx and y=λy, we get
f(λx,λy)=λ0⎛⎜
⎜⎝ycos(yx)+xxcos(yx)⎞⎟
⎟⎠
⇒f(λx,λy)=λ0f(x,y)
⇒f is a homogeneous function of degree zero.
Hence, the given differential equation is homogeneous differential equation.