Post

Created by @nathanedwards
 at November 1st 2023, 4:25:37 pm.

AP Calculus AB Exam Question:

Consider the following differential equation:

dydx+y=y2\frac{dy}{dx} + y = y^2

(a) By separating the variables, solve the given differential equation.

(b) Use the initial condition y(0)=1y(0) = 1 to find the particular solution.

Answer:

Part (a):

To solve the given differential equation dydx+y=y2\frac{dy}{dx} + y = y^2, we can separate the variables.

First, we write the equation as:

dydx=y2y\frac{dy}{dx} = y^2 - y

Next, we can express the differential equation in terms of separate variables:

dyy2y=dx\frac{dy}{y^2 - y} = dx

To proceed with separation, we write the non-trivial terms as partial fractions. Factoring the denominator, we have:

dyy(y1)=dx\frac{dy}{y(y-1)} = dx

Now, we can rewrite the equation as:

Ay+By1=dx\frac{A}{y} + \frac{B}{y-1} = dx

To find the values of A and B, we multiply both sides of the equation by the common denominator (y(y-1)):

A(y1)+By=dxA(y-1) + By = dx

Let's equate the coefficients of the constant term and y:

AA+ByB=dxA - A + By - B = dx

A+B=0A + B = 0 ...(1)

A=dx-A = dx ...(2)

From equation (2), we can see that A=dxA = -dx.

Substituting this back into equation (1), we get:

dx+B=0-dx + B = 0

B=dxB = dx

Therefore, we have A=dxA = -dx and B=dxB = dx.

Now, we rewrite the original equation, separating the variables:

(1y+1y1)dy=dx\int\left(\frac{-1}{y} + \frac{1}{y-1}\right)dy = \int dx

Integrating both sides with respect to y, we have:

lny+lny1=x+C-ln|y| + ln|y-1| = x + C

Using the logarithmic properties, we can simplify the equation further:

lny1y=x+Cln\left|\frac{y-1}{y}\right| = x + C

Finally, we exponentiate both sides to eliminate the logarithms:

y1y=ex+C\frac{y-1}{y} = e^{x+C}

y1y=Cex\frac{y-1}{y} = Ce^x

Cross-multiplying:

y1=Cyexy - 1 = Cye^x

y(1Cex)=1y(1-Ce^x) = 1

y=11Cexy = \frac{1}{1-Ce^x}

Therefore, the general solution to the given differential equation is:

y=11Cexy = \frac{1}{1-Ce^x}.

Part (b):

Now, we need to use the initial condition y(0)=1y(0) = 1 to find the particular solution.

Substituting x=0x = 0 and y=1y = 1 into the general solution, we have:

1=11Ce01 = \frac{1}{1-Ce^0}

1=11C1 = \frac{1}{1-C}

Solving for C, we have:

1C=11 - C = 1

C=0C = 0

Therefore, the particular solution to the initial condition is:

y=110exy = \frac{1}{1-0e^x}

y=11y = \frac{1}{1}

y=1y = 1

Hence, the particular solution to the differential equation with the initial condition y(0)=1y(0) = 1 is y=1y = 1.

Therefore, the solution to the given differential equation with the initial condition is:

y=11Cexy = \frac{1}{1-Ce^x}

where C=0C = 0.