Question
Mathematics Question on Differential equations
If dydx=y1+x−y2,x(1)=1,then 5x(2) is equal to:
Given the differential equation:
dydx=y1+x−y2
with the initial condition:
x(1)=1
Step 1: Rearranging the Equation
Rearranging the differential equation:
ydydx=1+x−y2
Rewriting:
dydx−yx=y1−y2
This is a linear first-order differential equation in the form:
dydx+P(y)x=Q(y)
where:
P(y)=−y1,Q(y)=y1−y2
Step 2: Finding the Integrating Factor
The integrating factor (IF) is given by:
IF=e∫P(y)dy=e∫−y1dy=e−ln∣y∣=y1
Step 3: Multiplying by the Integrating Factor
Multiplying the entire equation by the integrating factor:
y1dydx−y2x=y21−y2
This simplifies to:
dyd(yx)=y21−y2
Step 4: Integrating Both Sides
Integrating both sides with respect to y:
yx=∫y21−y2dy=∫(y21−1)dy
yx=∫y−2dy−∫1dy=−y−1−y+C
Multiplying by y:
x=−1−y2+Cy
Step 5: Applying the Initial Condition
Given x(1)=1:
1=−1−12+C×1
C=3
Thus, the solution is:
x=−1−y2+3y
Step 6: Evaluating 5x(2)
Substituting y=2:
x(2)=−1−22+3×2=−1−4+6=1
5x(2)=5×1=5
Conclusion: 5x(2)=5.