First, we distribute the
y term into the parentheses:
ydx+xy2dx=xdy
We rearrange the equation by moving
ydx to the right side:
xy2dx=xdy−ydx
Observe the right-hand side,
xdy−ydx. This expression is the numerator of the differential of the quotient
yx. To utilize this, we divide both sides by
y2:
xdx=y2xdy−ydx
We recognize that the right-hand side is equivalent to
−d(yx). The equation now simplifies to:
xdx=−d(yx)
Integrating both sides, we obtain:
∫xdx=−∫d(yx)
2x2=−yx+C
This represents the general family of curves satisfying the given differential equation.
We apply the initial condition that the curve passes through
(1,−1). Substituting
x=1 and
y=−1 into our general solution:
2(1)2=−−11+C
21=1+C
Solving for the constant, we find
C=−21. Thus, the particular solution is:
2x2=−yx−21
Now, we substitute
x=−21 into the function:
f(−21)=−(−21)2+12(−21)
f(−21)=41+11=451