How can we plot the following three functions
- f(x) = sin(x)
- k(x) = cos(x)
- u(x) = x²
for x ∈ [0,1]
on a single plot with the help of TikZ?
In pgfplots, you can implement the task with
Since the options are provided for the complete axis, the domain is shared among all these functions. The TikZ function
You could also use
This is the example which can be fount in the pgfmanual.pdf on p. 225
Think you can adapt it for your functions?!
There ist also a way with pgfplots. See the above mentioned manual for more information.