Change the equation to rectangular coordinates: r= 2(sin theta-cos theta)

To change the equation from polar to rectangular coordinates, we can use the following relationships between polar and rectangular coordinates:

x = r * cos(theta)
y = r * sin(theta)

Given the equation r = 2(sin(theta) - cos(theta)), we'll substitute these expressions for x and y:

r = 2(sin(theta) - cos(theta))
x = r * cos(theta)
y = r * sin(theta)

Substituting the values:

x = 2(sin(theta) - cos(theta)) * cos(theta)
y = 2(sin(theta) - cos(theta)) * sin(theta)

Now, we have the equation in rectangular coordinates.