How Can You Solve the Differential Equation dy/dx = x(y-1)^2?

In summary, we found the general solution to the given differential equation, but due to a sign error and a potential issue with the initial condition, the particular solution to the given initial condition may be the equilibrium solution y=1. Additionally, the range of the function f may be limited by the restriction y\neq 1, as division by zero would occur.
  • #1
pakmingki
93
1

Homework Statement


a. find the general solution to this differential equation
dy/dx = x(y-1)^2
b. find the particular solution to the given initial condition f(0) = 1
c. use the solution found in b to find the range of f


Homework Equations


none really


The Attempt at a Solution


this question seemed simple, but i can't really get the right answer.
here is my attempt

*i use different letters after manipulating constants, because they are still constants after adding/subtracting/dividing/multiplying

dy/dx = x(y-1)^2

*separation of variables*

x dx = (y-1)^-2 dy

*integrate both sides*

x^2/2 + C1= -(y-1)^-1 + C2

x^2/2 = -(y-1)^-1 + K

solve for y

(x^2/2 = -1/(y-1) + K) * 2

x^2 = -2/(y-1) + L

x^2 = -2(y-1)^-1 + L

(x^2 + H = -2(y-1)^-1 ) * -1/2
x^2/2 + G = (y-1)^-1
raise everything to the negative 1

(x^2/2 +G)^-1 = y-1

x^2/2 +G = (x^2 + 2G)/2

((x^2 + 2G)/2)^-1 = 2/(x^2 + 2G)

2/(x^2 + 2G) + 1 = y

but i can tell already this is the wrong answer, and with a wrong general solution, i can't do the other parts of the problem.
 
Physics news on Phys.org
  • #2
There's a sign error on the first term in your solution.
 
  • #3
You solved the given differential equation [itex]\frac{dy}{dx}=x(y-1)^2[/itex] and obtained the correct general solution (except you dropped a - sign on the [itex]x^2[/itex] term after you multiplied by -1/2) [tex]y_g=\frac{2}{2G-x^2}+1[/tex] for which [tex]\frac{dy_g}{dx}=\frac{4x}{(2G-x^2)^2}=x(y_g-1)^2[/tex] and is then indeed a valid solution to the given equation, however the initial condition that f(0)=1 is something of a problem since when we solved the equation we had divided both sides by (y-1)^2 for which we need to assume that [itex]y\neq 1[/itex] since that would involve division by zero. But maybe we can ignore that and solve it anyways... If we set x=0 and y=1 in the general solution [tex]y_g=\frac{2}{2G-x^2}+1[/tex] we get [tex]1=\frac{1}{G}+1\Rightarrow \frac{1}{G}=0[/tex] which only holds if we let [itex]G\to\pm\infty[/itex] and this gives the particular solution [tex]y_p=\lim_{G\to\pm\infty}\left(\frac{2}{2G-x^2}+1\right)=0+1=1[/tex], which is the equilibrium solution.
 
Last edited:

FAQ: How Can You Solve the Differential Equation dy/dx = x(y-1)^2?

Why is it important to be able to solve differential equations?

Differential equations are used to model and understand various phenomena in science and engineering, such as the movement of objects, population growth, and chemical reactions. Solving these equations allows us to make predictions and analyze systems, making it a crucial tool in scientific research and problem-solving.

What makes solving differential equations challenging?

Unlike simpler types of equations, differential equations involve the derivatives of one or more variables, making them more complex to work with. They also often have no exact solution and require various techniques and methods to approximate a solution.

How do you go about solving a differential equation?

The approach to solving a differential equation depends on its type and order. Generally, we first classify the equation as either ordinary or partial and then use various techniques such as separation of variables, substitution, or using a specific formula to find a solution.

What are some common mistakes to avoid when solving differential equations?

Some common mistakes when solving differential equations include not checking the solution for validity, not considering boundary or initial conditions, and not simplifying the equation before attempting to solve it. It is also essential to be careful with algebraic manipulations and understanding the properties of the differential operators involved.

Are there any tools or resources available to help with solving differential equations?

Yes, there are various software programs, online solvers, and textbooks that can help with solving differential equations. However, it is crucial to have a good understanding of the underlying concepts and techniques before relying on these tools. Consulting a mathematician or taking a course in differential equations can also be beneficial.

Back
Top