El profesor se sorprenderá mucho al ver tu solución correcta😉
/x for 0 = 1 | 2 / 2 \ <1 for 1 = 1 = x *\y + 1/ | \0 otherwise
a*y^2 + b*y + c = 0
D = b^2 - 4 * a * c =
(0)^2 - 4 * (-x^2) * (1 - x^2) = 4*x^2*(1 - x^2)
y1 = (-b + sqrt(D)) / (2*a)
y2 = (-b - sqrt(D)) / (2*a)
/ ________\ / ________\ | / 2 | | / 2 | |\/ 1 - x | |\/ 1 - x | y1 = - re|-----------| - I*im|-----------| \ x / \ x /
/ ________\ / ________\ | / 2 | | / 2 | |\/ 1 - x | |\/ 1 - x | y2 = I*im|-----------| + re|-----------| \ x / \ x /
y2 = re(sqrt(1 - x^2)/x) + i*im(sqrt(1 - x^2)/x)
suma
/ ________\ / ________\ / ________\ / ________\ | / 2 | | / 2 | | / 2 | | / 2 | |\/ 1 - x | |\/ 1 - x | |\/ 1 - x | |\/ 1 - x | - re|-----------| - I*im|-----------| + I*im|-----------| + re|-----------| \ x / \ x / \ x / \ x /
=
0
producto
/ / ________\ / ________\\ / / ________\ / ________\\ | | / 2 | | / 2 || | | / 2 | | / 2 || | |\/ 1 - x | |\/ 1 - x || | |\/ 1 - x | |\/ 1 - x || |- re|-----------| - I*im|-----------||*|I*im|-----------| + re|-----------|| \ \ x / \ x // \ \ x / \ x //
=
2 / / ________\ / ________\\ | | / 2 | | / 2 || | |\/ 1 - x | |\/ 1 - x || -|I*im|-----------| + re|-----------|| \ \ x / \ x //
-(i*im(sqrt(1 - x^2)/x) + re(sqrt(1 - x^2)/x))^2