Solveeit Logo

Question

Question: If $\frac{dy}{dx}=y+3$ and $y(0)=2$, then $y(\log 2)$ is equal to...

If dydx=y+3\frac{dy}{dx}=y+3 and y(0)=2y(0)=2, then y(log2)y(\log 2) is equal to

A

-2

B

2

C

5

D

7

Answer

7

Explanation

Solution

The given differential equation is dydx=y+3\frac{dy}{dx} = y+3. This is a first-order differential equation that can be solved using separation of variables.

  1. Separate the variables:

    dyy+3=dx\frac{dy}{y+3} = dx

  2. Integrate both sides:

    dyy+3=dx\int \frac{dy}{y+3} = \int dx

    logy+3=x+C\log|y+3| = x + C

    where C is the constant of integration.

  3. Use the initial condition to find the constant C:

    We are given y(0)=2y(0)=2. Substitute x=0x=0 and y=2y=2:

    log2+3=0+C\log|2+3| = 0 + C

    log5=C\log 5 = C

  4. Substitute the value of C back into the general solution:

    logy+3=x+log5\log|y+3| = x + \log 5

  5. Express y explicitly:

    logy+3log5=x\log|y+3| - \log 5 = x

    Using the logarithm property logalogb=log(a/b)\log a - \log b = \log(a/b):

    logy+35=x\log\left|\frac{y+3}{5}\right| = x

    Exponentiate both sides with base ee:

    y+35=ex\frac{y+3}{5} = e^x

    (Since y(0)=2y(0)=2, y+3=5y+3=5, which is positive. Assuming a continuous solution, y+3y+3 remains positive, so y+3=y+3|y+3|=y+3.)

    y+3=5exy+3 = 5e^x

    y=5ex3y = 5e^x - 3

  6. Calculate y(log2)y(\log 2):

    Substitute x=log2x = \log 2:

    y(log2)=5elog23y(\log 2) = 5e^{\log 2} - 3

    Using the property eloga=ae^{\log a} = a:

    y(log2)=5(2)3y(\log 2) = 5(2) - 3

    y(log2)=103y(\log 2) = 10 - 3

    y(log2)=7y(\log 2) = 7