# What if we integrate wrt to y instead of x

1. Nov 2, 2006

### semc

Hi guys, i was doing some math qn and i found out that i am always integrating like x wrt x so u will get (x^2)/2 right? So i was wondering how do u like say integrate x wrt y?

2. Nov 2, 2006

### StatusX

If x is a constant with respect to y, then the integral of x with respect to y is just xy (just like the integral of c with respect to y is cy when c is a constant). Otherwise, if x depends on y (ie, x=x(y)), then write out x in terms of y and do the integral as usual.

3. Nov 2, 2006

### semc

alright got it thx