Question
Question: If \(\dfrac{{dy}}{{dx}} = y + 3\) and \(y(0) = 2\) then \(y(\ln (2))\) is equal to: A) \(7\) B) ...
If dxdy=y+3 and y(0)=2 then y(ln(2)) is equal to:
A) 7
B) 5
C) 13
D) −2
Solution
The given equation is a simple linear differential equation. So we just have to arrange terms of similar variables on one side and then simply integrate to get the function of y in terms of x. Then we will use this relation to find desired value.
Complete step-by-step answer:
Given, dxdy=y+3,
After some rearrangements we get,
y+3dy=dx
Now, Integrate both sides,
∫y+3dy=∫dx
Since, ∫xdx=ln(x)+c and ∫dx=x+c
So we get,
ln(y+3)+c1=x+c2
On further solving we get,
ln(y+3)=x+c2−c1
This is equivalent to
ln(y+3)=x+c --------(1)
Now given, y(0)=2 So putting x=0 and y=2 in above equation we get,
ln(2+3)=0+c
We get c as,
c=ln(5)
Using above value of c in equation 1 we get final equation as,
ln(y+3)=x+ln(5)
On simplifying, we get,
ln(y+3)−ln(5)=x
This simplifies to
ln(5y+3)=x -------(2)
Because lna−lnb=lnba
Now, we want to find value of y when x=ln(2)
So, using equation 2 we get,
ln(5y+3)=ln(2)
On comparing we get,
5y+3=2
On simplification we get,
y+3=10
So we get our answer as,
y=7
Hence, the correct option is (A).
Note: We simplified two constant values in our solutions into a single constant ( c2−c1=c ) because two constants, on subtraction, again gives a constant value which was equivalent to ln(5) . Otherwise, we would not be able to find two constant values separately.