# Ordinary DE using integrating factor?

• cheddacheeze
In summary, the student attempted to solve an initial condition problem but made mistakes. When substituting the initial condition into the equation, they found that C=-22e^{16}.

## Homework Statement

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

## The Attempt at a Solution

first i rearranged

$$xy'+y+4xy=-8$$
$$xy'+y(1+4x)=-8$$
$$y'+y(1/x+4)=-8/x$$

integrating factor:$$e^\int(1/x+4)$$
$$e^(lnx+4x)$$
$$x+e^4x$$

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

just wondering if I am going alright so far... and if i am how do you integrate
$$\int (8e^4x/x)$$

Last edited:
cheddacheeze said:
integrating factor:$$e^\int(1/x+4)$$
$$e^(lnx+4x)$$
$$x+e^4x$$

Careful, $e^{a+b}=e^a e^b \neq e^a+e^b$

$$x+e^(4x)$$ its
$$xe^(4x)$$?

Yup.

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

gabbagabbahey said:
Yup.

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

haha cheers for both advices, this should make things easier

ok after using:
$$xe^{4x}$$ as an integrating factor
i got
$$xe^{4x} y(x)=\int-8e^{4x}$$
$$xe^{4x} y(x)= -2e^{4x} +C$$
$$y(x)=-2e^{4x}/xe^{4x} + C$$
$$y(x)=-2/x +C$$

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

and it doesn't seem to be the right answer

cheddacheeze said:
$$xe^{4x} y(x)= -2e^{4x} +C$$
$$y(x)=-2e^{4x}/xe^{4x} + C$$

Shouldn't you also divide $C$ by $xe^{4x}$ here?

gabbagabbahey said:
Shouldn't you also divide $C$ by $xe^{4x}$ here?

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

using:

$$y(x) = -2/x + C/(xe^{4x})$$

and by substituing initial conditions i got:

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

is this right or did i miss something...

Last edited:
11*4=44, not 22

cheddacheeze said:
using:

$$y(x) = -2/x + C/(xe^{4x})$$

and by substituing initial conditions i got:

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

is this right or did i miss something...

sorry there wasnt supposed to be
$$C=(-22e^16)/2$$
divide 2 there, i just simplified and got
$$C=(-22e^16)$$

Okay, that looks correct then

ok i must have done algebra somewhere incorrect then, can't get the right answer out

What was your final answer, and what is the answer "supposed" to be according to your assignment sheet/text?

my answer is $$y(x) = -2/x -22e^{-16}$$
as for the solution i don't know since its a computer entered assignment

What happened to the $xe^{4x}$ in $y(x) = -2/x + C/(xe^{4x})$?

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

didnt think ordinary differential equations could be so annoying
haha...

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 $y(x) = -2/x + C/(xe^{4x})$ as your general solution, substituting your initial condition gave you $C=-22e^{16}$, so your particular solution should be

$$y(x)=-\frac{2}{x}-\frac{22e^{16}}{xe^{4x}}$$

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

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

$$y(x)=-\frac{2}{x}-\frac{22e^{16}}{xe^{4x}}$$

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

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

Last edited:

## What is Ordinary DE using integrating factor?

Ordinary differential equations (ODEs) are equations that involve derivatives of a function with respect to a single independent variable. Integrating factor is a technique used to solve certain types of ODEs.

## What are the steps involved in solving an ODE using integrating factor?

The steps involved in solving an ODE using integrating factor are as follows:
1. Identify the ODE as a first order linear equation.
2. Write the equation in the standard form: y' + p(x)y = g(x).
3. Find the integrating factor, which is the exponential of the integral of p(x).
4. Multiply both sides of the equation by the integrating factor.
5. Use the product rule to simplify the left side of the equation.
6. Integrate both sides of the equation and solve for y.

## What are the advantages of using integrating factor to solve ODEs?

Integrating factor allows for the solving of certain types of ODEs that cannot be solved using other techniques. It also provides a systematic approach to solving linear ODEs.

## Can all ODEs be solved using integrating factor?

No, integrating factor can only be used to solve first order linear ODEs. It cannot be used to solve higher order ODEs or nonlinear ODEs.

## How can I check my solution when using integrating factor to solve an ODE?

To check your solution, plug it back into the original equation and see if it satisfies the equation. Additionally, you can take the derivative of your solution and see if it matches the right side of the equation.

• Calculus and Beyond Homework Help
Replies
7
Views
585
• Calculus and Beyond Homework Help
Replies
9
Views
965
• Calculus and Beyond Homework Help
Replies
8
Views
791
• Calculus and Beyond Homework Help
Replies
12
Views
1K
• Calculus and Beyond Homework Help
Replies
8
Views
674
• Calculus and Beyond Homework Help
Replies
7
Views
574
• Calculus and Beyond Homework Help
Replies
20
Views
305
• Calculus and Beyond Homework Help
Replies
2
Views
410
• Calculus and Beyond Homework Help
Replies
2
Views
1K
• Calculus and Beyond Homework Help
Replies
1
Views
779