Given that a^2+b^2=2 and that (a/b)= tan(45degee+x), find a and b in terms of sinx and cosx.

I don't know what i'm supposed to do, and i don't come to an answer! Help, thanks!

my workings:

tan(45+x)= (1+tanx)/(1-tanx)
a/b = (1+tanx)/(1-tanx)
a(1-tanx)=b(1+tanx)
i square both sides...
a^2(1-tanx)^2 = b^2(1+tanx)^2
a^2 + b^2 = 2
a^2 = 2 - b^2
substitute:
(2-b^2)(1-tanx)^2 = b^2(1+tanx)^2

I don't know if im on the right track, but i don't seem to come to an answer when i expand the whole equation!

To solve this problem, we can start by simplifying the expression (1+tanx)/(1-tanx) using the trigonometric identity for tan(45+x):

tan(45+x) = (1+tanx)/(1-tanx)

Next, we can substitute the given equation a/b = tan(45+x) into the simplified expression:

a/b = (1+tanx)/(1-tanx)

Multiplying both sides of the equation by (1-tanx) and (1+b) gives us:

a(1-tanx) = b(1+tanx)

Expanding both sides gives us:

a - atanx = b + btanx

Rearranging the equation gives us:

a - b = atanx + btanx

Next, we'll square both sides of the equation:

(a - b)^2 = (atanx + btanx)^2

Expanding both sides gives us:

a^2 - 2ab + b^2 = a^2tan^2x + 2abtan^2x + b^2tan^2x

Since a^2 + b^2 = 2, we can substitute this value in the equation:

2 - 2ab = 2tan^2x(a^2 + b^2)

Simplifying further using the fact that tan^2x = sin^2x / cos^2x, we get:

2 - 2ab = 2sin^2x/cos^2x(a^2 + b^2)

Replacing a^2 + b^2 with 2, we have:

2 - 2ab = 2sin^2x/cos^2x(2)

Simplifying further gives us:

2 - 2ab = 4sin^2x/cos^2x

Multiplying both sides by cos^2x gives us:

2cos^2x - 2abcos^2x = 4sin^2x

Dividing both sides by 2 gives us:

cos^2x - abcos^2x = 2sin^2x

Factoring out cos^2x on the left side gives us:

cos^2x(1 - ab) = 2sin^2x

Dividing both sides by 1 - ab gives us:

cos^2x = (2sin^2x)/(1 - ab)

Finally, since cos^2x = 1 - sin^2x, we can substitute this value in the equation:

1 - sin^2x = (2sin^2x)/(1 - ab)

Multiplying both sides by 1 - ab gives us:

1 - ab - ab(1 - sin^2x) = 2sin^2x

Expanding both sides gives us:

1 - ab - ab + ab sin^2x = 2sin^2x

Rearranging the equation gives us:

2sin^2x + ab sin^2x = 1 - ab

Factoring out sin^2x on the left side gives us:

sin^2x(2 + ab) = 1 - ab

Finally, dividing both sides by 2 + ab gives us:

sin^2x = (1 - ab)/(2 + ab)

Now, we can solve for a and b in terms of sinx and cosx using the equations we obtained earlier:

cos^2x = (2sin^2x)/(1 - ab)
sin^2x = (1 - ab)/(2 + ab)

We can solve these two equations simultaneously to find the values of a and b in terms of sinx and cosx. However, it seems that there is not enough information given in the initial problem to determine specific values for a and b.

To solve the given equation, let's start by expanding the equation:

(2 - b^2)(1 - tan(x))^2 = b^2(1 + tan(x))^2

Expanding the squares, we have:

(2 - b^2)(1 - 2tan(x) + tan^2(x)) = b^2(1 + 2tan(x) + tan^2(x))

Now, distribute and simplify:

(2 - b^2 - 2b^2tan(x) + b^2tan^2(x)) = b^2 + 2b^2tan(x) + b^2tan^2(x)

Rearranging the terms:

(2 - b^2 - b^2tan^2(x)) + (2b^2tan(x)) = b^2(1 + tan^2(x))

Now, simplify further:

2 - b^2 - b^2tan^2(x) + 2b^2tan(x) = b^2 + b^2tan^2(x)

Combine like terms:

2 - b^2 = 2b^2tan(x) + 2b^2tan^2(x)

Divide through by 2:

1 - b^2/2 = b^2tan(x) + b^2tan^2(x)

Since we are given that a^2 + b^2 = 2, we substitute a^2 = 2 - b^2 into the equation:

1 - b^2/2 = b^2tan(x) + b^2tan^2(x)

1 - (2 - a^2)/2 = (2 - a^2)tan(x) + (2 - a^2)tan^2(x)

Simplifying, we get:

1 - (2 - a^2)/2 = (2 - a^2)(tan(x) + tan^2(x))

Multiply through by 2 to eliminate the denominator:

2 - (2 - a^2) = 2(2 - a^2)(tan(x) + tan^2(x))

Simplifying further:

2 - 2 + a^2 = 2(2 - a^2)(tan(x) + tan^2(x))

a^2 = 2(2 - a^2)(tan(x) + tan^2(x))

Now, we can substitute tan(x) with sin(x)/cos(x) since we want the answer in terms of sin(x) and cos(x).

a^2 = 2(2 - a^2)(sin(x)/cos(x) + (sin(x)/cos(x))^2)

Simplifying and multiplying through by cos^2(x):

a^2cos^2(x) = 2(2 - a^2)(sin(x)cos(x) + sin^2(x))

Expanding and canceling terms:

a^2cos^2(x) = 2((2sin(x)cos(x)) + sin^2(x))

Applying the identity sin(2x) = 2sin(x)cos(x):

a^2cos^2(x) = 2(sin(2x) + sin^2(x))

Using the identity cos^2(x) = 1 - sin^2(x):

a^2(1 - sin^2(x)) = 2(sin(2x) + sin^2(x))

Expanding:

a^2 - a^2sin^2(x) = 2sin(2x) + 2sin^2(x)

Rearranging:

a^2 - 2sin^2(x) - 2sin(2x) = 0

At this point, we have a quadratic equation in terms of sin(x). You can solve this equation using the quadratic formula to find the values of sin(x). Once you have the values of sin(x), you can substitute them back into previous equations to find the corresponding values of cos(x) and then find a and b using the given relationship a/b = tan(45 + x).