First Order Linear Differential Equation with Initial Value | y'=y+x, y(0)=2

Click For Summary

Homework Help Overview

The discussion revolves around solving a first order linear differential equation given by y' = y + x with the initial condition y(0) = 2. Participants are exploring methods to approach this type of problem, particularly focusing on the use of integrating factors.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the use of an integrating factor and the process of multiplying the differential equation by an exponential function. There are questions about the correct form of the integrating factor and its derivation. Some participants express uncertainty about their approaches and the steps involved in solving the equation.

Discussion Status

The discussion is active, with participants providing insights into the use of integrating factors and questioning the correctness of their calculations. Some guidance has been offered regarding the integration process, but there is no explicit consensus on the final solution or approach.

Contextual Notes

There is a noted confusion regarding the integrating factor, with different participants suggesting different forms. The initial condition provided is also a point of focus as participants attempt to incorporate it into their solutions.

ganondorf29
Messages
49
Reaction score
0

Homework Statement


Solve the inital value first order linear differential equation

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

Homework Equations


The Attempt at a Solution



y'-y=x

That's as far as I got. I'm not sure how to approach this. I've looked through my notes and book, and I don't have any examples that are similar to this. I looked online and it said something about raising the coefficient of y to e, but I'm not sure what to do after.
 
Physics news on Phys.org
You should multiply by an exponential factor.
y'-y=x
exp(-x)y'-exp(-x)y=exp(-x)x
(exp(-x)y)'=exp(-x)x
Usually the exponential factor is of the form:
if y'+f(x)y=g(x)
then the exponential factor is:
u=exp([tex]\int f(x)dx[/tex])
Take the integral of xexp(-x) by parts, and then your'e done.
 
Hi; I tried using an integration factor, and using the initial value provided (y(0)=2), I arrived at a particular solution of [tex]y=x-1+3e^{-x}[/tex].

I just saw loop's reply above. The integration factor I obtained was [tex]e^x[/tex].
 
For the linear equation y'+ f(x)y= g(x), and integrating factor is a function m(x) such that multiplying by it, m(x)y'+ m(x)f(x)y= f(x)g(x), reduces the left side to a single derivative: (m(x)y)'. Since, by the product rule, (m(x)y)'= my'+ m'y= my'+ mfy, we must have m'= m(x)f(x) which is, itself, a separable differential equation: dm/m= f(x)dx so [itex]ln(m)= \int f(x)dx[/itex] and so [itex]m(x)= e^{\int f(x)dx}[/itex]. For this particular problem f(x) is the constant -1 so your integrating factor is [itex]e^{-x}[/itex], not [itex]e^x[/itex]. Multiplying the equation by [itex]e^{-x}[/itex], we have [itex]e^{-x}y'- e^{-x}y= (e^{-x}y)'= xe^{-x}[/itex]. Integrating both sides of that (the left side by parts, as loop quantum gravity said) you get [itex]e^{-x}y= -(x+1)e^{-x}+ C[/itex] or [itex]y= -x- 1+ Ce^x[/itex] and, since y(0)= 2, 2= -1+ C and C= 3.
[itex]y= -x-1+ 3e^x[/itex]

Notice that if [itex]y= x- 1+ 3e^{-x}[/itex] then [itex]y'= 1- 3e^{-x}[/itex] while [itex]y+ x= x- 1+ 3e^{-x}+ x= 2x- 1+ 3e^{-x}[/itex] so your y does NOT satisfy the differential equation.
 
Last edited by a moderator:
Thanks for pointing out that mistake Ivy...
 

Similar threads

Replies
7
Views
2K
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
7
Views
2K
Replies
2
Views
1K
  • · Replies 27 ·
Replies
27
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K