Integrating factor for solving equation problem.

yaho8888
Messages
62
Reaction score
0

Homework Statement



Find the gerneral solution of the differential equation below:
dy/dt=(-y/t)+2

Homework Equations



none

The Attempt at a Solution





my solution by using integrating factor:
1.find the homogenous solution first
dy/y = -1/t dt
you get ln(y) = -ln(t) when integrating both side.
you get y = -t

2. find gerenal soultion:
u(t) = 1/y(homogenous)
so in this case u(t) =1/-t, b(t) = 2

now apply integrating method:
(u(t)y(t))' = u(t)b(t)
(y(t)/-t)' = 2/-t
taking integral of both side we get
y(t)/-t = -2ln(t)+c = -ln(t^2)+c
then Y(t) = -t(-ln(t^2)+c) = -tln(t^2)+-tc
we get y(t) = -tln(t^2)+-tc for general solution.

but the book answer is y(t) = t+c/t

so did I do anything wrong, I don't really find anything wrong myself.
 
Physics news on Phys.org
yaho8888 said:
1.find the homogenous solution first
dy/y = -1/t dt
you get ln(y) = -ln(t) when integrating both side.
you get y = -t

It is not ln(-t), it is -ln(t).

2. find gerenal soultion:
u(t) = 1/y(homogenous)
so in this case u(t) =1/-t, b(t) = 2

Shouldn't u(t) = 1/t just by reading off the differential equation?

(y(t)/-t)' = 2/-t
taking integral of both side we get
y(t)/-t = -2ln(t)+c = -ln(t^2)+c

Differentiate, not integrate.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top