Differentials with linear equations

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
maiad
Messages
101
Reaction score
0

Homework Statement


Suppose that y(x) is the solution to the initial problem, y'=y(1-x), y(1)=e
find y(2)

Homework Equations


The Attempt at a Solution


This is my initial attempt:
[itex]\frac{dy}{dx}[/itex]=y(1-x)
[itex]\frac{dy}{y}[/itex]=(1-x)dx

i then integrated both side to get:
lny=-ln(1-x)+C

and here's the problem, if i plug in 1 to find c, ln(1-x) does not exist at that point...
 
Last edited:
Physics news on Phys.org
I tried another approach:
y'+yx=y
(yx)'=y

integrated both sides:
yx=[itex]\frac{1}{2}[/itex]([itex]y^{2}[/itex]) +C

but with this approach i wasn't able to solve for y
 
maiad said:
[itex]\frac{dy}{y}[/itex]=(1-x)dx

i then integrated both side to get:
lny=-ln(1-x)+C
First of all, you integrated the right hand side incorrectly. Remember, you're just integrating a polynomial.
 
maiad said:
I tried another approach:
y'+yx=y
(yx)'=y
Wait a minute, (yx)'=xy'+yx'=xy'+y, not y'+yx.