1.Write down the fplot( ) command used to generate a straightline formed by two (x, y) points: (-3, 5) and (3, 8). Plot the linefrom -5 ≤ x ≤ 5. Show your derivation of the line equation.
2. [15pts] The position x as a function of time of aparticle that moves along a straight line is given by
a. [3pts] Derive the expressions for the velocity andacceleration of the particle
Make plots of the position, velocity,and acceleration as a functions of time for 0 ≤ t ≤ 15 secfollowing the instructions below.
b. [6pts] Using plot( ), plot the position, velocity, andacceleration on a single plot window using black solid line, greendash line, and yellow dash-dot line, respectively. Show the plot inFigure 1. Use the line width of 2. Include the following title inbold face: “Motionprofile of a particle between 0 ≤ t ≤ 15 secâ€.Include proper legend and axis labels with units. Show grid lines.All formatting must be done inside your code and not from theFigure Editor.
c. [6pts] Using subplot, plot the position, velocity, andacceleration vs time in 3 separate plots arranged in a singlecolumn. Show the subplot in Figure 2. Include the following titlein bold face above the top-most plot:“Position, velocity and acceleration profile of aparticleâ€. Show grid lines and proper axis labels on allyour plots. All formatting must be done inside your code and notfrom the Figure Editor.