Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need help with MAPLE PROJECT please type every commmand for each step 1)You are

ID: 3600359 • Letter: N

Question

Need help with MAPLE PROJECT

please type every commmand for each step

1)You are going to analyze the solution to the ode dy/dx=f(x,y), where f(x,y)is a 3rd   degree polynomial that you will randomly generate where the coefficients are integers between -5 to 5. Next you will rename this DE as myode so it does not change anymore. Then you will be asked to:

A.Solve the general solution using dsolve so that you get a solution without an integral. If an integral appears, keep generating different polynomials in the step above until this no longer happens. (2pts)

B.Sketch the directional field. (2pts)

C.Using the ode you generated, you can use the solve command for equations to get a real root of the polynomial part. Use this to obtain a constant solution for this DE and graph it using the phaseportrait command and any initial condition that satisfies the solution. (4pts)

D. Is the solution a singular solution? (2pts)

CU COST Sn y(1 – p2

Explanation / Answer

Q no 1

#include<stdio.h>
#include<conio.h>

void main()
{
clrscr();
int dx,dy,f;
printf(" enter the value of dx:");
scanf("%d", & dx);

printf(" enter the value of dy:");
scanf("%d", & dy);


f=dy/dx;

printf(" the value of (dy/dx) or f(x,y) is :",f);

getch();
}

// program of polynomial in c using function.

#include<stdio.h>
#include<conio.h>
#include<math.h>
int eval(int [],int,int);

void main()
{
int a[10],n,x,i,e;
clrscr();
printf(“ ENTER THE DEGREE OF POLYNOMIAL ”);
scanf(“%d”,&n);
printf(“ ENTER THE CO-EFFICIENT OF POLYNOMIAL ”);
for(i=n;i>=0;i–)
{
printf(“ CO-EFFICIENT OF A[%d]:- “,i);
scanf(“%d”,&a[i]);
}
printf(“ ENTERED POLYNOMAIL IS ”);
for(i=n;i>0;i–)
{
if(a[i]!=0)
{
printf(“%dX^%d+”,a[i],i);
}
}
printf(“%d”,a[i]);
printf(“ ENTER THE VALUE FOR X”);
scanf(“%d”,&x);
e=eval(a,n,x);
printf(“ Evaluation of Poly is %d”,e);
getch();
}
int eval(int a[],int n,int x)
{
int sum=0,i;
for(i=n;i>=0;i–)
{
sum=sum+a[i]*pow(x,i);
}
return sum;
}

Q no 2

#include<stdio.h>
#include<conio.h>
#include<math.h>

void main()
{
clrscr();
int f,x,y;
printf(" enter the value of x:");
scanf("%d", & x);

printf(" enter the value of y:");
scanf("%d", & y);


f = (x*y*y-(cos x)(sin x)) / (y*(1-x*x))

printf(" the value of (dy/dx) or f(x,y) is :",f);

getch();
}