# Differentials with linear equations

## Homework Statement

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

## The Attempt at a Solution

This is my initial attempt:
$\frac{dy}{dx}$=y(1-x)
$\frac{dy}{y}$=(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:

I tried another approach:
y'+yx=y
(yx)'=y

integrated both sides:
yx=$\frac{1}{2}$($y^{2}$) +C

but with this approach i wasn't able to solve for y

$\frac{dy}{y}$=(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.

I tried another approach:
y'+yx=y
(yx)'=y
Wait a minute, (yx)'=xy'+yx'=xy'+y, not y'+yx.