Is this a linear or seperable differential equation?

Click For Summary
SUMMARY

The discussion revolves around solving the initial value problem for the differential equation dy/dx = (20-2y)/(5-x) with the condition y(0) = 0. The user initially attempts to separate variables but encounters an algebraic error in their integration process. The correct approach involves recognizing the equation as a linear differential equation and applying the integrating factor method. The final solution, as stated in the user's reference book, is y = 4x - (2/5)x^2, highlighting the importance of careful manipulation of constants during integration.

PREREQUISITES
  • Understanding of linear differential equations and their forms.
  • Familiarity with the integrating factor method for solving linear DEs.
  • Knowledge of separation of variables technique in differential equations.
  • Basic algebraic manipulation skills, particularly with logarithmic and exponential functions.
NEXT STEPS
  • Study the integrating factor method for linear differential equations in detail.
  • Practice solving differential equations using the separation of variables technique.
  • Review algebraic manipulation of constants in integration, especially in the context of differential equations.
  • Explore the implications of initial conditions on the solutions of differential equations.
USEFUL FOR

Students studying differential equations, educators teaching calculus, and anyone looking to improve their problem-solving skills in mathematical analysis.

pegasi
Messages
2
Reaction score
0

Homework Statement



Solve the initial value problem of the following DE, given that y(0) = 0

dy/dx = (20-2y)/(5-x)


Homework Equations



Integrating factor for Linear DE's: e ^ ([tex]\int[/tex]P(x)dx) where Linear DE is of form dy/dx + P(x)y = Q(x).


The Attempt at a Solution



Hi,
I'm having trouble understanding why my technique doesen't work. I suspect this differential equation needs to be treated as a linear one, but if this is the case I have no idea why it must be treated this way? Why does my approach not work?


Instead of solving for a linear DE, I thought that this equation could be separated:

1/(20-2y) dy = 1/(5-x) dx

integrate both sides:
[tex]\int[/tex]1/(20-2y) dy = [tex]\int[/tex]1/(5-x) dx

-1/2 ln|10-y| = -ln|5-x| + C

ln|10-y| = 2ln|5-x| - 2C

10-y = (5-x)^2 + e^(-2C)

rewrite e^(-2C) as C...

10-y = (5-x)^2 + C

sub in x=0 and y=0

10 = 25 + C

C = -15

10-y = (5-x)^2 - 15

y = 10x - x^2


However my book states that the answer is actually y = 4x - (2/5)x^2


Any help anyone could provide will be very much appreciated. I don't need this done for me, I just want to know why my approach does not work (or what trivial mistake I have made and overlooked), and what alternative approach I should use instead.

Thanks in advance

PS, apologies for the strange formatting, the latex integral signs are oversized, I do not know how to write latex...
 
Physics news on Phys.org
pegasi said:

Homework Statement



Solve the initial value problem of the following DE, given that y(0) = 0

dy/dx = (20-2y)/(5-x)


Homework Equations



Integrating factor for Linear DE's: e ^ ([tex]\int[/tex]P(x)dx) where Linear DE is of form dy/dx + P(x)y = Q(x).


The Attempt at a Solution



Hi,
I'm having trouble understanding why my technique doesen't work. I suspect this differential equation needs to be treated as a linear one, but if this is the case I have no idea why it must be treated this way? Why does my approach not work?


Instead of solving for a linear DE, I thought that this equation could be separated:

1/(20-2y) dy = 1/(5-x) dx

integrate both sides:
[tex]\int[/tex]1/(20-2y) dy = [tex]\int[/tex]1/(5-x) dx

-1/2 ln|10-y| = -ln|5-x| + C

ln|10-y| = 2ln|5-x| - 2C

10-y = (5-x)^2 + e^(-2C)
Here's your error. [itex]e^{a+b}e^ae^b[/itex], not [itex]e^a+ e^b[/itex]
You should have [itex]10- y= (5-x)^2e^{-2C}[/itex] and, writing [itex]e^{-2C}[/itex] as "C" as you do below, [/quote]10- y= C(5- x)^2[/quote]

rewrite e^(-2C) as C...

10-y = (5-x)^2 + C

sub in x=0 and y=0

10 = 25 + C

C = -15

10-y = (5-x)^2 - 15

y = 10x - x^2


However my book states that the answer is actually y = 4x - (2/5)x^2


Any help anyone could provide will be very much appreciated. I don't need this done for me, I just want to know why my approach does not work (or what trivial mistake I have made and overlooked), and what alternative approach I should use instead.

Thanks in advance

PS, apologies for the strange formatting, the latex integral signs are oversized, I do not know how to write latex...
 
Thank you! I'm glad it was an algebraic error not some kind of misconception. I need to give constants more thought it seems.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
883
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
4
Views
3K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K