Ordinary DE using integrating factor?

Click For Summary

Homework Help Overview

The discussion revolves around solving an ordinary differential equation (ODE) using an integrating factor. The specific problem involves an initial condition and requires the application of integration techniques to find a solution.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the rearrangement of the ODE and the calculation of the integrating factor. There are questions about the correctness of the integrating factor and the subsequent steps in the integration process. Some participants express uncertainty about the integration of specific terms and the handling of constants.

Discussion Status

There is an ongoing exploration of the integration process and the application of initial conditions. Some participants have offered guidance on the correct form of the integrating factor and the implications of substituting initial conditions. Multiple interpretations of the results are being considered, with participants questioning each other's algebraic steps.

Contextual Notes

Participants are working under the constraints of an assignment that requires specific formatting and accuracy in their solutions. There is an acknowledgment of potential errors in algebraic manipulation and the need for careful attention to detail.

cheddacheeze
Messages
42
Reaction score
0

Homework Statement


solve the following initial condition problem
[tex]x (d/dx) y(x) + 4xy(x) = -8-y(x)[/tex]
[tex]y(4)=-6[/tex]

Homework Equations


The Attempt at a Solution


first i rearranged

[tex]xy'+y+4xy=-8[/tex]
[tex]xy'+y(1+4x)=-8[/tex]
[tex]y'+y(1/x+4)=-8/x[/tex]

integrating factor:[tex]e^\int(1/x+4)[/tex]
[tex]e^(lnx+4x)[/tex]
[tex]x+e^4x[/tex]

multiplying integrating factor:
[tex]d/dx(x+e^4x) y'+(1/x+4)(x+e^4x)y=-8/x(x+e^4x)[/tex]
[tex]d/dx(x+e^4x])y=-8/x(x+e^4x)[/tex]
[tex]\int d/dx(x+e^4x])y=\int-8/x(x+e^4x)[/tex]
[tex](x+e^4x)y=\int(-8-8e^4x/x)[/tex]

just wondering if I am going alright so far... and if i am how do you integrate
[tex]\int (8e^4x/x)[/tex]
 
Last edited:
Physics news on Phys.org
cheddacheeze said:
integrating factor:[tex]e^\int(1/x+4)[/tex]
[tex]e^(lnx+4x)[/tex]
[tex]x+e^4x[/tex]

Careful, [itex]e^{a+b}=e^a e^b \neq e^a+e^b[/itex]:wink:
 
so instead of
[tex]x+e^(4x)[/tex] its
[tex]xe^(4x)[/tex]?
 
Yup.:smile:

On a side note, to get exponents with more than one character to display properly in [itex]\LaTeX[/itex], simply enclose them in curly brackets. For example, [itex]xe^{4x}[/itex] is generated using xe^{4x}.
 
gabbagabbahey said:
Yup.:smile:

On a side note, to get exponents with more than one character to display properly in [itex]\LaTeX[/itex], simply enclose them in curly brackets. For example, [itex]xe^{4x}[/itex] is generated using xe^{4x}.

haha cheers for both advices, this should make things easier
 
ok after using:
[tex]xe^{4x}[/tex] as an integrating factor
i got
[tex]xe^{4x} y(x)=\int-8e^{4x}[/tex]
[tex]xe^{4x} y(x)= -2e^{4x} +C[/tex]
[tex]y(x)=-2e^{4x}/xe^{4x} + C[/tex]
[tex]y(x)=-2/x +C[/tex]

using initial conditions:
[tex]y(4) = -2/4+C = -6[/tex]
[tex]c=-11/2[/tex]
[tex]y(x)=-2/x-11/2[/tex]

and it doesn't seem to be the right answer
 
cheddacheeze said:
[tex]xe^{4x} y(x)= -2e^{4x} +C[/tex]
[tex]y(x)=-2e^{4x}/xe^{4x} + C[/tex]

Shouldn't you also divide [itex]C[/itex] by [itex]xe^{4x}[/itex] here? :wink:
 
gabbagabbahey said:
Shouldn't you also divide [itex]C[/itex] by [itex]xe^{4x}[/itex] here? :wink:

hmmmm tried doing that before but still didnt get the right answer
 
using:

[tex]y(x) = -2/x + C/(xe^{4x})[/tex]

and by substituing initial conditions i got:

[tex]y(4)=-2/4+C/(4e^{16})=-6[/tex]
[tex]-11/2=C/(4e^{16})[/tex]
[tex]C=(-22e^16)/2[/tex]

is this right or did i miss something...
 
Last edited:
  • #10
11*4=44, not 22:wink:
 
  • #11
cheddacheeze said:
using:

[tex]y(x) = -2/x + C/(xe^{4x})[/tex]

and by substituing initial conditions i got:

[tex]y(4)=-2/4+C/(4e^{16})=-6[/tex]
[tex]-11/2=C/(4e^{16})[/tex]
[tex]C=(-22e^16)/2[/tex]

is this right or did i miss something...

sorry there wasnt supposed to be
[tex]C=(-22e^16)/2[/tex]
divide 2 there, i just simplified and got
[tex]C=(-22e^16)[/tex]
 
  • #12
Okay, that looks correct then:approve:
 
  • #13
ok i must have done algebra somewhere incorrect then, can't get the right answer out
 
  • #14
What was your final answer, and what is the answer "supposed" to be according to your assignment sheet/text?
 
  • #15
my answer is [tex]y(x) = -2/x -22e^{-16}[/tex]
as for the solution i don't know since its a computer entered assignment
 
  • #16
What happened to the [itex]xe^{4x}[/itex] in [itex]y(x) = -2/x + C/(xe^{4x})[/itex]?
 
  • #17
i substituted the initial conditions into the equation and found what the value of C was and entered my answer as that, maybe i'll try keeping the constant and see if that's right
 
  • #18
didnt think ordinary differential equations could be so annoying
haha...
 
  • #19
cheddacheeze said:
i substituted the initial conditions into the equation and found what the value of C was and entered my answer as that, maybe i'll try keeping the constant and see if that's right

You had [itex]y(x) = -2/x + C/(xe^{4x})[/itex] as your general solution, substituting your initial condition gave you [itex]C=-22e^{16}[/itex], so your particular solution should be

[tex]y(x)=-\frac{2}{x}-\frac{22e^{16}}{xe^{4x}}[/tex]

Not what you had in post #15. You need to pay more attention to basic algebra steps like substitution.
 
  • #20
gabbagabbahey said:
You had [itex]y(x) = -2/x + C/(xe^{4x})[/itex] as your general solution, substituting your initial condition gave you [itex]C=-22e^{16}[/itex], so your particular solution should be

[tex]y(x)=-\frac{2}{x}-\frac{22e^{16}}{xe^{4x}}[/tex]

Not what you had in post #15. You need to pay more attention to basic algebra steps like substitution.

ohhhh... C was over [tex]xe^{4x}[/tex]
keep making stupid mistakes... looks like i need to look at things with more care
thanks a lot :)
 
Last edited:

Similar threads

Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K