# Simple(?) trig problem

**URL:** https://boards.straightdope.com/t/simple-trig-problem/685868
**Category:** Factual Questions
**Created:** [April 11, 2014, 12:42pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868 "2014-04-11T12:42:27Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Jragon](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jragon](https://boards.straightdope.com/u/Jragon)
#### Post date: [April 11, 2014, 12:42pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/1 "2014-04-11T12:42:27Z")

</div>

I was reading Math Educators stack exchange and one person mentioned he’s appalled year after year that his Calc I students were, without fail, unable to execute this problem:

.8sin(x) + cos(x) = 1.2

Well I tried.

For an hour.

And I still can’t do it. If it wasn’t for that coefficient on the sine I could probably do it. My best hunch involves squaring both sides, but I’ve tried every identity I can think of and look up and it’s not coming out. I’m fairly sure there are infinitely many values for x that satisfy this equation, as is usually the case for periodic functions, but that’s it. At the very least it’ll be one or more functions with acos or atan or asin or something.

I looked back at the page and in the comments his hint was " Since cos^2(x)+sin^2(x)=1 it follows that you can eliminate either sine or cosine to give an algebraic equation which when squared gives you a quadratic which when solved reveals the two solutions for θ. They do have a scientific calculator for the numerics here."

As far as I can tell, this means replacing, e.g. cos^2(x) with sqrt(1-sin^2(x)), then squaring both sides. But I already tried that and hit a dead end, as far as I got it ends up:

-.36sin^2(x) + 1.6sin(x)sqrt(1-sin^2(x)) - .44 = 0

Which has no easy way to solve because of the middle term.

I feel really dumb right now, can somebody please walk me through how to solve this?

---

<div class="post-metadata">

### Author: ![John\_Mace](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/john_mace/32/185_2.png) [@John\_Mace](https://boards.straightdope.com/u/John_Mace)
#### Post date: [April 11, 2014, 12:51pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/2 "2014-04-11T12:51:09Z")

</div>

-.36sin^2(x) + 1.6sin(x)sqrt(1-sin^2(x)) - .44 = 0.

Write that as:

-.36sin^2(x) + 1.6sin(x) - 1.6sin^2(x) - .44 =0

or

-1.96sin^2(x) + 1.6sin(x) -.44 = 0

Does that look familiar (i.e., it’s a quadratic equation)?

---

<div class="post-metadata">

### Author: ![Jragon](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jragon](https://boards.straightdope.com/u/Jragon)
#### Post date: [April 11, 2014, 12:58pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/3 "2014-04-11T12:58:08Z")

</div>

Let’s take the sin(x) and decimals out of it:

ax^2 + bx\*sqrt(1-x^2) + c = 0

It’s not a quadratic equation, you can transform it to

ax^2 + bx\*sqrt((1-x)(1+x)) + c = 0

But it doesn’t change the fact that if you’re trying to treat it as

ax^2 + bx + c, then b is a function on x, not a constant. Unless there’s some identity I’m missing that allows you to transform sqrt(1-x^2) I’m at a loss.

---

<div class="post-metadata">

### Author: ![zut](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zut/32/2875_2.png) [@zut](https://boards.straightdope.com/u/zut)
#### Post date: [April 11, 2014, 12:58pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/4 "2014-04-11T12:58:40Z")

</div>

1. Substitute (for example) cos(x) = sqrt(1-sin^2(x)) to get .8sin(x) + sqrt(1-sin^2(x)) = 1.2
2. (I think this is what you missed) Isolate the radical: sqrt(1-sin^2(x)) = 1.2 - .8sin(x)
3. Now square both sides to give a simple quadratic equation and solve for sin(x)
4. Check your values using the original equation.

---

<div class="post-metadata">

### Author: ![Jragon](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jragon](https://boards.straightdope.com/u/Jragon)
#### Post date: [April 11, 2014, 1:01pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/5 "2014-04-11T13:01:17Z")

</div>

> [@zut](#):
>
> 1. (I think this is what you missed) Isolate the radical: sqrt(1-sin^2(x)) = 1.2 - .8sin(x)

I think that’s the step. Thank you.

---

<div class="post-metadata">

### Author: ![John\_Mace](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/john_mace/32/185_2.png) [@John\_Mace](https://boards.straightdope.com/u/John_Mace)
#### Post date: [April 11, 2014, 2:17pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/6 "2014-04-11T14:17:36Z")

</div>

> [@John\_Mace](#):
>
> -.36sin^2(x) + 1.6sin(x)sqrt(1-sin^2(x)) - .44 = 0.
> 
> Write that as:
> 
> -.36sin^2(x) + 1.6sin(x) - 1.6sin^2(x) - .44 =0
> 
> or
> 
> -1.96sin^2(x) + 1.6sin(x) -.44 = 0
> 
> Does that look familiar (i.e., it’s a quadratic equation)?

Wait a minute. That’s no right!:smack: Sqrt function doesn’t work like that. :smack::smack:

What zut said. And much simpler.

---

<div class="post-metadata">

### Author: ![sbunny8](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@sbunny8](https://boards.straightdope.com/u/sbunny8)
#### Post date: [April 11, 2014, 3:24pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/7 "2014-04-11T15:24:07Z")

</div>

The trick is to get the sqrt on one side by itself before you square both sides.

.8sin(x) + cos(x) = 1.2  
Substitute cos(x)=sqrt(1-sin2(x)).  
.8sin(x) + sqrt(1-sin2(x)) = 1.2  
Subtract .8sin(x) from both sides so we isolate the sqrt.  
sqrt(1-sin2(x)) = 1.2 - .8sin(x)  
Now square both sides.  
1-sin2(x) = 1.44 - 1.92sin(x) - .64sin2(x)  
Substitute w = sin(x).  
1 - w2 = 1.44 - 1.92w - .64w2  
Looks like a quadratic equation to me.  
Apply the quadratic formula to get w, then use x = arcsin(w).  
First solution is approximately .318 ; second is approximately 1.031 .

---

<div class="post-metadata">

### Author: ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)
#### Post date: [April 11, 2014, 4:25pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/8 "2014-04-11T16:25:08Z")

</div>

> [@Jragon](#):
>
> I was reading Math Educators stack exchange and one person mentioned he’s appalled year after year that his Calc I students were, without fail, unable to execute this problem:
> 
> .8sin(x) + cos(x) = 1.2

In what context? At the beginning of the class, as a test of their trigonometry skills? At the end of class? Using [Newton’s method](http://en.wikipedia.org/wiki/Newton's_method), with which an equation like this is pretty straightforward?

---

<div class="post-metadata">

### Author: ![Nancarrow](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@Nancarrow](https://boards.straightdope.com/u/Nancarrow)
#### Post date: [April 11, 2014, 8:40pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/9 "2014-04-11T20:40:19Z")

</div>

> [@Jragon](#):
>
> .8sin(x) + cos(x) = 1.2

Either I’m weird or everyone else is. I can follow this ‘replace cos(x) by sqrt(1-sin^2(x)) and then do a bunch of squaring’ method, but it doesn’t seem a very natural way to look at it. The very first thing I thought was ‘rewrite the LHS as a single sine function with amplitude and phase to be determined’. I.e. use the identity acos(x)+bsin(x) = Rsin(x+k). (you need to know compound angle formulae)  
You’d get R=sqrt(0.8^2+1^2) ~= 1.281, k = arctan(1/0.8) = 0.896 rad

so 1.281 sin(x+0.896) = 1.2, rearrange to get x = arcsin(1.2/1.281)-0.896 = 0.317 - principal value, of course.

---

<div class="post-metadata">

### Author: ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)
#### Post date: [April 12, 2014, 1:38am UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/10 "2014-04-12T01:38:59Z")

</div>

> [@](#):
>
> Either I’m weird or everyone else is.

Probably both. The way “normal” people approach this problem is to throw up their hands and say “I don’t know!”. Or if they’re resourceful, maybe to graph it and look at the intersection, or to ask a computer system like Wolfram Alpha.

---

<div class="post-metadata">

### Author: ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)
#### Post date: [April 12, 2014, 1:42am UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/11 "2014-04-12T01:42:10Z")

</div>

I’m probably crazy since I tried to solve the more general case first (of y = 0.8\*sin(x) + cos(x)).

My first observation is that since both functions have the same period, they must be equivalent to:  
y = A\*cos(x - B)

B is the x value for which (0.8_sin(x) + cos(x)) is at a peak (since cos(0) is at a peak). We know that cos(x) is falling and 0.8_sin(x) is rising (or vice versa), and that at the peak the derivatives must be equal and opposite. So we have:  
(0.8_sin(x))’ = 0.8_cos(x)  
(cos(x))’ = -sin(x)  
0.8\*cos(x) = sin(x)  
0.8 = sin(x)/cos(x) = tan(x)  
B = x = atan(0.8)

For A, we just substitute something in; 0 works:  
0.8_sin(0) + cos(0) = A_cos(0 - B)  
1 = A\*cos(-atan(0.8))  
A = 1/cos(-atan(0.8)) =~ 1.2806

To solve the problem, we just substitute:  
A\*cos(x - B) = cos(x - atan(0.8))/cos(-atan(0.8)) = 1.2

x = acos(1.2 \* cos(-atan(0.8))) + atan(0.8) =~ 1.0315

ETA: Clearly I did the same thing as **Nancarrow** but without knowing the compound angle formula

---

<div class="post-metadata">

### Author: ![Jragon](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jragon](https://boards.straightdope.com/u/Jragon)
#### Post date: [April 12, 2014, 4:56am UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/12 "2014-04-12T04:56:09Z")

</div>

> [@Chronos](#):
>
> Probably both. The way “normal” people approach this problem is to throw up their hands and say “I don’t know!”. Or if they’re resourceful, maybe to graph it and look at the intersection, or to ask a computer system like Wolfram Alpha.

I did ask Wolfram, before I made this thread, so I knew the answer. But I don’t have pro right now so it wouldn’t show me its work. It was bugging me that I couldn’t figure out how to do it.

> [@Thudlow\_Boink](#):
>
> In what context? At the beginning of the class, as a test of their trigonometry skills? At the end of class? Using [Newton’s method](http://en.wikipedia.org/wiki/Newton's_method), with which an equation like this is pretty straightforward?

Beginning of the class.

> [@Nancarrow](#):
>
> Either I’m weird or everyone else is. I can follow this ‘replace cos(x) by sqrt(1-sin^2(x)) and then do a bunch of squaring’ method, but it doesn’t seem a very natural way to look at it. The very first thing I thought was ‘rewrite the LHS as a single sine function with amplitude and phase to be determined’. I.e. use the identity acos(x)+bsin(x) = Rsin(x+k). (you need to know compound angle formulae)  
> You’d get R=sqrt(0.8^2+1^2) ~= 1.281, k = arctan(1/0.8) = 0.896 rad
> 
> so 1.281 sin(x+0.896) = 1.2, rearrange to get x = arcsin(1.2/1.281)-0.896 = 0.317 - principal value, of course.

That’s more intuitive to me, and along the lines of what I originally tried to do, but the [page of identities](http://www.sosmath.com/trig/Trig5/trig5/trig5.html) I looked up didn’t deal with the case when the trig functions had coefficients.

If this was really important I probably would have ended up rederiving them from definition, but eh…

---

<div class="post-metadata">

### Author: ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)
#### Post date: [April 12, 2014, 10:28pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/13 "2014-04-12T22:28:04Z")

</div>

Another way to think of **Nancarrow** ’s approach is like this:

The original equation amounts to \<1, 0.8\> DOT \<cos(x), sin(x)\> = 1.2.

As you may know, A DOT B = |A| |B| cos(angle between A and B). And the angle to A from B is as good as the difference between the angle to A from \<1, 0\> and the angle to B from \<1, 0\>.

In this case, that tells us |\<1, 0.8\>| cos((angle to \<1, 0.8\> from \<1, 0\>) - x) = 1.2.

At this point, solving the problem in terms of standard operations is straightforward; we get that x = (angle to \<1, 0.8\> from \<1, 0\>) - arccos(1.2/|\<1, 0.8\>|) , whatever that comes out to…

---

<div class="post-metadata">

### Author: ![hogarth](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hogarth/32/1773_2.png) [@hogarth](https://boards.straightdope.com/u/hogarth)
#### Post date: [April 13, 2014, 12:43am UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/14 "2014-04-13T00:43:17Z")

</div>

I thought of it as:

0.8\*a + b = 1.2  
a^2 + b^2 = 1

Substitute in b = 1.2 - 0.8\*a in the second equation and slap it in the ol’ quadratic formula. Basically the same as everyone else is saying, but leaving the square root part to the quadratic formula.

---

<div class="post-metadata">

### Author: ![sbunny8](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@sbunny8](https://boards.straightdope.com/u/sbunny8)
#### Post date: [April 14, 2014, 1:52am UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/15 "2014-04-14T01:52:26Z")

</div>

> [@hogarth](#):
>
> I thought of it as:  
> 0.8_a + b = 1.2  
> a^2 + b^2 = 1  
> Substitute in b = 1.2 - 0.8_a in the second equation and slap it in the ol’ quadratic formula. Basically the same as everyone else is saying, but leaving the square root part to the quadratic formula.

That’s a more elegant approach that the one implied by the professor’s hint in the OP. I like it very much… which makes me wonder if the professor had a reason for doing it the other way, substituting the second equation into the first rather than the first into the second. And we are still stuck with the enigma of why the professor complained that his students had a zero percent success rate in solving the problem.

---

<div class="post-metadata">

### Author: ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)
#### Post date: [April 14, 2014, 1:48pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/16 "2014-04-14T13:48:55Z")

</div>

So far in this thread, we’ve found at least three, arguably four or five, methods for doing this problem. It looks like the professor knew one of them, but was ignorant of the other 2-4. This doesn’t place him much above his students, who were ignorant of 3-5.

But I’m very surprised that literally _none_ of his students was able to do it. What I fear might have happened, is that some of his students _did_ come up with valid solutions (possibly one of the ones mentioned here, possibly yet another one), and the professor rejected them as wrong because they weren’t the specific method he knew.

---

<div class="post-metadata">

### Author: ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)
#### Post date: [April 14, 2014, 4:56pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/17 "2014-04-14T16:56:14Z")

</div>

That would be terrible, but one would hope the teacher (or his graders) could at least recognize a numerically correct answer when seeing one (his comment about scientific calculators suggests he did want the answer ultimately in numeric form), and at that point would proceed to investigate the validity of its derivation.

---

<div class="post-metadata">

### Author: ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)
#### Post date: [April 14, 2014, 5:02pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/18 "2014-04-14T17:02:23Z")

</div>

(That having been said, I’ve sat in enough grading rooms to share some of this fear…)

---

<div class="post-metadata">

### Author: ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)
#### Post date: [April 14, 2014, 5:08pm UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/19 "2014-04-14T17:08:44Z")

</div>

[Also, for clarification, the professor was apparently complaining about the performance of students in a physics course with a calculus prerequisite, rather than performance within a Calc I course (see [here](http://matheducators.stackexchange.com/questions/258/what-holds-your-students-back-in-calculus)). Though now I’m even more surprised that no one solved it…]

---

<div class="post-metadata">

### Author: ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)
#### Post date: [April 15, 2014, 12:06am UTC](https://boards.straightdope.com/t/simple-trig-problem/685868/20 "2014-04-15T00:06:08Z")

</div>

> [@sbunny8](#):
>
> That’s a more elegant approach that the one implied by the professor’s hint in the OP. I like it very much… which makes me wonder if the professor had a reason for doing it the other way, substituting the second equation into the first rather than the first into the second.

I can’t see why the professor would prefer that approach; in fact, that approach is more dangerous, because in a step such as from “cos(x) = 1.2 - .8sin(x)” to “1 - sin[sup]2/sup = cos[sup]2/sup = (1.2 - .8sin(x))[sup]2[/sup]” [or the analog of this isolating and then squaring sin(x) instead], one introduces spurious solutions (in this case, those for which .8sin(x) - cos(x) = 1.2, which are the supplementary angles to the appropriate solutions; in the analogous case, those for which -.8sin(x) + cos(x) = 1.2, which are the negations of the appropriate solutions); to counter this, one must not at the end simply solve for x from the derived values for sin(x), but rather rederive cos(x) from sin(x) by the posed linear relationship, and then solve for x from \<cos(x), sin(x)\> (or, with less finesse but amounting to the same thing, apply **zut** ’s step 4 of checking all putative solutions against the original constraint).

Now, if you ignore the possibility of cos(x) [analogously, sin(x)] being negative, as use of the arcsin [analogously, arccos] button on your calculator is liable to lead you to conclude without justification, you will _happen_ to luck out in this case. This would be an example of the right answer by less-than-correct means which the professor would be justified in deducing points for…

But this difficulty is entirely avoided by doing the substitution **Hogarth** ’s way, as well as by appropriately pursuing **Nancarrow** ’s approach (there is a sense in which **Hogarth** ’s and **Nancarrow** ’s approaches are at heart the same, but they of course present quite differently).

[Next page](https://boards.straightdope.com/t/simple-trig-problem/685868.md?page=2)
