How to Solve $2\sqrt{xy}\,\frac{dy}{dx}=1$
At a glance
- 1. Check the domain
The equation requires xy to be positive; neither x nor y can be zero on a solution interval.
- 2. Separate variables
For positive x and y, write 2√y dy = dx/√x and integrate both sides.
- 3. Apply the initial condition
Use a given point to find the integration constant, then restrict the formula to where it stays on the chosen branch.
- 4. Check the result
Differentiate the solution and substitute it into the original equation.
The equation
is separable. The usual textbook treatment assumes and , so that . Under that assumption, separate the variables and integrate to obtain the family of solutions below. If the equation is intended over the reals without assuming positivity, there is also a branch with both and negative.
Solve on the positive branch
When and , divide by and multiply by to separate the variables:
Integrate both sides:
so
Absorbing the factor into the arbitrary constant gives the equivalent explicit form
This formula is valid on an interval where and the quantity inside parentheses is positive. The positivity condition matters: this branch describes , and the original equation is not defined as an equality at because its left side would be zero rather than one.
Use an initial condition
Suppose a solution is required to pass through . Substituting this point into the integrated relation gives
so . Therefore
and hence
For this positive branch, the expression in parentheses must be positive, which requires . The endpoint is excluded because it would give , where the differential equation cannot hold. The interval containing the initial point is therefore .
As a check, let . Then and
Since on this branch, substitution gives .
What if and are negative?
For real values, the square root requires . The equation itself rules out , so any solution interval must have : and have the same sign. If both are negative, you cannot use with real square roots. Instead, use absolute values when separating:
A compact way to express both real branches is to define . Its derivative is for . Integration then gives
For the negative branch, the right-hand side must be negative, just as is negative. This condition, along with , restricts the interval on which the formula represents a solution. The positive branch above is recovered by taking and .
Common mistakes
- Ignoring the domain: The equation cannot hold at or . A solution must stay in a region where .
- Using the positive-branch factorization for negative values: For real variables, is directly valid when both are nonnegative, not when both are negative. Use absolute values for the negative branch.
- Losing the constant or a factor: The integral of is , while the integral of is . Constants may be rescaled, but the coefficients from integration must be correct.
- Keeping an invalid endpoint: If the explicit formula reaches , that endpoint cannot be included in a solution of the original equation.
References
- Elementary Differential Equations and Boundary Value Problems — William E. Boyce, Richard C. DiPrima, and Douglas B. Meade
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.