Week 5 - Labelling Plots

Question 1

a) Below I have reproduced a graph from the video. Alter the code so that the axes label states  cos((Sqrt[(k/m)])t) instead of  cos((Sqrt[(2/(Sqrt[5]))])t). (Hint: Recall the three ways of enetering text into Mathematica covered in the last video.)

m=5; (*mass*)
k=4;(*spring constant*)
Plot[Cos[(Sqrt[(k/m)])t],{t,0,60},AxesLabel->{t, cos((Sqrt[(k/m)])t)}]

b) Search the help file to find out how to title a plot. If after a couple of attemps your searches don’t give you anything useful try using google to search. This is a good method if you can’t find something using the Mathematica help file. Once you have found out how to do this add a title to the graph above.

c) Having added a title, you now have the chance to be a bit creative. Explore the page on the help file that you used to find out how to title the plot and look at the different options available for changing the colour, or boldness of the text you have labelled your plot with. Be creative, have fun but make sure you keep an eye on your time!