How do I integrate dy/dx = x - y please ?

Expert Answers

An illustration of the letter 'A' in a speech bubbles

dy/dx = x - yUse substitution:v = x - yDifferentiate with respect to xdv/dx = 1 - dy/dxdy/dx = 1 - dv/dxNow we use above substitutions in differential equationsdy/dx = x - y1 - dv/dx = vdv/dx = 1 - vdv/(1-v) = dxNow integrate both sides:

intg dv/(1-v) = intg dx

-ln (1-v) = x+c

ln(1-v) = -x - c

1 - v = e^(-x-c) = [e^(-x)][e^(-c)]

1 - v = (C)e^(-x) , where C = e^(-Cc)

1 - (x - y) = (C)e^(-x)

y - x + 1 = (C)e^(-x)

y = (C)e^(-x) + x - 1

See eNotes Ad-Free

Start your 48-hour free trial to get access to more than 30,000 additional guides and more than 350,000 Homework Help questions answered by our experts.

Get 48 Hours Free Access
Approved by eNotes Editorial Team

Videos