Find integrating factor and solve the equation 3

naspek
Messages
176
Reaction score
0
y' + y = e^x ; y(0) = 1

1st, i calculate the integrating factor...
u(x) = e^x

times the integrating factor with DE...

y'e^x + ye^x = e^2x

dy/dx e^x + ye^x = e^2x

d/dx ye^x = e^2x

ye^x = ∫ e^2x dx
...= 1/2 e^2x + C

y = 1/2 e^x + C

the problem here, i didn't get the answer given which is..
y = 1/2 (e^x + e^-x)
 
Physics news on Phys.org
You made an algebra mistake in the last step when solving for y.
 
ok.. here is my mistake...
ye^x = ∫ e^2x dx
...= 1/2 e^2x + C

so.. when am i going to solve C value?
 
naspek said:
ok.. here is my mistake...
ye^x = ∫ e^2x dx
...= 1/2 e^2x + C

so.. when am i going to solve C value?

Up to there is correct. Your error was in the very last step you wrote when you solved for y.

You can solve for C any time you want. Most of the time, it's done as the final step.
 
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