Solving ODE Separable Equations with Cs

  • Thread starter Thread starter tony873004
  • Start date Start date
  • Tags Tags
    Ode
Click For Summary

Homework Help Overview

The discussion revolves around solving a separable ordinary differential equation (ODE) of the form dy/dx + 2xy = 0. Participants are exploring the integration process and the handling of constants of integration, particularly the implications of using multiple constants.

Discussion Character

  • Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the confusion surrounding the constants of integration, questioning whether the constants from different sides of the equation can be treated as the same. There are attempts to clarify how constants combine during integration and how they relate to the final expression for y.

Discussion Status

Some participants have provided insights into the integration process and the treatment of constants, suggesting that constants can be combined and redefined. There is an ongoing exploration of the implications of these constants on the final solution.

Contextual Notes

Participants express confusion regarding the notation and the treatment of constants, indicating a need for clarity in the definitions and roles of these constants in the context of the problem.

tony873004
Science Advisor
Gold Member
Messages
1,753
Reaction score
143
I'm getting confused as to what to do with the C's.

Homework Statement


[tex]\frac{{dy}}{{dx}} + 2xy = 0[/tex]


Homework Equations



Back of Book: [tex]y\left( x \right) = C\exp \left( { - x^2 } \right)[/tex]

The Attempt at a Solution


[tex]\begin{array}{l}<br /> \frac{{dy}}{{dx}} = - 2xy\,\,\,\, \Rightarrow \,\,\,\,\frac{{dy}}{y} = - 2x\,dx\,\,\,\, \Rightarrow \,\,\,\,\frac{1}{y}dy = - 2x\,dx \\ <br /> \\ <br /> \int_{}^{} {\frac{1}{y}dy} = \int_{}^{} { - 2x\,dx} \\ <br /> \\ <br /> \ln \left( y \right) = \frac{{ - 2x^2 }}{2} + C\,\,\,\, \Rightarrow \,\,\,\,\ln \left( y \right) = - x^2 + C\,\,\,\, \Rightarrow \,\,\,\, \\ <br /> \\ <br /> \exp \left( {\ln \left( {y + C} \right)} \right) = \exp \left( { - x^2 + C} \right)\,\,\,\, \Rightarrow \,\,\,\, \\ <br /> \\ <br /> y + C = \exp \left( { - x^2 + C} \right)\,\,\,\, \Rightarrow \,\,\,\,y = \exp \left( { - x^2 + C} \right) - C \\ <br /> \end{array}[/tex]

The C from the y part is not necessarily the same C as from the x part, is it? How did they end up with only 1 C, and how did they get their C out of the parenthesis to end up multiplying by the right side?

Thanks in advance!
 
Physics news on Phys.org
When you integrate both sides, you get C1 on the y side & C2 on the x side. You can combine them, to make C2-C1=C leaving it on the x side.
 
Also, I don't see where you've typed out your last question. Kind of confusing me as well.

Maybe this will help. e^(x+y)=e^x e^y
 
tony873004 said:

The Attempt at a Solution


[tex]\exp \left( {\ln \left( {y + C} \right)} \right)[/tex]

Where did this [itex]C[/itex] come from?

If you want to include a constant of integration for [tex]\int\frac{dy}{y}[/tex] You should have [tex]\int\frac{dy}{y}=\ln(y)+C\neq\ln(y+C)[/tex]

Also, you should label your constants so that you don't confuse them with each other:

[tex]\int\frac{dy}{y}=\ln(y)+C_1[/tex]

[tex]\int -2x dx=-x^2+C_2[/tex]

[tex]\implies \ln(y)+C_1=-x^2+C_2 \implies \ln(y)=-x^2 +(C_2-C_1)[/tex]

but [itex](C_2-C_1)[/itex] is just going to be some constant, you may as well call [itex]C_3[/itex]

[tex]\implies \ln(y)=-x^2+C_3 \implies y=e^{-x^2+C_3}=e^{C_3}e^{-x^2}[/itex]<br /> <br /> And then just call [itex]C\equiv e^{C_3}[/itex].[/tex]
 
Thanks rocomath. I understand up to e^(-x^2) e^C . But how does that turn into Ce^(-x^2) ?
For example, 2^3 * 2^4 doesn’t turn into 4*2^3.
128 <> 32
 
e is a positive constant, C is a constant, positive constant^constant = constant. e^C = A - better?
 
Thanks, gabba^2hey! C3 did the trick!
 

Similar threads

Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
3
Views
2K
Replies
3
Views
2K
Replies
12
Views
2K
Replies
14
Views
10K
Replies
6
Views
2K
Replies
4
Views
2K