hello can someone please draw these functions in one graph u

hello

can someone please draw these functions in one graph using - Matlab -

y= -4x^(3/2) / 14.7 .........................1

y=cx -2c^3......................................2

this is the question:

Sketch several of the straight-line solution along with the singular solution on the same coordinate system. Observe that the straight-line solutions are all tangent to the singular solution.

Solution

% create a vector of x values

x = 0:0.01:100;

% define the singular solution

y = -4*x.^(3/2)/14.7;

% define the straight line solutions

y1 = 1*x-2*(1)^3; % c = 1

y2 = 0*x-2*(0)^3; % c = 0

y3 = 2*x-2*(2)^3; % c = 2

y4 = 3*x-2*(3)^3; % c = 3

y5 = 5*x-2*(5)^3; % c = 5

y6 = 6*x-2*(6)^3; % c = 6

% plot each of them in a single figure

plot(x,y,x,y1,x,y2,x,y3,x,y4,x,y5,x,y6)

% save the script and then run

hello can someone please draw these functions in one graph using - Matlab - y= -4x^(3/2) / 14.7 .........................1 y=cx -2c^3...........................

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site