Solution for the homogenous equation
y′′−y=0
D2−1=0;D=±1
yh=c1ex+c2e−x
Using method of variations of parameters c1=c1(x);c2=c2(x) will give us the system
c1′(x)ex+c2′(x)e−x=0c1′(x)ex−c2′(x)e−x=1+ex2⟹c1′(x)ex=1+ex1c2′(x)e−x=−1+ex1
c1(x)=∫1+exe−xdx=log(e−x+1)−e−x+c1
c2(x)=−∫1+exexdx=−log(ex+1)+c2
Therefore
y=c1ex+c2e−x+(log(e−x+1)−e−x)ex−log(ex+1)e−x
Comments