For the curve \( y = \sin(x) \) at \( x = \frac{\pi}{2} \):
\[
y = 1
\]
\(\boxed{y = 1}\)
For the curve \( y = \cos(x) \) at \( x = \frac{\pi}{4} \):
\[
y = -\frac{\sqrt{2}}{2}(x - \frac{\pi}{4}) + \frac{\sqrt{2}}{2}
\]
\(\boxed{y = -\frac{\sqrt{2}}{2}(x - \frac{\pi}{4}) + \frac{\sqrt{2}}{2}}\)