How Do You Solve the Differential Equation dy/dx = 1 - y^2?

• chwala
Classes/CalcII/PartialFractions.aspxIn summary, the conversation discussed the solution to a differential equation involving separation of variables and integration by partial fractions. The final solution for y was given as (x^2-4)/(x^2+4), with an initial condition applied to determine the constant of integration. The conversation also suggested reviewing integration by partial fractions for better understanding.
chwala
Gold Member
Homework Statement
See attached
Relevant Equations
understanding of integration and separation of variables.
This is the question;

This is the solution;

Find my approach here,

##x####\frac {dy}{dx}##=##1-y^2##
→##\frac {dx}{x}##=##\frac {dy}{1-y^2}##
I let ##u=1-y^2## → ##du=-2ydy##, therefore;
##\int ####\frac {dx}{x}##=##\int ####\frac {du}{-2yu}##, we know that ##y##=##\sqrt {1-u}##
##\int ####\frac {dx}{x}##=##\int ####\frac {du}{-2u\sqrt {1-u}}## i let,
##\frac {1}{u\sqrt {1-u}}##=##\frac {A}{\sqrt {1-u}}##+##\frac {B}{u}##
→##1=##Au##+##B##\sqrt {1-u}##
##A=0.5## and ##B=0.5## * i need to check how to arrive at this...i got a bit stuck here...
Therefore,
##\frac {1}{-2}##[##\int####\frac {0.5}{\sqrt {1-u}}####du##+##\int####\frac {0.5}{u}]####du##=##\int ####\frac {dx}{x}##
##\frac {1}{-4}####\int####\frac {1}{\sqrt {1-u}}####du##+##\frac {1}{-4}####\int####\frac {1}{u}####du##=##\int ####\frac {dx}{x}##
on integration we shall have,
##-0.25(1-(1-y^2))-0.25 ln|1-y^2|##=##ln|x|## + ##k##
##-0.25y^2-0.25ln|1-y^2|##=##ln|x|## + ##k##
using and applying the initial conditions ##y(2)=0##, we get,
##k=-ln2##

i will need to re check this later...something does not look right...i will amend this post to correct solution then look at the suggested approach...

Last edited:
$$2\frac{dy}{1-y^2}=\frac{dy}{1-y}+\frac{dy}{1+y}$$

chwala
Hello @chwala !

Your marking scheme wants separation of variables. I empathically suggest you try that: all ##y ## stuff on the left and all ##x## stuff on the right !

##\ ##

Last edited:
chwala
BvU said:
Hello @chwala !

Your marking scheme wants separation of variables. I empathically suggest you try that: all ##y ## stuff on the left and all ##x## stuff on the right !

I suppose he/she means $$\frac{1}{1-y^2}=\frac{1}{1-y}+\frac{1}{1+y}\quad ?$$

##\ ##
True, arrrrgh my brain went for a walk...difference of two squares right is much faster,i will nevertheless try and complete on what i had started. My presumption is that we should get same solution.

I tend to think my approach was wrong,...it would be difficult to ascertain the values of the constants after having decomposed into the partial fractions...the unknowns in my working are ##3## variables, ##A,B## and ##u##...
Thanks bvu and anuttarasa... with the given suggested approach, then the working to solution would be easy. Cheers guys

Ok from this step, i have

##x####\frac {dy}{dx}##=##1-y^2##

→##\frac {dx}{x}##=##\frac {dy}{1-y^2}##

##\int ####\frac {dx}{x}##=##\int ####\frac {dy}{({1+y})({1-y})}##

Let, ##\frac {1}{({1+y})({1-y})}##=##\frac {A}{1-y}##+##\frac {B}{1+y}##

##1=A(1+y)+B(1-y)##

→We get the simultaneous equation,
##A+B=1##
##A-B=0##

##A=0.5## and ##B=0.5## therefore we shall have

##\int ####\frac {dx}{x}##=##\int ####\frac {0.5dy}{1-y}##+##\int ####\frac {0.5dy}{1+y}##

...on integration we get,

##\frac {1}{2}####ln|1+y|####-\frac {1}{2}####ln|1-y|##=##ln|x|##+##k##

on applying ##y(2)=0##,

we get ##k##=##-ln|2|## therefore,

##\frac {1}{2}####ln|1+y|####-\frac {1}{2}####ln|1-y|##=##ln|x|####-ln|2|##

##\frac {1}{2}####ln####\frac {|1+y|}{|1-y|}##=##ln####\frac {|x|}{|2|}##→

→...##\frac {1+y}{1-y}##=##\frac {x^2}{4}##

##4y+x^2y=x^2-4##

##y(4+x^2)=x^2-4##

##y##=##\frac {x^2-4}{x^2+4}##

Last edited:
chwala said:
Ok from this step, i have
##x####\frac {dy}{dx}##=##1-y^2##
→##\frac {dx}{x}##=##\frac {dy}{1-y^2}##
##\int ####\frac {dx}{x}##=##\int ####\frac {du}{1-y}####⋅####\frac {dy}{1+y}##
Let, ##\frac {1}{({1+y})({1-y})}##=

About to run off the rails ...
First: see the repaired #2 for a missing 2.
Second: the integral of a sum is a sum of integrals, not a product !

##\ ##

chwala
BvU said:
About to run off the rails ...
First: see the repaired #2 for a missing 2.
Second: the integral of a sum is a sum of integrals, not a product !

##\ ##
still posting...learning latex slowly...thanks bvu..merry xmas.

Merry xmas to you too ! Actually, we all should have better things to do at this moment, but PF is a bit of an addiction

##\ ##

chwala
on integration i am getting,
chwala said:
##\frac {1}{2}####ln|1+y|##-##\frac {1}{2}####ln|1-y|##=##ln|x|##+##k##
on applying ##y(2)=0##,
we get ##k##=##-ln|2|## therefore,
##\frac {1}{2}####ln|1+y|##-##\frac {1}{2}####ln|1-y|##=##ln|x|##+##-ln|2|##
##\frac {1}{2}####ln####\frac {|1+y|}{|1-y|}##=##ln####\frac {|x|}{|2|}##

chwala said:
learning latex slowly...
It's the only way !
Tips (unasked for , but I can't help it ):
• omit all the quadruple #### -- it makes it easier to read for you (and to copy for others ).
• Once expressions get a little bigger, displayed math (enclosed in $$) improves readability and, sure enough, once things are put back on the rails, your proceed well, up to$$ {{1+y}\over {1-y}} = {x^2\over 4}$$where a new derailing occurs ... ##\ ## chwala The result is now impeccable ! Scrap the last part of #10 !$$y=\frac {x^2-4}{x^x+4}Bingo !

Bingo!Merry xmas guys...Going for a cup of coffee at the restaurant

Review integration by partial fractions for the integral involving y.

1. What is a first order differential equation?

A first order differential equation is a mathematical equation that describes the relationship between a function and its derivative. It involves only the first derivative of the function and can be expressed in the form dy/dx = f(x).

2. How do you solve a first order differential equation?

To solve a first order differential equation, you can use various methods such as separation of variables, integrating factors, or the method of undetermined coefficients. It is important to first identify the type of equation and then choose the appropriate method for solving it.

3. What is the importance of solving first order differential equations?

First order differential equations are used to model various physical and natural phenomena in fields such as physics, engineering, and economics. Solving these equations allows us to understand and predict the behavior of these systems, making them an essential tool in scientific research and problem-solving.

4. Can first order differential equations have multiple solutions?

Yes, first order differential equations can have multiple solutions. This is because the general solution of a first order differential equation contains a constant of integration, which can take on different values and result in different solutions. However, for a specific initial condition, there will only be one unique solution.

5. What are some real-life applications of first order differential equations?

First order differential equations have numerous real-life applications, such as predicting population growth, modeling the spread of diseases, analyzing electrical circuits, and determining the rate of chemical reactions. They are also used in fields such as economics, biology, and environmental science to study various systems and phenomena.

• Calculus and Beyond Homework Help
Replies
19
Views
818
• Calculus and Beyond Homework Help
Replies
3
Views
620
• Calculus and Beyond Homework Help
Replies
21
Views
899
• Calculus and Beyond Homework Help
Replies
6
Views
804
• Calculus and Beyond Homework Help
Replies
4
Views
733
• Calculus and Beyond Homework Help
Replies
5
Views
665
• Calculus and Beyond Homework Help
Replies
8
Views
791
• Calculus and Beyond Homework Help
Replies
22
Views
1K
• Calculus and Beyond Homework Help
Replies
8
Views
798
• Calculus and Beyond Homework Help
Replies
14
Views
472