(b) Find a particular solution of the differential equation (x+1)dydx=2e−y−1, given that y=0 when x=0.(x+1) \frac{dy}{dx} = 2e^{-y} - 1, \text{ given that } y=0 \text{ when } x=0. (differential equation, particular solution, initial condition, separable differential equation)

Answer: y=ln⁡∣2x+1x+1∣y = \ln\left|\frac{2x + 1}{x+1}\right|

Step-by-step solution

Step 1: Separate the variables

The given differential equation is a variable separable type. To solve it, we need to rearrange the terms so that all yy terms are on one side with dydy, and all xx terms are on the other side with dxdx. We start by dividing both sides by (2e−y−1)(2e^{-y}-1) and (x+1)(x+1) and multiplying both sides by dxdx.

Step 2: Integrate both sides

Now that the variables are separated, we integrate both sides of the equation. This step introduces an integration constant, which we will solve for later using the initial condition.

Step 3: Simplify the left integral

To integrate the left side, we multiply the numerator and denominator by eye^y. This transforms the denominator into a simpler form for substitution, making the integral easier to solve.

Step 4: Substitute for the left integral

We use a substitution method for the left integral. Let u=2−eyu = 2 - e^y. Then, differentiate uu with respect to yy to find dudu. This substitution allows us to express the integral in terms of uu.

Step 5: Evaluate the left integral

Substituting uu and dudu into the left integral gives us ∫−duu\int \frac{-du}{u}. This is a standard integral, which evaluates to −ln⁡∣u∣-\ln|u|. Substituting back u=2−eyu = 2 - e^y, we get −ln⁡∣2−ey∣+C1-\ln|2 - e^y| + C_1.

Step 6: Evaluate the right integral

The right integral ∫1x+1dx\int \frac{1}{x+1} dx is also a standard integral. It evaluates to ln⁡∣x+1∣+C2\ln|x+1| + C_2. We'll combine the constants of integration later.

Step 7: Combine the integrals

Equating the results of both integrals, we get −ln⁡∣2−ey∣=ln⁡∣x+1∣+C-\ln|2 - e^y| = \ln|x+1| + C, where C=C2−C1C = C_2 - C_1 is the combined constant of integration. This is the general solution to the differential equation.

Step 8: Apply initial condition

We are given the initial condition y=0y=0 when x=0x=0. Substitute these values into the general solution to find the specific value of the constant CC. Since e0=1e^0 = 1 and ln⁡(1)=0\ln(1) = 0, we find that C=0C=0.

Step 9: Substitute C back into the solution

Now that we have determined C=0C=0, we substitute this value back into the general solution to obtain the particular solution. This equation implicitly defines yy in terms of xx.

Step 10: Simplify and solve for y (optional)

To express yy explicitly, we can perform algebraic manipulations. We move the negative sign into the logarithm using the property aln⁡b=ln⁡baa\ln b = \ln b^a. Then, we equate the arguments of the logarithms and solve for eye^y. Taking the natural logarithm of both sides gives us yy as a function of xx.

More from this chapter

All Differential Equations solutions →

Solve your own maths question free →