Problem:
y″−3y′+2y=cosx
Solution:
The solution to the homogeneous equation w″−3w′+2w=0 is obviously w1=ex and w2=e2x.
Next, we solve the equation pair:
v′1ex+v′2e2x=0.
v′1ex+2v′2e2x=cosx.
The second equation subtracts the first equation gives:
v′2e2x=cosx
Therefore v′2=cosxe−2x.
This time I do the integral myself using Euler's relation!
Consider the integral ∫eixe−2xdx=∫(cosx+isinx)e−2xdx. Therefore we can equate the real part to get the result, and the first integral is particularly easy.
∫eixe−2xdx=1−2+ie(−2+i)x.
Next we find the real part of it by rationalizing and Euler's relation.
1−2+ie(−2+i)x=(−2−i)(−2+i)(−2−i)e(−2+i)x=(−2−i)5e(−2+i)x=(−2−i)5e−2xeix=(−2−i)5e−2x(cosx+isinx)
Therefore, we have
v2(x)=∫cosxe−2xdx=e−2x(−25cosx+15sinx)
Similarly, we solve v′1(x) by subtracting the second equation by twice the first one, that gives v′1(x)=−cos(x)e−2x. The integral is very similar and we get v1(x)=∫−cosxe−xdx=e−x(12cosx−12sinx)
Therefore the answer is (−25+12)cosx+(15−12)sinx+Aex+Be2x=110cosx−310sinx+Aex+Be2x.
y″−3y′+2y=cosx
Solution:
The solution to the homogeneous equation w″−3w′+2w=0 is obviously w1=ex and w2=e2x.
Next, we solve the equation pair:
v′1ex+v′2e2x=0.
v′1ex+2v′2e2x=cosx.
The second equation subtracts the first equation gives:
v′2e2x=cosx
Therefore v′2=cosxe−2x.
This time I do the integral myself using Euler's relation!
Consider the integral ∫eixe−2xdx=∫(cosx+isinx)e−2xdx. Therefore we can equate the real part to get the result, and the first integral is particularly easy.
∫eixe−2xdx=1−2+ie(−2+i)x.
Next we find the real part of it by rationalizing and Euler's relation.
1−2+ie(−2+i)x=(−2−i)(−2+i)(−2−i)e(−2+i)x=(−2−i)5e(−2+i)x=(−2−i)5e−2xeix=(−2−i)5e−2x(cosx+isinx)
Therefore, we have
v2(x)=∫cosxe−2xdx=e−2x(−25cosx+15sinx)
Similarly, we solve v′1(x) by subtracting the second equation by twice the first one, that gives v′1(x)=−cos(x)e−2x. The integral is very similar and we get v1(x)=∫−cosxe−xdx=e−x(12cosx−12sinx)
Therefore the answer is (−25+12)cosx+(15−12)sinx+Aex+Be2x=110cosx−310sinx+Aex+Be2x.
No comments:
Post a Comment