1st order linear differential equation

In summary, the person is trying to solve a 1st order linear diff. eq., but is getting confused. If someone could help them with the process of solving the equation, that would be great.
  • #1
musicmar
100
0

Homework Statement


I'm trying to study for a quiz tomorrow by doing some practice problems. If someone could help me with the process of solving a 1st order linear diff. eq., that would be great.

(x+1)(dy/dx) + (x+2)y = 2xe-x



Homework Equations





The Attempt at a Solution



dy/dx + [(x+2)/(x+1)]y = 2xe-x/(x+1)

integrating factor: e∫(x+2)/(x+1)= exlx+1l

This is where I get confused. I should be able to use the product rule here:

(y(exlx+1l)'

so that I will be able to take the integral of (above) and {2xe-x/(x+1)]*[exlx+1l].

Once I take the integrals, then I can solve for c(not in this problem, though) and try to solve for y explicitly. Some help with the middle steps would be greatly appreciated.
 
Physics news on Phys.org
  • #2
First divide throughout to obtain an equation of the form:
[tex]
\frac{dy}{dx}+P(x)y=Q(x)
[/tex]
Then multiply through by the integrating factor and the LHS will be a total derivative, in your case it should be:
[tex]
\left( e^{x}(1+x)y\right) '=2x
[/tex]
 
  • #3
Where did the 2x come from?
 
  • #4
The point was that the formula you used for the integrating factor requires that the coefficient of the derivative be 1. Here it is x+ 1 so you need to divide the entire equation by x+1:
[tex]\frac{dy}{dx}+ \frac{x+2}{x+1}y= \frac{2x}{x+1}e^{-x}[/tex].
(The first equality is from the product rule, the second from just multiplying the left side of the differential equation by u.)

Now, you are looking for a function, u(x), so that multiplying by it will make that left side a single derivative:
[tex]\frac{d(u(x)y)}{dx}= u(x)\frac{dy}{dx}+ \frac{du}{dx}y= u\frac{dy}{dx}+ \frac{x+2}{x+1}u y[/itex]
That is, we must have
[tex]\frac{du}{dx}= \frac{x+2}{x+1}u[/tex]
or
[tex]\frac{du}{u}= \frac{x+2}{x+1}dx= (1+ \frac{1}{x+2})dx[/tex]

Integrating both sides, [itex]ln(u)= x+ ln(x+2)[/itex] so that
[tex]u(x)= e^{x+ ln(x+2)}= (x+ 2)e^x[/tex]

What do you get when you multiply both sides of your equation by that?
 
Last edited by a moderator:
  • #5
dy/dx + [(x+2)/(x+1)]y = 2xe-x/(x+1)

y'(x+2)ex+[(x+2)2/(x+1)]y=2x

Ok, now I see where the 2x comes from. Do I have the rest right?

If so, then by the product rule I should have:

(ex(x+2)y)'=2x

Taking the integral of both sides:

ex(x+2)y=x2+c

y=(x2+c)/(ex(x+2))


Yes?
 

1. How do I solve a 1st order linear differential equation?

To solve a 1st order linear differential equation, you can use the method of separation of variables, integrating factors, or the method of variation of parameters.

2. What is the general form of a 1st order linear differential equation?

The general form of a 1st order linear differential equation is dy/dx + P(x)y = Q(x), where P(x) and Q(x) are functions of x.

3. Can a 1st order linear differential equation have more than one solution?

Yes, a 1st order linear differential equation can have an infinite number of solutions. This is because the solution depends on the initial conditions given.

4. How do I check if a given function is a solution to a 1st order linear differential equation?

To check if a given function y(x) is a solution to a 1st order linear differential equation, plug in y(x) and its derivative into the equation and see if it satisfies the equation.

5. Can a 1st order linear differential equation have a constant solution?

Yes, a 1st order linear differential equation can have a constant solution if the equation is of the form dy/dx = 0. In this case, the solution is simply y = c, where c is a constant.

Similar threads

  • Calculus and Beyond Homework Help
Replies
21
Views
832
  • Calculus and Beyond Homework Help
Replies
8
Views
758
  • Calculus and Beyond Homework Help
Replies
7
Views
678
  • Calculus and Beyond Homework Help
Replies
4
Views
938
  • Calculus and Beyond Homework Help
Replies
10
Views
469
  • Calculus and Beyond Homework Help
Replies
7
Views
267
  • Calculus and Beyond Homework Help
Replies
25
Views
330
Replies
7
Views
517
  • Calculus and Beyond Homework Help
Replies
19
Views
770
  • Calculus and Beyond Homework Help
Replies
2
Views
725
Back
Top