find the general solution of the differential equation y'=4+2x+2y+xy
y'-y(2+x)=2x+4
check my algebra
from here it is just First Order Linear Differential Equation
i don't see how u got it to that form
yes i do sorry
find integrating factor \[e^{\int 2+x}\]
dashini help
yea i'm there and just got that
\[y(x) = c_1 e ^{((x^2/2)+2 x)}-2\]
This is your integrating factor \[e^{\left(2x+\frac{x^2}{2}\right)}\]
right
now put that back into the original equation and solve it for y correct?
yes
okay great...thank you
\[\left(y e^{\left(2x+\frac{x^2}{2}\right)}\right)'=(2x+4)\left( e^{\left(2x+\frac{x^2}{2}\right)}\right)\]
\[\left(y e^{\left(2x+\frac{x^2}{2}\right)}\right)=\int (2x+4)\left( e^{\left(2x+\frac{x^2}{2}\right)}\right) \text{dx}\]
\[\left(y e^{\left(2x+\frac{x^2}{2}\right)}\right) =2 e^{\frac{1}{2} x (4+x)}+C\]
Though it is not obvious you can factor 4 + 2x +2y +xy into x(y+2) +2(y+2) = (x+2)(y+2) and now you have a separable equation dy/(y+2) = (x+2)dx
i like that way better :)
\[y'=4+2x+2y+xy=(x+2)(y+2)\]\[\frac{y'}{y+2}=(\ln(y+2))'=x+2\]\[\ln{(y+2)}=\frac{x^2}{2}+2x+C\]\[y=e^{x^2/2+2x+C}-2=C_1e^{x^2/2+2x}-2\]
The first way is more general.
yeah, much easier using separable equation
now with the condition of y(0) = 0 does this change everything?
nope, you just get value for C
Join our real-time social learning platform and learn together with your friends!