There are two questions, maybe im doing the same mistake or not doing something in both? Idk...

Answer =

Question = Solve for y in terms of x, the differential equation given that x = 2, when y = 2

I dunno what im doing wrong .

So, take over stuff and integrate both sides.

Gives:

Rearrange gives

Subbing in x = 2 and y = 2 i get c = -3

So my answer is

or

Which is wrrrrooooonnng lol ..

Question 2:

Given that y = 1 when x = 0, express y in terms of x if

Now when i take stuff to side and integrate i get

And therefore y = x + c

Subbing in values gives c = 1

And i get the answer y = x + 1...which fits the co-ordinates but its WRONG. .

The answer is :

I have no idea how they get that.

Any help would be really appreciated!

Thank-you very much in advance for anything you can give!