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

-2
2
5
7
7
Solution
The given differential equation is dxdy=y+3. This is a first-order differential equation that can be solved using separation of variables.
-
Separate the variables:
y+3dy=dx
-
Integrate both sides:
∫y+3dy=∫dx
log∣y+3∣=x+C
where C is the constant of integration.
-
Use the initial condition to find the constant C:
We are given y(0)=2. Substitute x=0 and y=2:
log∣2+3∣=0+C
log5=C
-
Substitute the value of C back into the general solution:
log∣y+3∣=x+log5
-
Express y explicitly:
log∣y+3∣−log5=x
Using the logarithm property loga−logb=log(a/b):
log5y+3=x
Exponentiate both sides with base e:
5y+3=ex
(Since y(0)=2, y+3=5, which is positive. Assuming a continuous solution, y+3 remains positive, so ∣y+3∣=y+3.)
y+3=5ex
y=5ex−3
-
Calculate y(log2):
Substitute x=log2:
y(log2)=5elog2−3
Using the property eloga=a:
y(log2)=5(2)−3
y(log2)=10−3
y(log2)=7