Approximating Solutions Using Euler's Method
הוצג
8:26
מודלים באמצעות משוואות דיפרנציאליות
ברוב המקרים מקבלים פונקציה ודורשים את השיפוע שלה. משוואה דיפרנציאלית הופכת זאת הפוך. מקבלים כלל לשיפוע בכל נקודה, ו…
קריינות באנגלית · כתוביות באנגלית ובסינית 中文 שאפשר להחליף ביניהן
בשיעור הזה
| English | משמעות |
|---|---|
| solution/səˈluːʃn/ | A value, set of values or function that satisfies an equation, inequality or other mathematical condition. |
| differential equation/ˌdɪfəˈrenʃl ɪˈkweɪʒn/ | An equation involving a function and one or more of its derivatives. |
| Euler's method/ˈɔɪləz ˈmeθəd/ | שיטת אוילר |
| slope/sləʊp/ | The change in a line's vertical coordinate divided by the corresponding change in its horizontal coordinate. |
| step size/step saɪz/ | גודל צעד |
| second derivative/ˈsekənd dɪˈrɪvətɪv/ | The derivative of a function's first derivative, describing how its gradient changes. |
הליכה על פתרון צעד קטן אחד אחרי השני
- לא כל משוואה דיפרנציאלית ניתן לפתור בנוסחה — אבל עדיין אפשר לקירוב את הפתרון מספרית.
- שיטת אוילר עוקבת אחר שדה השיפוע בצעדים ישרים קטנים מהנקודה ההתחלתית.
- בכל נקודה, השתמש במשוואה הדיפרנציאלית כדי לקבל את השיפוע, ואז צעד קדימה לאורכו.
- חזור על הפעולה, ותקבל עקומת פתרון מקריבה.
נוסחת העדכון
- נתון $\dfrac{dy}{dx}=f(x,y)$ ונקודת התחלה $(x_0,y_0)$, בחר גודל צעד קבוע $h$:
-
$$y_{n+1}=y_n+h\,f(x_n,y_n),\qquad x_{n+1}=x_n+h$$
- ה-$y$ החדש = ה-$y$ הישן + (שיפוע במקום זה) × (צעד $h$).
- מדובר ב"ערך נוכחי פלוס שיפוע כפול צעד" — קפיצה לאורך משיק.

שלבי שיטת אילר לאורך המשיק; הערכה סוטה מהפתרון האמיתי
The slope field and exact exponential solution
This field is $dy/dx=ay$, with exact solution $y=y_0e^{ax}$. It illustrates tangent directions, without calculating Euler steps. The worked Euler example below instead uses $dy/dx=x+y$.
Euler's update rule is $y_{n+1}=$
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
Old $y$ plus slope times step.
The fixed increment $h$ used at each Euler step is called the ____ size.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
$x$ advances by the step size $h$ each iteration.
צעד אחר צעד בטבלה
- סדר את העבודה בטבלה: בכל שורה, קרא את ה-$(x_n,y_n)$, חשב את השיפוע $f(x_n,y_n)$, ואז קבל את ה-$y_{n+1}$.
- קדם את ה-$x$ ב-$h$ בכל שורה וחזור על כך עד שתגיע ליעד ה-$x$.
- כל צעד הוא פשוט חישוב; המשוואה הדיפרנציאלית מספקת את השיפוע.
- לאחר מספר שורות תקבל ערך מקורב של ה-$y$ ביעד.
למען $\dfrac{dy}{dx}=x+y$, $y(0)=1$, $h=0.5$: the slope at $(0,1)$ הוא $1$. Find $y_1$.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
$1+0.5(1)=1.5$.
למען $dy/dx=x+y$ with step $h=0.5$, the current point is $(0.5,1.5)$. Find the Euler estimate $y(1)\approx y_2$.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
על $(0.5,1.5)$, the slope is $0.5+1.5=2$. Then $y_2=y_1+h f(x_1,y_1)=1.5+0.5(2)=2.5$.
דיוק וגודל צעד
- שיטת אוילר היא רק מקרה מקרב — היא עוקבת אחר משיקים ישרים ולכן סוטה מהעקומה האמיתית.
- צעד קטן יותר $h$ נותן הערכה מדויקת יותר (אולם דורש יותר צעדים).
- בעקומה קעורה כלפי מעלה, אוילר נוטה להערכת ערך נמוכה מדי; בעקומה קעורה כלפי מטה, להערכת ערך גבוהה מדי.
- יותר צעדים, פחות טעות — זוהי ההחלפה הקלאסית בין דיוק למספר צעדים.
Using a smaller step size $h$ generally makes Euler's estimate...
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
Smaller steps drift less from the true curve.
You must recompute the slope at each new point, not reuse the initial slope.
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
The slope $f(x_n,y_n)$ changes each step.
השתמש בשיפוע בנקודה הנוכחית $(x_n,y_n)$ לכל צעד, ולא בשיפוע קבוע. כל צעד מעדכן גם את ה-$x$ (ב-$h$) וגם את ה-$y$ (ב-$h\cdot f$). טעות נפוצה היא שימוש בשיפוע ההתחלתי לכל הצעדים — השיפוע חייב להיות מחושב מחדש בכל נקודה חדשה.
מצא ערך מקורב של ה-$y(1)$ עבור $\dfrac{dy}{dx}=x+y$, $y(0)=1$, עם צעד $h=0.5$.
- צעד 1: השיפוע ב-$(0,1)$ הוא $0+1=1$; $y_1=1+0.5(1)=1.5$, $x_1=0.5$.
- צעד 2: השיפוע ב-$(0.5,1.5)$ הוא $0.5+1.5=2$; $y_2=1.5+0.5(2)=2.5$, $x_2=1$.
- ולכן $y(1)\approx 2.5$.
$\dfrac{dy}{dx}=xy$ with $y(1)=2$. Use one Euler step with $h=0.1$ to estimate $y(1.1)$.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
Slope at $(1,2)$ הוא $2$. $y\approx2+0.1\times2=2.2$.
$\dfrac{dy}{dx}=x-y$ with $y(0)=1$. Use two Euler steps with $h=0.5$ to estimate $y(1)$.
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
שיפוע $-1$ at $(0,1)$ gives $y=0.5$ at $x=0.5$. Slope $0$ there, so $y(1)\approx0.5$.
שיטת אילר ממשתמש בקירוב פתרון למשוואה דיפרנציאלית על ידי צעדים לאורך מגעים: $y_{n+1}=y_n+h\,f(x_n,y_n)$ עם גודל צעד קבוע $h$, מחשב מחדש את השיפוע בכל נקודה. זהו קירוב (צעדים ישרים סוטים מהעקומה); גודל צעד קטן יותר $h$ משפר את הדיוק.
From the $h=0.25$ table, what is the Euler estimate of $y(1)$, to 3 decimal places?
רמת קושי 2/5 · 140 מטבעות + בונוס קטן בהשלמה הראשונה היום
The last row gives $2.8828\ldots\approx2.883$.
הכרטיס הזה תוקן, לכן הוא מוצג באנגלית עד שהתרגום שלו יעודכן.
Over- or underestimate?
- AP questions ask you to justify this with the second derivative 二阶导数. Find $\dfrac{d^2y}{dx^2}$ by differentiating $\dfrac{dy}{dx}$ (use the chain rule on $y$).
- For one forward Euler step, if $\dfrac{d^2y}{dx^2}>0$ on the interval, the curve is concave up, the tangent lies below it, and Euler underestimates. If it is negative, Euler overestimates. For multiple steps, concavity of the exact solution alone does not determine the error direction.
הכרטיס הזה חדש, לכן הוא מוצג באנגלית עד שהתרגום שלו יהיה מוכן.
Justify the direction. For $\dfrac{dy}{dx}=x+y$ with $y(0)=1$:
- $\dfrac{d^2y}{dx^2}=1+\dfrac{dy}{dx}=1+x+y$.
- On $0\le x\le1$ the solution 解 has $x\ge0$ and $y>0$, so $\dfrac{d^2y}{dx^2}>0$: concave up, so both estimates are underestimates.
For a solution, $\dfrac{d^2y}{dx^2}<0$ on the whole interval. What can you say about an Euler estimate using one forward step from the initial point?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
The curve is concave down, so the tangent steps lie above it.
If $\dfrac{dy}{dx}=y^2$, what is $\dfrac{d^2y}{dx^2}$?
רמת קושי 1/5 · 100 מטבעות + בונוס קטן בהשלמה הראשונה היום
$\dfrac{d^2y}{dx^2}=2y\dfrac{dy}{dx}=2y\cdot y^2=2y^3$.
הכרטיס הזה חדש, לכן הוא מוצג באנגלית עד שהתרגום שלו יהיה מוכן.
Euler's method 欧拉法 approximates a differential equation's solution by stepping along tangents: $y_{n+1}=y_n+h\,f(x_n,y_n)$ with fixed step size $h$, recomputing the slope at each point. It's approximate (straight steps drift from the curve); a smaller $h$ generally improves accuracy for a smooth, stable problem.
מה השתבש? רק צוות האתר רואה זאת.