This document is a Maths Assignment that includes questions on quadrilaterals, matrices, graph theory, algorithms, differentiation, integration, and data visualization. It provides step-by-step solutions and explanations for each question.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
MATHS ASSIGNMENT MARCH 19, 2019
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
A=1 B=1 C=5 D=6 E=8 F=9 Ques 1. Write down the quadrilateral Q = i. Draw its position on a graph. On substituting values, we get the coordinates as W (1,1), X (10,1), Y (10,10) & Z (1,9) ii. Write down a matrix R that will rotate Q 90 degrees anti clockwise around the origin. R = (−1−1−10−9 110101) iii. Write down a matrix T that will rotate Q 90 degrees anticlockwise around the origin and increase the size of Q by a factor 2. T = (−2−2−20−18 220202) 0 1 2 3 4 5 6 7 8 9 10 11 01234567891011 W (1,1)X (10,1) Y (10,10) Z (1,9)
iv. Use the transformations on Q and draw the transformed quadrilaterals RQ and TQ on the graph. Make sure to clearly label the quadrilaterals. R = T = v. Calculate the matrices R4and T4and explain your answers. 0 1 2 3 4 5 6 7 8 9 10 11 -11-10-9-8-7-6-5-4-3-2-10 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 -21-20-19-18-17-16-15-14-13-12-11-10-9-8-7-6-5-4-3-2-10 W’ (-1,1) X’ (-1,10)Y’ (-10,10) Z’ (-9,1) W’’ (-2,2) X’’ (-2,20)Y’’ (-20,20) Z’’ (-18,2)
Sol. These can not be calculated as the matrices R and T are not square matrices. Ques 2. Graph Theory a) The following distance table shows the distance in kilometres between some cities in the USA. Distance (km) BostonChicagoLos AngelesMiamiNew YorkSan Francisco Boston1589489124743425067 Chicago3366218413523493 Los Angeles43734539667 Miami21334990 New York4826 i. Draw this information as a graph. Solution: Vertices: CityVertex BostonA ChicagoB Los AngelesC MiamiD New YorkE San FranciscoF
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
ii. When visiting USA, I would like to visit all of these places. Would Kruskal’s Algorithm help determine a route through the cities to minimise the distance travelled? Explain your answer – a simple Yes/ No will not get the marks. Sol. Yes, By using Kruskal’s algorithm we can easily draw a minimum spanning tree of the above graph. We will first sort the edges according to the distance and then start selecting the edges one by one until all the vertices are traversed. Minimum Spanning Tree according to the Kruskal’s algorithm: From VertexTo VertexDistance AE342 FC667 BE1352 AB1589 ED2133 BD2184 AD2474 BF3493 BC3366 CD4373 CE4539 EF4826 AC4891 DF4990 AF5067
b) For the graph shown here determine the adjacency matrix and determine a matrix that contains information, starting point and end point, on all walks of length 3. VertexUVWXYZ U011100 V101001 W110110 X101000 Y001000 Z010000 Ques 3. Algorithms Investigate the following algorithm. where x, y, theta, s are real numbers, using degrees for the sine and cosine values. i. Create a structure diagram for the algorithm, using the format presented in the MATH1111 lectures. Sol.
ii. Include a table of 5 sets of input values and determine what happens to them in the algorithm, what the output is. Input Setxytheta (in degrees) S 122302 244451 324603 442901 5221802 Input 1: x_temp = cos(30)* 2 – sin(30) * 2 x_temp =√3 2⋅2 − 12⁄ ⋅2 x_temp =√3 − 1 y_temp = sin(30) * 2 + cos(30) * 2 y_temp =1 2⋅2 +√3 2⋅2 y_temp =√3 + 1 x =2 ⋅(√3 − 1) y =2 ⋅(√3 + 1) Input 2 : Unknown Read x, y, theta, s x_temp <- cos(theta)*x - sin(theta)*y y_temp <- sin(theta)*x + cos(theta)*y x <- s * x_tempy <- s * y_tempDisplay x, y
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
x =2. (−2)= -4 y =2 ⋅ (−2)=−4 iii. Explain what the algorithm does and what the output values are. Sol. The algorithm computes the values of two variables x and y by using some trigonometric functions and finally print the values. The outputs for the above set of input values are as follows: InputXY 12 ⋅(√3 − 1)2 ⋅(√3 + 1) 204√2 32 − 2√32 + 2√3 4-24 5-4-4 iv. Modify the algorithm to allow x, y to be arrays. What would be the purpose of the algorithm be then? If x and y are modified to be arrays then, the steps would change, we will only change the input values and for each input, the outputs x and y will be automatically stored in the array. Ques 4. Differentiation and Integration a) Find dy/dx for the function y = Cx3-3x +Dsin(2x) -4 Sol. Substituting the values of variables: y = 5x3–3x + 6sin2x -4 𝑑𝑦 𝑑𝑥= 15𝑥2−3 + 6.2𝑐𝑜𝑠2𝑥 𝑑𝑦 𝑑𝑥= 15𝑥2−3 + 12𝑐𝑜𝑠2𝑥 b) Use the product rule to find dy/dx for y= xF cos(Dx). Sol. Substituting the values of variables: 𝑦= 9𝑥. 𝑐𝑜𝑠6𝑥 𝑑𝑦 𝑑𝑥= 9𝑐𝑜𝑠6𝑥 + 9𝑥. (−6𝑠𝑖𝑛6𝑥) 𝑑𝑦 𝑑𝑥= 9𝑐𝑜𝑠6𝑥 − 54𝑥𝑠𝑖𝑛6𝑥 c) Find the values of the following integrals.
i. Sol. Substituting the values of the variables: 𝐼=∫ 6𝑥2+𝑒𝑥+ 1 𝑑𝑥 2 1 𝐼=[2𝑥3+𝑒𝑥+ 𝑥 ]1 2 =(24+𝑒2+ 2) − (2 + 𝑒 + 1) =15 +𝑒2− 𝑒 ii. Sol. Substituting the values of variables: 𝐼=∫ 𝑐𝑜𝑠𝑥 −𝑥9 = 𝑠𝑖𝑛𝑥 − 𝑥10 10+ 𝑐 d) Given f(x)= Cx -x2 f(x) = 5x -x2 i. Plot the function f(x) over the interval [0,C]. ii. Differentiate f(x) and determine the value of df/dx when x=0. What does df/dx represent? Show on your graph from d)i. option. 𝑑𝑦 𝑑𝑥= 5 − 2𝑥 0 1 2 3 4 5 6 7 01234567 f(x)
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
𝑑𝑦 𝑑𝑥|𝑥=0= 5 − 2(0) = 5 This represents the slope of the function f(x). Ques 5. Data Visualisation and Presentation The table shows below the temperature recorded in Basel from 1989 – 2019. Specifically, the temperature has been recorded at midnight 1stMarch 2 metres above ground every year. YearTemperature (in degree centigrade) 19896.33 19906.44 199110.24 199215.77 19932.64 199411.92 199511.88 19965.86 199715.77 19987.86 19998.14 20008.11 20015.28 200212.25 200312.53 20041.56 2005-4.80 2006-0.32 20079.61 200811.50 200911.35 20108.10 20115.55 201212.02 20133.89 20147.56 201510.49 20164.62 20177.14 2018-0.31 20199.14 i. Use an appropriate graph in Excel to display the data, include a printed version in the assignment submission.
ii. Obtain descriptive statistics values for the data to include – Minimum, Maximum, Mean, Median, Mode, range, Sample standard deviation, sample variance, population variance. Include working and/or excel sheets. Sample Excel screenshot Results: 6.336.44 10.24 15.77 2.64 11.9211.88 5.86 15.77 7.868.148.11 5.28 12.2512.53 1.56 -4.8 -0.32 9.61 11.511.35 8.1 5.55 12.02 3.89 7.56 10.49 4.62 7.14 -0.31 9.14 -10 -5 0 5 10 15 20 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 Temperature (in degrees centigrade) Year
iii. Discuss the results obtained for ii. 1. Count: This function gives us the total number of data entries which is equal to 31. 2. Mean: This function calculates the mean/average of the temperature dataset. It is computed as sum of all the values divided by the total number of values. For the above temperature data, the mean computes to 7.681. 3. Min: This function tells the minimum value from the temperature dataset which is equal to -4.800. 4. Max: This function tells the maximum value from the temperature dataset which is equal to 15.770. 5: Range: The range of the temperature recorded is 20.570 6: Variance: The variance of the recorded temperature is equal to 22.206. 7: Standard Deviation: The standard deviation values for the above temperature data set is equal to 4.712. It can also be calculated as the square root of the variance obtained. 8: Standard Error of Mean: It comes out to be 0.846. 9: Median: the median value for the above data set is 8.100. 10: Mode: The mode for the above dataset is 15.770.