Mehek A. answered 05/17/20
Hold a Minor in Applied Mathematics
This can be rewritten as a first order separable ODE. It is in the form dy/dx × N(y) = M(x)
Solving the equation by rearranging in this form makes it out to be:
dy/dx × (1⁄y-4) = -cos(x)
Where N(y) = (1⁄y-4) and M(x) = -cos(x)
Integrating the equation on both sides you get:
∫(1⁄y-4) dy = - ∫cos(x) dx
ln(y-4) = -sin(x) + C , where C∈ ΙR
C, our constant of integration, belongs to a real number
To get rid of the natural log, we must do the inverse. That means raising everything to the power of e , or Euler's number.
eln(y-4) = e-sin(x) + C
Then recall: eln(x) = x
eln(y-4) = y-4
This simplifies to:
y-4 = e-sin(x) + C
Isolating for y by adding 4 to the other side:
y = e-sin(x) + C + 4
___________________________________________________________________________
Now to find the particular solution, we must solve for our constant of integration, C
Since y(0) = 6
x = 0 , y = 6
y(0) = 6 = e-sin(0) + C + 4
6 = e-sin(0) + C + 4
6 = e0 + C + 4
6 = eC + 4
6 − 4 = eC
2 = eC
ln(2) = ln(eC)
ln(2) = C
Plugging C back in for our equation for y our particular solution is:
yp(x) = e-sin(x) + ln(2) + 4