============================
Solve the initial value problem:
dy/dx = x - 4 + xy - 4y
y(0) = 4
============================
My friend and I tried this and we got the same answer (see below), but it's incorrect. Where'd we go wrong?
dy/dx = 1(x-4) + y(x-4)
dy/dx = (y+1)(x-4)
~(1/(y+1))dy = ~(x-4)dx
("~" is supposed to be an integral symbol)
u = (y +1)
du = dy
~(1/u)dy = (x²/2) - 4x
ln(y+1) = (x²/2) - 4x
e^[ln(y+1)] = e^[(x²/2) - 4x]
y+1 = e^[(x²/2) - 4x]
y = e^[(x²/2) - 4x] - 1 + c
4 = e^[(0)²/2) - 4(0)] - 1 + c
4 = e^[0] - 1 + c
c = 4
y = e^[(x²/2) - 4x] + 3
So, it didn't seem that hard...what'd we do?
Solve the initial value problem:
dy/dx = x - 4 + xy - 4y
y(0) = 4
============================
My friend and I tried this and we got the same answer (see below), but it's incorrect. Where'd we go wrong?
dy/dx = 1(x-4) + y(x-4)
dy/dx = (y+1)(x-4)
~(1/(y+1))dy = ~(x-4)dx
("~" is supposed to be an integral symbol)
u = (y +1)
du = dy
~(1/u)dy = (x²/2) - 4x
ln(y+1) = (x²/2) - 4x
e^[ln(y+1)] = e^[(x²/2) - 4x]
y+1 = e^[(x²/2) - 4x]
y = e^[(x²/2) - 4x] - 1 + c
4 = e^[(0)²/2) - 4(0)] - 1 + c
4 = e^[0] - 1 + c
c = 4
y = e^[(x²/2) - 4x] + 3
So, it didn't seem that hard...what'd we do?