For the first one we have,
If we sub in straight into we get
Clearly the cancels to give . One problem is the question says to write for x however there is no x term present....
You where right upto the point where you said
Actually you had not and thus equation should actually be
which cancels to
The second looks right to me but we can do a bit of tidying up. We have
Hope this helps.