High School Modules > Algebra by Gregory A. Moore
Solving Squareroot Equations
Solving equations with squareroots requires additional steps and the need to check answers.
[Directions : Execute the Code Resource section first. Although there will be no output immediately, these definitions are used later in this worksheet.]
0. Code
| > | restart; with(plots): |
Warning, the name changecoords has been redefined
| > | AddBothSides := proc( expr, a ) lhs(expr) + a = rhs( expr) + a; end proc: |
| > | MultBothSides := proc( expr, a ) simplify(lhs(expr) * a) = simplify( rhs( expr) * a) ; end proc: |
| > | SimplifyBothSides := proc( expr ) simplify( expand( lhs(expr) )) = simplify( expand( rhs(expr) )); end proc: |
| > | FactorBothSides := proc( expr ) factor( lhs(expr) ) = factor( rhs(expr) ); end proc: |
| > | SquareBothSides := proc( expr ) simplify( lhs(expr)^2 ) = simplify( rhs(expr)^2 ); end proc: |
1. Example 1 : Solving Equations With One Squareroot
Here is a straight forward problem.
Problem
: Solve for x :
.
| > | Eq := sqrt( x + 3) = x - 2; |
Step 1 . Since the square root is already isolated, square both sides.
| > | SquareBothSides( %); |
Step 2
. Expand and simplify
| > | SimplifyBothSides( %); |
Step 3
. Move everything to one side
| > | AddBothSides( %, -lhs(%) ); |
Step 4
. Solve the quadratic equation.
| > | soln := solve(%, x); |
Step 5
. The Often Forgotten Step - Check the answers!
| > | subs( x = soln[1], Eq); SimplifyBothSides( %); testeq( lhs(%) = rhs(%)); |
| > | subs( x = soln[2], Eq); SimplifyBothSides( %); testeq( lhs(%) = rhs(%)); |
The first solution fails, while the second works out. Therefore the solution to this problem is :
| > | Answer := soln[2]; |
2. Example 2 : Solving Equations With One Squareroot
Here is a straight forward problem.
Problem
: Solve for x :
| > | Eq := 3*x - sqrt( 2*x + 1) = 4*x - 9; |
Step 1
. Isolate the square root
| > | AddBothSides( %, -3*x); |
Step 2 . Square both sides.
| > | SquareBothSides( %); |
Step 3
. Expand and simplify
| > | SimplifyBothSides( %); |
Step 4
. Move everything to one side
| > | AddBothSides( %, -lhs(%) ); |
Step 5
. Solve the quadratic Equation.
| > | soln := solve(%, x); |
Step 6
. The Often Forgotten Step - Check the answers! It's possible
| > | subs( x = soln[1], Eq); SimplifyBothSides( %); testeq( lhs(%) = rhs(%)); |
| > | subs( x = soln[2], Eq); SimplifyBothSides( %); testeq( lhs(%) = rhs(%)); |
In this case, the first solution succeeds, while the second fails. Therefore the solution to this problem is :
| > | Answer := soln[1]; |
3. Example 3 : Solving Equations With Two Squareroots
The plot thickens when there are two square roots. Basically, we need to square twice,
but being careful to isolate the square roots on one side the second time.
Problem
: Solve for x :
.
| > | Eq := sqrt( 2*x + 3) - sqrt( 2*x - 3) = 4; |
Step 1 . Since the square root is already isolated, square both sides.
| > | SquareBothSides( %); SimplifyBothSides( %); |
Step 2
. Move everything to one side
| > | AddBothSides( %, -4*x ); |
Step 3
. Now, square both sides a second time, and expand.
| > | SquareBothSides( %); SimplifyBothSides( %); |
Step 4 . Move everything to one side to solve.
| > | AddBothSides( %, -lhs(%) ); |
Step 5
. Solve the quadratic Equation.
| > | soln := solve(%, x); |
Step 6
. The Often Forgotten Step - Check the answer.
| > | subs( x = soln, Eq); SimplifyBothSides( %); testeq( lhs(%) = rhs(%)); |
The only solution fails, so this means that there is no solution to this problem!
| > | Answer := {}; |
How can this be? Lets examine the original equation in more detail. If we graph the left and right hand sides of the original equation, we see the two never intersect. This is why there is no solution.
| > | plot( { lhs(Eq), rhs(Eq)}, x = 1.5..100); |
| > |
4. Example 4 : Solving Equations With Two Squareroots
The plot thickens when there are two square roots. Basically, we need to square twice,
but being careful to isolate the square roots on one side the second time.
Problem
: Solve for x :
.
| > | Eq := sqrt( 7 - x) + sqrt( 7 + x) = x; |
Step 1 . Since the square root is already isolated, square both sides.
| > | SquareBothSides( %); SimplifyBothSides( %); |
Step 2
. Move everything to one side
| > | AddBothSides( %, -14 ); |
Step 3
. Now, square both sides a second time, and expand.
| > | SquareBothSides( %); SimplifyBothSides( %); |
Step 4 . Move everything to one side to solve.
| > | AddBothSides( %, -lhs(%) ); FactorBothSides( %); |
Step 5
. Solve the equation. There are three unique ansers.
| > | soln := solve(%, x); |
Step 6
. Check the answers.
| > | subs( x = soln[1], Eq); SimplifyBothSides( %); testeq( lhs(%) = rhs(%)); |
| > | subs( x = soln[2], Eq); SimplifyBothSides( %); testeq( lhs(%) = rhs(%)); |
| > | subs( x = soln[3], Eq); SimplifyBothSides( %); testeq( lhs(%) = rhs(%)); |
| > | subs( x = soln[4], Eq); SimplifyBothSides( %); testeq( lhs(%) = rhs(%)); |
There is only one solution.
| > | Answer := soln[3]; |
| > |
© 2002 Waterloo Maple Inc