online advertising
Loading [MathJax]/jax/output/HTML-CSS/jax.js

Sunday, January 3, 2016

The method of variation of parameter (II)

Problem:

y3y+2y=cosx

Solution:

The solution to the homogeneous equation w3w+2w=0 is obviously w1=ex and w2=e2x.

Next, we solve the equation pair:

v1ex+v2e2x=0.
v1ex+2v2e2x=cosx.

The second equation subtracts the first equation gives:

v2e2x=cosx

Therefore v2=cosxe2x.

This time I do the integral myself using Euler's relation!

Consider the integral eixe2xdx=(cosx+isinx)e2xdx. Therefore we can equate the real part to get the result, and the first integral is particularly easy.

eixe2xdx=12+ie(2+i)x.

Next we find the real part of it by rationalizing and Euler's relation.

12+ie(2+i)x=(2i)(2+i)(2i)e(2+i)x=(2i)5e(2+i)x=(2i)5e2xeix=(2i)5e2x(cosx+isinx)

Therefore, we have

v2(x)=cosxe2xdx=e2x(25cosx+15sinx)

Similarly, we solve v1(x) by subtracting the second equation by twice the first one, that gives v1(x)=cos(x)e2x. The integral is very similar and we get v1(x)=cosxexdx=ex(12cosx12sinx)

Therefore the answer is (25+12)cosx+(1512)sinx+Aex+Be2x=110cosx310sinx+Aex+Be2x.

No comments:

Post a Comment