162k views
3 votes
Solve for y as a function of x dy/dx = x-3/y and y(2)= -5

User Ab Bennett
by
7.5k points

1 Answer

4 votes

Final answer:

To solve the differential equation dy/dx = x - 3/y with the initial condition y(2) = -5, we separated variables, integrated both sides, and used the initial condition to find the constant of integration. We determined the general solution to be y = ±√(x^2 - 6x + 7) and selected the negative solution to satisfy the initial condition.

Step-by-step explanation:

To solve for y as a function of x, given the differential equation dy/dx = x - 3/y with the initial condition y(2) = -5, we will use separation of variables and integration. We start by separating the variables y and x:

  1. Multiply both sides by y to get y dy = (x - 3) dx.
  2. Now, integrate both sides: ∫ y dy = ∫ (x - 3) dx.
  3. The left side integrates to y^2/2, and the right side integrates to x^2/2 - 3x + C, where C is the constant of integration.
  4. Therefore, our equation is y^2/2 = x^2/2 - 3x + C.
  5. Using the initial condition y(2) = -5, we can solve for C. Plugging in these values: (-5)^2/2 = 2^2/2 - 3(2) + C, which simplifies to C = 25/2 - 2 - 6 = 7/2.
  6. Thus, the equation becomes y^2/2 = x^2/2 - 3x + 7/2.
  7. To find y as a function of x, we take the square root of both sides, being mindful of the ± sign, as the square root has two solutions. So, y = ±√(x^2 - 6x + 7).

This is the general solution to the differential equation, but given that y(2) = -5 we only consider the negative square root, thus the particular solution for the function is y = -√(x^2 - 6x + 7).

User Shaquona
by
8.0k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories