''' Multiple plots in one Exercise A: Mean squared distance The mean squared distance of a diffusing particle (random motion) in 2D can be calculated by d(t)^2 = 4 * D * t Plot the root mean squared distance (sqrt{d(t)^2}) for D = 10 m^2/s, D = 20 m^2/s, and D = 30 m^2/s for the first 100 s as 3 curves within a single plot. Use a legend to annotate which particle is which. What is the advantage of using one plot over multiple plots to visualise this? ''' # Your code here ''' Exercise B: Subplots Take the function f(x) = 3x^4 + 4/x. 1. Plot the function, the first, the second, and the third derivative in one plot, with -1 < x < 1. What do you see: are there any issues with this plot? 2. Instead, now plot the function and it's first to third derivative in a total of 4 subplots. What are the advantages of using subplots in this case? Tip: you can use `fig.tight_layout()` to prevent overlap between subplot titles. ''' # Your code here