Q1. (20 points)
Plotting multiple lines and colors.
1)Draw all the functions below together in a single window.
Name the y-axis 'y-axis', name the x-axis 'x-axis' and title it 'Function graphs'.
a) $f_1(x) = \ln (2x)$
(Use Line type:solid line, Point type:plus and Color:magenta)
b)$f_2(x) = \sin (3x^2)$
(Use Line type:dashed line, Point type:x-mark and Color:cyan)
c) $f_3(x) = e^{1+x^4}$
(Use Line type:dotted line, Point type:dot and Color:red)
d) $f_4(x) = \coth (5x)$
(Use Line type: Dash-dot, Point type:diamond and Color:green)
for $0 \leq x \leq 12$.
2) Draw the functions using the subplot command.
a) $f_1(x) = \cos (2x)$
(Use Line type:solid line, Point type:plus and Color:magenta)
(Name the y-axis 'cos (2x)', name the x-axis 'x' and title it' Graph of $f_1(x)$'.
b)$f_2(x) = \sin (5x)$
(Use Line type:dashed line, Point type:x-mark and Color:cyan)
(Name the y-axis 'sin (5x)', name the x-axis 'x' and title it' Graph of $f_2(x)$'.
c)$f_3(x) = e^{1+x^2}$
(Use Line type:dotted line, Point type:dot and Color:red)
(Name the y-axis '$e^{1+x^2}$', name the x-axis 'x' and title it' Graph of $f_3(x)$'.
d) $f_4(x) = \tan(3x)$
(Use Line type: Dash-dot, Point type:diamond and Color:green)
(Name the y-axis 'tan (3x)', name the x-axis 'x' and title it' Graph of $f_4(x)$'.
for $0 \leq x \leq 10$.
Also add the names of the functions using the legend command.