$f(x) = \sin(x)$

$g(x) = \cos(x)$

$\sin(x)$

$x$

sin(x)

cos(x)

$x$

P(\cos(x)|\sin(x))

$\cos(x)$

M: (0, 0)
k = Circle(M, 1)
gL2: -1.5
gR2: 1.5
gU2: -1.5
gO2: 1.5
gL1: -1
gR1: 8
gU1: -1.5
gO1: 1.5
α = 0.9773843811168246 rad (slider from 0 to 360°, step 0.017453292519943295)
P: (cos(α), sin(α))
f(x) = sin(x)
g(x) = cos(x)
Q: (x(P), 0)
sy = Segment(Q, P)
R: (1, 0)
c = CircleArc(M, R, P)
a = true
b = false
X: (c, 0)
Px: (c, y(P))
Py: (c, x(P))
w = Angle(R, M, P)
sP = Segment(M, P)
h = Segment(M, R)
i = Segment((-1, 0), (1, 0))
j = Segment((0, -1), (0, 1))
S: (0, y(P))
sx = Segment(S, P)