DE

261 days ago by jhlee2chn

x = var('x') # 변수 입력 y = function('y', x) # y = f(x) eq = y*diff(x) + x*diff(y) == 0 desolve (eq, [y, x], show_method=True ) 
       
[c/x, 'linear']
[c/x, 'linear']
var('x') # 변수 입력 y = function('y', x) # y = f(x) eq = diff(y,x) - (1-x)/(1+y^3) == 0 desolve (eq, [y, x], show_method=True ) 
       
[-1/4*y(x)^4 - y(x) == 1/2*x^2 + c - x, 'separable']
[-1/4*y(x)^4 - y(x) == 1/2*x^2 + c - x, 'separable']
x = var('x') # 변수 입력 y = function('y', x) # y = f(x) eq = diff(y,x) + 2*x*y == 0 de = desolve (eq, [y, x], [0,3], show_method=True ) print de # 미분방정식의 해, 풀이방법 plot(de[0], (x, -3, 3), aspect_ratio=1) # 특수해-곡선 그리기 
       
[3*e^(-x^2), 'linear']
[3*e^(-x^2), 'linear']