At first, we solve the equation: y′′−y=0. To solve the equation, we substitute solution of the form:g=eλx and receive the equation for λ: λ2−1=0. Solutions are: λ=±1. Thus, the solution of the homogenous equation y′′−y=0 is: g=c1ex+c2e−x. The solution of the initial equation can be presented as: y=g+f, where f is a solution of the initial equation. Substitute f=cex with function c(x) into the initial equation:
1). c′′ex+2c′ex+cex−cex=1+ex4. Do the change of variables: f1=c′ in the equation: f1′ex+2f1ex=1+ex4 .Solve another homogeneous equation: f1′=−2f1. The solution is: f1=b1e−2x. Suppose that b1 is a function. Substitute the latter expression into equation f1′ex+2f1ex=1+ex4 and receive: b1′=1+ex4ex Compute the integral to find f1: b1=4∫1+exd(ex)=4(ln(1+ex)+C1). f1=4e−2xln(1+ex)+e−2xC1. c=∫fdx=∫(4e−2xln(1+ex)+4e−2xC1)dx=I1+I2, where I1=4∫e−2xln(1+ex)dx, I2=4∫e−2xC1dx. Compute the integral I1 :
I1=4∫e−2xln(1+ex)dx. Make the change of variables: z=ex. The integral becomes: I1=4∫z−3ln(1+z)dz=−2z−2ln(1+z)+2∫1+zz−2dz=−2e−2xln(1+ex)+2(−e−x+ln(1+ex)−x)+a1
I2=−2C1e−2x+a2
Thus, c=−2e−2xln(1+ex)+2(−e−x+ln(1+ex)−x)+a1−2C1e−2x+a2 and, respectively:
f=−2+2(ex−e−x)ln(1+ex)−2xex−2C1e−x+Kex. Last two terms can be absorbed by g and y=c1ex+c2e−x−2+2(ex−e−x)ln(1+ex)−2xex This is the solution of the problem.
Comments