You are on page 1of 5
Kreyszig section 1.1 Checking particular and general solutions, using initial values: ODE: 2+y'=3-y Candidate solution: y(x):=2* y (a) > 3-2? aey'(w) =3-y(0) 1 ("1" means "true", i.e. the equation is fulfilled) Candidate solution: yyen,(,A)i=A+e ** d (3-2) gen (A) + -(8-Ave 7) dx yen A) +B -Upn(,A) =O 1 dx Initial condition: y (0) =5 solve,A Ajor'=Ygen(0,A)=5 > A=5—" 5 Ypar (22) = gen (+Apar) Your) + Bee?) y Candidate solution: y,-,(2,A,B)= 2) «sin (2) +B-cos (2) A,B) + ~(Assin(2)) —B-cos a simplify 5 Yoen( A,B) = —Ygen(t,A,B) 1 dz" Initial conditions: y(0)=2 and y'(0)=0 substitute x= 0 Ypen(0-A,B) > B Fo onl@ A.B) solve A,B substitute .x=0 [02] Yyen (AB) =2 d jen (w-A,B) =0 on #-A-B) Kreyszig section 1.2 Click “Include” below and locate the file vectorfield_plotting.medx on your computer (available from Itslearning): Incude <<] CAUsers\uinp\OneDrive - ViaUUNDERVISNING\ME-AEMT\SUMMARIES\vectorfild_plotting.mcdx Problem 1.2.6: Plot directional field for y’=f(a,y)with f(,y):=sin(y)” [x Y]s veshgrid2 (ry Up) _ flew Vesta) quiver2(X,Y,0.2-U,0.2-V) ee ee POPPSILL LER LL EPPLL LLL ea ee eae eee VOCELLL LL LLL LLLLL LLL EL Note that we can quite easily design autonomonous ODEs that have particular stable and unstable equilibria: Simply choose f(x,y) to be a suitable polynomium. clear (x.y) Kreyszig 1.3 Solving y/=y as separable Collect y’s on LHS: This is g(y)+y'=(zx)for: ga(y)= General implicit solution (note constant added by hand): implicit sotution:=f g(y)dy= | f(x) dx+e— In(y) =2+e Get explicit: ule, u(a,c) +e*** efnet We can rename e* as A to get a more usual parametrization of the general solution: solve,e (We have expression with ¢, so we need to In(a) express this old parameter in terms of the new one, A, to make the desired change.) esa e(A) simplify ule.) =u(2,6(A)) Avet y(z,A) > Ave* Kreyszig 1.5 Problem 1.5.25 y'=3.2y-10 yy? y 3.2 y=-10y" This is Bernoulli with: Substitution clear (u.y.c) 1 solve.y 1 usy* oust LE y y u els +(-3.2)+u=—1-(-10) + 43.2+u= 10.0 This is linear with: r,(x)=10 (x)= f pax) da 3.2-a (vse) =exp(—h(z))- [exp(e(2))+r4(2) de-+e-exp(-h(x)) SPH g2-14 3.195 u(e.c)

You might also like