Question: How do I fix my graph? The original ODE is: ( y - 1 ) ^ 2 ( dy / dx ) = 2 x

How do I fix my graph?
The original ODE is: (y-1)^2(dy/dx)=2x+3
[115]: fig = plt.figure() # Creates a new figure
x = np.arange(1,11/3-0.01,0.1) # Defines the domainf1=1-(((-81x2)/2-(243x)/2+(((-81x**2-243x+27)**2)1/2)/2+27/2)(1/3))/3
plt.plot(x, f1, color='red')def }vf(x,t)
dx = np.zeros(2)
dx[0]=1
return dxX, Y = np.meshgrid(np.linspace(1,5,20), np.linspace(0.2,0.6,20)) # Sets 2-dim domain
U}=1.
\mathrm { V }\mathrm {=}\mathrm {(2*X+3)/((Y-1)**2)}\mathrm { # ODE }\mathrm { right }\mathrm { side }\mathrm { also }\mathrm { goes }\mathrm { here }\mathrm { with } X for x and Y for yN = np.sqrt(U**2+ V***2) # Don't modify
U = U / N # Don't modify
V = V / N # Don't modify
plt.quiver(X, Y, U, V, angles="xy")
[115]:
How do I fix my graph? The original ODE is: ( y -

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!