p53ud0 dr34m5
- 94
- 0
\frac{dy}{dx}=x-4-xy-4y
you are given that y(0)=4.
so, here's what i did:
\frac{dy}{dx}=(x-4)(y+1)
\frac{dy}{y+1}=(x-4)dx
i integrated both sides:
ln(y+1)=\frac{x^2}{2}-4x+C
y=e^{\frac{x^2}{2}}e^{-4x}e^{C}-1
plugged in for x and y:
4=e^{\frac{0^2}{x}}e^{-4*0}e^{C}-1
5=e^C
so:
y=5e^{\frac{x^2}{x}}e^{-4x}
i know that's wrong, and i need help working it out. that's what i have so far though.
you are given that y(0)=4.
so, here's what i did:
\frac{dy}{dx}=(x-4)(y+1)
\frac{dy}{y+1}=(x-4)dx
i integrated both sides:
ln(y+1)=\frac{x^2}{2}-4x+C
y=e^{\frac{x^2}{2}}e^{-4x}e^{C}-1
plugged in for x and y:
4=e^{\frac{0^2}{x}}e^{-4*0}e^{C}-1
5=e^C
so:
y=5e^{\frac{x^2}{x}}e^{-4x}
i know that's wrong, and i need help working it out. that's what i have so far though.