The given differential equation is ydx−(x+2y2)dy=0. We need to solve for x as a function of y, denoted as x=f(y), and then find f(1) given that f(−1)=1.
First, rearrange the equation to isolate dydx. Starting from ydx=(x+2y2)dy, divide both sides by dy to get:
ydydx=x+2y2
Now, bring all terms involving x to one side:
ydydx−x=2y2
Divide both sides by y (assuming y=0) to put the equation in standard linear form:
dydx−y1x=2y
This is a linear differential equation of the form dydx+P(y)x=Q(y), where P(y)=−y1 and Q(y)=2y. The integrating factor (IF) is calculated as:
IF=e∫P(y)dy=e∫−y1dy=e−ln∣y∣
Since e−ln∣y∣=∣y∣1, but in practice, we use y1 for simplicity, as it will work for both positive and negative y domains. Thus, the integrating factor is y1. Multiply both sides of the equation by this integrating factor:
y1⋅dydx−y1⋅y1x=y1⋅2y
Simplify the right side:
y1dydx−y2x=2
The left side is the derivative of yx with respect to y:
dyd(yx)=2
Integrate both sides with respect to y:
∫dyd(yx)dy=∫2dy
yx=2y+C
where C is the constant of integration. Solve for x:
x=2y2+Cy
Thus, the solution is x=f(y)=2y2+Cy.
Given the condition f(−1)=1, substitute y=−1 and x=1:
1=2(−1)2+C(−1)
1=2(1)−C
1=2−C
Solve for C:
C=2−1=1
Therefore, the function is f(y)=2y2+y.
Now, find f(1):
f(1)=2(1)2+(1)=2+1=3
Hence, the correct answer is Option B.