Showing posts with label area between curves. Show all posts
Showing posts with label area between curves. Show all posts

Saturday, April 26, 2025

Casio fx-991CW: The Inequalities Mode

Casio fx-991CW: The Inequalities Mode



Solving Inequalities


The Casio fx-991CW, along with other high-end scientific calculators from Casio has an Inequalities mode.


The inequalities mode solves quadratic, cubic, and quartic polynomials. The mode works similar to Equation-Polynomial module. Below is an example (all screenshots were created in Casio’s classpad.net website):


Casio fx-991CW: Introduction to the Inequality Mode


The Inequalities mode can assist in calculus and geometry problems.



Circle Problem


Task: Find valid points (x, y) that fit in the circle:


x^2 / 3 + y^2 / 6 = 1


Step 1: We can use the Inequalities mode to find the allowed x values.


Start by solving for y:

x^2 / 3 + y^2 / 6 = 1

6 × (x^2 / 3 + y^2 / 6) = 1 × 6

2 × x^2 + y^2 = 6

y^2 = 6 – 2 × x^2

y = √(6 – 2 × x^2)


For the equation to be “valid”, or to not return complex numbers, find all x where 6 – 2 × x^2 is not negative.


6 – 2 × x^2 ≥ 0


We find that the allow range is -√3 ≤ x ≤ √3.


Step 2: Store the Equations


We can do define f(x) in any mode. To do this, press [ f(x) ], select Define f(x). Press [ OK ] to store the function. The fx-991CW allows for two functions, f(x) and g(x).


In this example, we defined f(x) and g(x) as follows:


f(x) = √(6 – 2 × x^2)

g(x) = -f(x)


Step 3: Use the Table mode to find values in the appropriate range.


Set the Table Type as f(x)/g(x). Set the Table Range as Start: -√(3), End: √(3), Step: 2×√(3)÷5


Table:


x ≈

f(x) ≈

g(x) ≈

1

-1.732

0

0

2

-1.0392

1.9595

-1.9595

3

-0.3464

2.4

-2.4

4

0.3464

2.4

-2.4

5

1.0392

1.9595

-1.9595

6

1.732


0

0






The Area Between f(x) and x ≥ 0


Find the area between the curves:

f(x) = -x^4 + 2 × x^3 + 25 × x^2 – 26 × x – 120 and x ≥ 0.


Step 1: Find the boundaries.


With the Inequalities mode, we can find the boundaries and intersection points where f(x) ≥ 0. We find that: -4 ≤ x ≤ -2 and 3 ≤ x ≤ 5. Write down these results. The area will be in the intervals [-4, -2] and [3, 5].


Confession: I ultimately chose this function because of its integer roots. Unfortunately we are not able to store coefficients or roots in variables directly on the fx-991CW to variables.


Step 2: Store the Equations


Store -x^4 + 2 × x^3 + 25 × x^2 – 26 × x – 120 to f(x). This will allow us to save keystrokes while calculating the area.


Step 3: Calculate the Area in the Calculate Mode


Use the integral function from the Catalog - Func Analysis menu.


∫( f(x), -4, -2) + ∫( f(x), 3, 5)


The area is: 1928/15 ≈ 128.5333333

Hint: To always get a decimal approximation (skipping the exact result), press [SHIFT] [ = ] ( ≈ ).




Another example:

Find the area between the curves:

f(x) = x^3 + 8 × x^2 – 3 and x ≥ 0.


The boundaries are: -7.952564217 ≤ x ≤ -0.63837179, 0.5909359176 ≤ x


Which means the intervals are: [ -7.952564217, -0.63837179] and [ 0.5909359176, ∞). We can see that the area given these boundaries, the area will approach infinity.  


Eddie


All original content copyright, © 2011-2025. Edward Shore. Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited. This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.


Tuesday, December 6, 2016

TI-84 Plus and Casio Prizm: Area between Polynomials p(x) and q(x)

TI-84 Plus and Casio Prizm:  Area between Polynomials p(x) and q(x)




The program POLYSURF calculates the area of a surfaces with:

* Side borders are straight vertical lines.  The left border line begins at x = 0
* The top and the bottom are defined polynomials: p(x) for the top and q(x) for the bottom.
* There are n partitions in the shape, for all partition points, p(x) > q(x).

The program also draws the shape.  If the number of partitions are 4 or less, an exact area is calculated.  Otherwise, p(x) and q(x) are approximated by a quartic polynomial and an approximated area is calculated.

TI-84 Plus Program POLYSURF

"EWS 2016-12-06"
Disp "P(X) > Q(X)"
FnOff
PlotsOff
{0}→L
Input "P(0)=",P
{P}→L
Input "Q(0)=",Q
{Q}→L
Input "NO. OF PARTITIONS:",N
For(I,1,N)
ClrHome
Output(7,1,"POINT")
Output(7,8,I)
Output(8,1,"P(X)>Q(X)")
Input "X:",X
Input "P(X):",P
Input "Q(X):",Q
augment(L,{X})→L
augment(L,{P})→L
augment(L,{Q})→L
End
L(dim(L))→L
If N=1
Then
LinReg(ax+b) L,L,Y
LinReg(ax+b) L,L,Y
End
If N=2
Then
QuadReg L,L,Y
QuadReg L,L,Y
End
If N=3
Then
CubicReg L,L,Y
CubicReg L,L,Y
End
If N≥4
Then
QuartReg L,L,Y
QuartReg L,L,Y
End
FnOn 1,2
fnInt(Y-Y,X,0,L)→S
Disp "AREA=",S
Pause
ClrDraw
­.5→Xmin
L+.5→Xmax
min(L)-.5→Ymin
max(L)+.5→Ymax
Shade(Y,Y,0,L)

Casio Prizm Program:  POLYSURF

The character # can be found by exiting to the “main” program menu (TOP, BOTTOM, etc).  Press F6 for CHAR, select #, and press [EXE].

Get the regressions by pressing [F4] (MENU), [F1] (STAT), [F6] twice (CALC, >) and selecting the regression.  The statistic variables a, b, c, d, and e are calculated after regression calculation.

“EWS 2016-12-06”
“P(x)>Q(x)”
{0} → List 1
“P(0)=”? → P
{P} → List 2
“Q(0)=”? → Q
{Q} → List 3
“# PARTITIONS:”? → N
For 1 → I To N
“POINT”
I
“X:”? → X
“P(X):”? → P
“Q(X):”? → Q
Augment(List 1, {X}) → List 1
Augment(List 2, {P}) → List 2
Augment(List 3, {Q}) → List 3
Next
If N = 1
Then
LinearReg (ax+b) List 1, List 2
a → A
b → B
“Ax+B” → Y1
LinearReg (ax+b) List 1, List 3
a → F
b → G
“Fx+G” → Y2
IfEnd
If N = 2
Then
QuadReg List 1, List 2
a → A
b → B
c → C
“Ax^2+Bx+C” → Y1
QuadReg List 1, List 3
a → F
b → G
c → H
“Fx^2+Gx+H” → Y2
IfEnd
If N = 3
Then
CubicReg List 1, List 2
a → A
b → B
c → C
d → D
“Ax^3+Bx^2+Cx+D” → Y1
CubicReg List 1, List 3
a → F
b → G
c → H
d → I
“Fx^3+Gx^2+Hx+I” → Y2
IfEnd
If N ≥ 4
Then
QuartReg List 1, List 2
a → A
b → B
c → C
d → D
e → E
“Ax^4+Bx^3+Cx^2+Dx+E” → Y1
CubicReg List 1, List 3
a → F
b → G
c → H
d → I
e → J
“Fx^4+Gx^3+Hx^2+Ix+J” → Y2
IfEnd
List 1[Dim List 1] → L
∫(Y1-Y2, 0, L) → S
“AREA=”
S
ClrGraph
ViewWindow -.5, L+.5, 1, Min(List 3)-.5, Max(List 2)+.5, 1
F-Line 0, List 2[1], 0, List 1[3]
Dim List 1 → Z
F-line List 1[Z], List 2[Z], List 1[Z], List 3[Z]
DrawGraph

Examples

Example 1



Data:
n
x
p(x)
q(x)
0
0
2
-2
1
1
5
-2
2
2
2
-2

Number of partitions, n = 2
Area = 12

Example 2



Data:
n
x
p(x)
q(x)
0
0.0
0.00
0.00
1
1.5
5.62
-0.64
2
2.5
3.83
1.38
3
3.5
1.25
0.76

Number of Partitions, n = 3
Area ≈ 13.16619792

Example 3



Data:
n
x
p(x)
q(x)
0
0.00
3.00
-3.00
1
0.50
2.54
-2.84
2
1.25
2.01
-3.00
3
1.60
2.36
-3.55
4
2.00
2.76
-1.98

Number of Partitions, n = 4
 Area ≈ 10.77281698

This blog is property of Edward Shore, 2016


Saturday, May 9, 2015

Casio Prizm Color Programs: Arc Length, Area Between Curves

Casio Prizm Color Programs

This blog will feature two programs:  arc length and area between curves.  After the calculation is complete, the results are displayed and plotted.
  



ARCPRZ:  Arc Length

Find the Arc Length of function Y1.  Once the arc length is calculated, the function is plotted, and the arc length is plotted in red. 
  
Notes:

*  Functions are retrieved by pressing [VARS], [ F4 ] (GRAPH), [ F1 ] ( Y ). 

* To get Xdot, press [ VARS ], [ F1 ] (V-WIN), [ F1 ] ( X ), [ F4 ] for Xdot.

*  Color commands are found by pressing [SHIFT] [ 5 ] (FORMAT) and selecting Color commands.

*  The derivative function (d/dx) is not allowed as part of the integrand in the integral function ( dx) on Casio calculators. (At least for the fx-5800p, fx-9750g series, fx-9860g series, and the Prizm.  I am not sure about the Classpads).  Therefore, the Simpson’s Rule is used instead.  I use 100 divisions.

*  G SelOn and G SelOff I got from the CATALOG.  ([SHIFT], [ 4 ]).  I am not sure what menus where these two commands are located.

*  DrawGraph is found by pressing [SHIFT] [ VARS ] (PRGM), [ F6 ] (next page), [ F2 ] (DISPLAY), [ F2 ] (Graph)

Program:

Rad
Menu "USE Y1?","YES",1,"NO",2
Lbl 2
"Y1 (NO QUOTES)"? → Y1
Lbl 1
"LOW"? → A
"HIGH"? → B
0→K:(B-A)÷100→S
0→T
For A→I To B Step S
√ (1+d/dx(Y1,I)^2)→U
I=A Or I=B T+U → T
If K≠0 And K≠100
Then
2U+T → T
Frac (K/2)≠0 =>2U+T → T
IfEnd
K+1 → K
Next
S/3*T → T
"ARC LENGTH="
T
G SelOff
G SelOn 1
DrawGraph
For A → I To B Step Xdot
Red PlotOn I, Y1(I)
Next
Black Text 165,1,"ARC="
Black Text 165,65,T

Examples

Y1 = cos(X)*e^X from X = 1 to 2.   Arc Length = 4.7031139029…

Y1 = -2X^2 + 4X + 1 rom X = -2 to 2.   Arc Length = 20.7833…





AREABTWN:  Area Between Curves

This calculates the area between two curves, Y1 and Y2.  This program works best if you can set the graph screen to where the curves intersect at only two points.  The program first searches for two intersections, one from the left side of the graph screen (Xmin) and one from the right (Xmax).  After the area is calculated, both curves are graphed and the area between curves are shaded.  Function and Radian modes are used.

Notes:

*  F-Line is found by pressing [SHIFT] [ F4 ] (Sketch), [ F6 ] (next page)

*  Since there is no shade function on the Prizm, a work around is needed.  Thankfully, there are FMin and FMax (function minimum and function maximum) functions that would make the picture look nice possible.

* ViewWindow seems to only affect the graph shown in Program mode when used as a command in program made.

* The program assumes that Function mode is set.

* In this listing, anything followed by double slashes (//) is a comment.  Do not type these lines into the program. 

Program:

Rad
Menu “USE Y1, Y2?”, “YES”, 1, “NO”, 2
Lbl 2
Y1 (NO QUOTES)”? → Y1
Y2 (NO QUOTES)”? → Y2
Lbl 1

// finding the end points

Solve(Y1-Y2, Xmin) → A
Sovle(Y1-Y2, Xmax) → B
If A > B
Then
A → C: B → A: C → B: IfEnd
If A = B
Then
“NO SOLUTION”
Stop: IfEnd

// calculation

∫ (Y1-Y2, A, B) → I
Abs I → I
“AREA=”
I

// start graphing routine

ClrGraph
G SelOff
G SelOn 1
G SelOn 2

// setting the window

FMin(Y1, A, B) → List 25
FMin(Y2, A, B) → List 26
List 25[2] → U
List 26[2] → V
Min({U,V}) → E
FMax(Y1, A, B) → List 25
FMax(Y2, A, B) → List 26
List 25[2] → U
List 26[2] → V
Max({U,V}) → F
ViewWindow A-1,B+1,1,E-1,F+1,1

// now draw the graph

DrawGraph

// shading routine

For A → K To B Step Xdot
Green F-Line K, Y1(K),K,Y2(K)
Next

Examples

The Standard Window is used.  Xmin = -10, Xmax = 10, Ymin = -10, Ymax = 10

Y1 = -2X^2 + 4X + 1, Y2 = X^2.   Area = 2.734721…

Y1 = 1.2X + .63, Y2 = -X^2 + 5X + 1.   Area = 10.58676675…


A nice feature of the Prizm is that you transfer program files and screen captures from the calculator to the computer by just using the standard mini USB cable. 

Eddie


This blog is property of Edward Shore, 2015.

Earth's Radius by Latitude

Earth's Radius by Latitude Introduction: Calculating the Earth’s Radius In quick, general calculations, we assume that the...